My "Hello Protege" plugin: Failure to build source code

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

My "Hello Protege" plugin: Failure to build source code

Ghislain ATEMEZING
Hi all,

[ Not sure to have this issue reported in this list before, if so, my sincere apologize]

So, I've decided to create my first plugin ever for Protégé but have issues to have a clear workspace projet in Eclipse. I use this nice tutorial [1].  . 
Here is my environment: Win 7, Eclipse Kepler and TortoiseSVN.

I create a normal project in Eclipse and use SVN, by following the steps in [1]:
 - import an empty folder for my project.

Step 4a seems not to work for me, so I go for step 4b "Run Protege the Harder Way" 
For all the builds below, I use the -v argument in ant to keep track of what have been done so far. I try then to build the folders indicated in the tutorial, but got errors, except for Build.Protege.Infrastructure.
e.g: For Build.Common: org.protege.common, I have the following error:

----------
C:\{USER-DIR}\protege\org.protege.common\build.xml:186: Failed to copy C:\{USER-DIR}\protege\org.protege.common\build\org.protege.common.jar to C:\Program Files\Protege_4.3\bundles\org.protege.common.jar due to java.io.FileNotFoundException C:\Program Files\Protege_4.3\bundles\org.protege.common.jar (Acces denied) and I couldn't delete the corrupt C:\Program Files\Protege_4.3\bundles\org.protege.common.jar
----------

I have this similar error for the rest of the folders (2 to 7, Build.XXX).

 Please, could someone help me to complete the steps in order to start building my first plugin? 
Any input or pointer is more than welcome. 

TIA,
Regards,
Ghislain



--
--------------------
"Love all, trust a few, do wrong to none" (W. Shakespeare)

_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user
Reply | Threaded
Open this post in threaded view
|

Re: [protege-user] My "Hello Protege" plugin: Failure to build source code

Jennifer Vendetti
Administrator
Hello Ghislain,

I'm moving this discussion to protege-dev, which is the appropriate mailing list for questions regarding Protege plug-in development.  If you haven't already done so, please subscribe to protege-dev to continue this thread with us.  There's an easy-to-use form on the Protege website for signing up:

http://protege.stanford.edu/support.php#mailingListSupport

Over the last several months, we undertook a major effort to move our source code from Subversion to GitHub, and migrate our build scripts from Ant to Maven.  This process is largely complete, but we've yet to have the opportunity to spend a decent amount of time updating the plug-in development documentation on the Protege wiki.

The article that you referred to below is outdated.  We no longer use the Stanford-hosted Subversion repository for Protege source code.  If you really need to compile Protege from scratch, you can use these instructions for doing it from the command line:

https://github.com/protegeproject/protege/wiki/Building-from-Source

... or these instructions for doing it from Eclipse:

http://protegewiki.stanford.edu/wiki/CompileProtege5InEclipseWithMaven

Most plug-in developers don't need the Protege source code though - only the binaries.  After reading the "Prerequisites" section from the article I just referenced, I would encourage you to then skip to the section about configuring Eclipse without the Protege sources:

http://protegewiki.stanford.edu/wiki/CompileProtege5InEclipseWithMaven#Configure_Eclipse_without_Protege_sources

Toward the bottom of the article, there's a section for adding your own plug-in:

http://protegewiki.stanford.edu/wiki/CompileProtege5InEclipseWithMaven#Adding_your_own_plug-in

Unfortunately, this section is still somewhat under construction.  We'll work on trying to get this remedied as soon as possible.  It's worth noting that there's still some useful information about plug-in development in our outdated articles, namely this one:

http://protegewiki.stanford.edu/wiki/PluginAnatomy

... which describes simple examples of a tab and view plug-in for Protege.

Apologies that our documentation is not in a better state at the moment.

Jennifer


On 4/24/2014 8:19 AM, Ghislain ATEMEZING wrote:
So, I've decided to create my first plugin ever for Protégé but have issues to have a clear workspace projet in Eclipse. I use this nice tutorial [1].  . 
Here is my environment: Win 7, Eclipse Kepler and TortoiseSVN.

I create a normal project in Eclipse and use SVN, by following the steps in [1]:
 - import an empty folder for my project.

Step 4a seems not to work for me, so I go for step 4b "Run Protege the Harder Way" 
For all the builds below, I use the -v argument in ant to keep track of what have been done so far. I try then to build the folders indicated in the tutorial, but got errors, except for Build.Protege.Infrastructure.
e.g: For Build.Common: org.protege.common, I have the following error:

----------
C:\{USER-DIR}\protege\org.protege.common\build.xml:186: Failed to copy C:\{USER-DIR}\protege\org.protege.common\build\org.protege.common.jar to C:\Program Files\Protege_4.3\bundles\org.protege.common.jar due to java.io.FileNotFoundException C:\Program Files\Protege_4.3\bundles\org.protege.common.jar (Acces denied) and I couldn't delete the corrupt C:\Program Files\Protege_4.3\bundles\org.protege.common.jar
----------

I have this similar error for the rest of the folders (2 to 7, Build.XXX).

 Please, could someone help me to complete the steps in order to start building my first plugin? 
Any input or pointer is more than welcome. 

TIA,
Regards,
Ghislain



--
--------------------
"Love all, trust a few, do wrong to none" (W. Shakespeare)


_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user


_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev