Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-dev] Setting up the Eclipse environment for Protege 4.1: compilation issues

idioma corda.ilaria at gmail.com
Sun May 24 07:30:54 PDT 2015


Hi, 
I have been trying to build a Protege distribution within my eclipse
environment as per the steps listed in: 

http://protegewiki.stanford.edu/wiki/CompileProtege4InEclipseFromSvn#Instructions_for_Compiling_and_Running_Protege_4.1.2B_in_Eclipse_using_the_sources_from_SVN
= 
I am using Eclipse Luna with JRE/JDK 1.8.0_45 on Windows 7.  I have
successfully checked out the following workspace using TortoiseSVN: 

https://smi-protege.stanford.edu/repos/protege/protege4/ide/eclipse/protege4.1/trunk

and completed all the steps up to number 3 (Load the Workspace). However,
when I try to compile the project (either via the easy or the harder way -
as discussed in protegewiki), I am returned with a number of compilation
errors. In a nutshell, if I employ the   - Step 4b: Run Protege the Harder
Way (use only if the easy way 4a did not work), the following scripts ran
successfully: 

Build.Protege.Infrastructure 
Build.Common 
Build.Core 
Build.Jaxb.Lib 
Build.Owlapi.Lib 

Whereas, a high number of errors are reported on Build.Owl.Edito, as
follows: 

compile: 
    [javac] Compiling 2 source files to
D:\Protege-API\org.protege.editor.owl\build\classes 
    [javac]
D:\Protege-API\org.protege.editor.owl\src\main\java\org\protege\editor\owl\ui\clsdescriptioneditor\OWLDescriptionChecker.java:37:
error: createObject(String) in OWLClassExpressionChecker cannot implement
createObject(String) in OWLExpressionChecker 
    [javac]     public OWLClassExpression createObject(String text) throws
OWLExpressionParserException { 
    [javac]                               ^ 
    [javac]   overridden method does not throw OWLExpressionParserException 
    [javac]   where O is a type-variable: 
    [javac]     O extends Object declared in interface OWLExpressionChecker 
    [javac]
D:\Protege-API\org.protege.editor.owl\src\main\java\org\protege\editor\owl\ui\clsdescriptioneditor\OWLDescriptionChecker.java:32:
error: check(String) in OWLClassExpressionChecker cannot implement
check(String) in OWLExpressionChecker 
    [javac]     public void check(String text) throws
OWLExpressionParserException { 
    [javac]                 ^ 
    [javac]   overridden method does not throw OWLExpressionParserException 
    [javac]
D:\Protege-API\org.protege.editor.owl\src\main\java\org\protege\editor\owl\ui\clsdescriptioneditor\OWLDescriptionChecker.java:32:
error: incompatible types: OWLExpressionParserException cannot be converted
to Throwable 
    [javac]     public void check(String text) throws
OWLExpressionParserException { 
    [javac]                                           ^ 
    [javac]
D:\Protege-API\org.protege.editor.owl\src\main\java\org\protege\editor\owl\ui\clsdescriptioneditor\OWLDescriptionChecker.java:37:
error: incompatible types: OWLExpressionParserException cannot be converted
to Throwable 
    [javac]     public OWLClassExpression createObject(String text) throws
OWLExpressionParserException { 
    [javac]                                                                ^ 
    [javac]
D:\Protege-API\org.protege.editor.owl\src\main\java\org\protege\editor\owl\ui\clsdescriptioneditor\OWLDescriptionChecker.java:38:
error: cannot access OWLDataFactory 
    [javac]         ManchesterOWLSyntaxEditorParser parser = new
ManchesterOWLSyntaxEditorParser(mngr.getOWLDataFactory(), text); 
    [javac]                                                  ^ 
    [javac]   class file for OWLDataFactory not found 
    [javac]
D:\Protege-API\org.protege.editor.owl\src\main\java\org\protege\editor\owl\ui\clsdescriptioneditor\OWLDescriptionChecker.java:39:
error: incompatible types: ProtegeOWLEntityChecker cannot be converted to
OWLEntityChecker 
    [javac]         parser.setOWLEntityChecker(new
ProtegeOWLEntityChecker(mngr.getOWLEntityFinder())); 
    [javac]                                    ^ 
    [javac]
D:\Protege-API\org.protege.editor.owl\src\main\java\org\protege\editor\owl\ui\clsdescriptioneditor\OWLDescriptionChecker.java:44:
error: cannot access ParserException 
    [javac]             throw ParserUtil.convertException(e); 
    [javac]                             ^ 
    [javac]   class file for ParserException not found 
    [javac]
D:\Protege-API\org.protege.editor.owl\src\main\java\org\protege\editor\owl\ui\clsdescriptioneditor\OWLDescriptionSetChecker.java:39:
error: createObject(String) in OWLClassExpressionSetChecker cannot implement
createObject(String) in OWLExpressionChecker 
    [javac]     public Set<OWLClassExpression> createObject(String text)
throws OWLExpressionParserException { 
    [javac]                                    ^ 
    [javac]   overridden method does not throw OWLExpressionParserException 
    [javac]   where O is a type-variable: 
    [javac]     O extends Object declared in interface OWLExpressionChecker 
    [javac]
D:\Protege-API\org.protege.editor.owl\src\main\java\org\protege\editor\owl\ui\clsdescriptioneditor\OWLDescriptionSetChecker.java:34:
error: check(String) in OWLClassExpressionSetChecker cannot implement
check(String) in OWLExpressionChecker 
    [javac]     public void check(String text) throws
OWLExpressionParserException { 
    [javac]                 ^ 
    [javac]   overridden method does not throw OWLExpressionParserException 
    [javac]
D:\Protege-API\org.protege.editor.owl\src\main\java\org\protege\editor\owl\ui\clsdescriptioneditor\OWLDescriptionSetChecker.java:34:
error: incompatible types: OWLExpressionParserException cannot be converted
to Throwable 
    [javac]     public void check(String text) throws
OWLExpressionParserException { 
    [javac]                                           ^ 
    [javac]
D:\Protege-API\org.protege.editor.owl\src\main\java\org\protege\editor\owl\ui\clsdescriptioneditor\OWLDescriptionSetChecker.java:39:
error: incompatible types: OWLExpressionParserException cannot be converted
to Throwable 
    [javac]     public Set<OWLClassExpression> createObject(String text)
throws OWLExpressionParserException { 
    [javac]                                                                    
^ 
    [javac]
D:\Protege-API\org.protege.editor.owl\src\main\java\org\protege\editor\owl\ui\clsdescriptioneditor\OWLDescriptionSetChecker.java:41:
error: incompatible types: ProtegeOWLEntityChecker cannot be converted to
OWLEntityChecker 
    [javac]         parser.setOWLEntityChecker(new
ProtegeOWLEntityChecker(mngr.getOWLEntityFinder())); 
    [javac]                                    ^ 
    [javac]
D:\Protege-API\org.protege.editor.owl\src\main\java\org\protege\editor\owl\ui\clsdescriptioneditor\OWLDescriptionSetChecker.java:46:
error: incompatible types: org.semanticweb.owlapi.expression.ParserException
cannot be converted to ParserException 
    [javac]             throw ParserUtil.convertException(e); 
    [javac]                                               ^ 
    [javac] Note: Some messages have been simplified; recompile with
-Xdiags:verbose to get full output 
    [javac] 13 errors 

BUILD FAILED 
D:\Protege-API\org.protege.editor.owl\build.xml:188: Compile failed; see the
compiler error output for details. 

Furthermore, running the OWLViz script fails as follows: 

Buildfile: D:\Protege-API\org.coode.owlviz\build.xml 
init: 
    [mkdir] Created dir: D:\Protege-API\org.coode.owlviz\build\lib 
checkProtegeLibs: 
     [echo] ********************************************************** 
     [echo] Using Protege Home = D:\Protege-API\Protege 
     [echo] Using Java Version = 1.8 
     [echo] ********************************************************** 
checkProtegeLibsAndReport: 
     [echo] Missing protege libraries.  You need to set 
     [echo] the PROTEGE_HOME environment variable to a 
     [echo] protege installation directory where the 
     [echo] appropriate plugins have been installed. 
     [echo] Alternatively set the jar libs in local.properties
(protege.lib=...) 
     [echo] Use the -v option to ant to see what jars are missing. 

BUILD FAILED 
D:\Protege-API\org.coode.owlviz\build.xml:65: missing protege libraries 

I have set up a PROTEGE_HOME environment variable, but I am sure it does
point to the correct folder. It currently points to D:\Protege-API\Protege.
Here is the directory structure of my Protege distribution and the .metadata
folder: 

<http://protege-project.136.n4.nabble.com/file/n4663004/protege.png> 

Where am I going wrong?  Am I missing anything rather obvious? the tools.jar
for Ant is the same version as my JRE/JDK (1.8.0_45). 

Thank you all for your help, 

Regards, 

I.



--
View this message in context: http://protege-project.136.n4.nabble.com/Setting-up-the-Eclipse-environment-for-Protege-4-1-compilation-issues-tp4663004.html
Sent from the Protege Developer mailing list archive at Nabble.com.


More information about the protege-dev mailing list