sbgn / libsbgn

Libraries for the Systems Biology Graphical Notation (SBGN); Java and C++
Other
15 stars 8 forks source link

Compile problem: error: Source option 1.5 is no longer supported. Use 1.6 or later #41

Closed ibalaur closed 5 years ago

ibalaur commented 6 years ago

Dear All,

I am trying to compile the libSBGN jar with a Mac book, (java 9.0.1 Java(TM) SE Runtime Environment (build 9.0.1+11), but I have the following error message during the ant command :

[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
[javac] error: Source option 1.5 is no longer supported. Use 1.6 or later.
[javac] error: Target option 1.5 is no longer supported. Use 1.6 or later.

BUILD FAILED

I also changed the org.sbgn/build.xml file to refer to ant.build.javac version 1.6 instead of 1.5: line 5: property name=“ant.build.javac.target” value=“1.5”/ —>1.6 property name=“ant.build.javac.source” value="1.5"/ —>1.6

line 103: javac srcdir="test" debug="true" includes="**" destdir="build" source=“1.5” —>1.6

The build is successful, but there is a runtime error when I use the resulted libsbgn.jar in eclipse.

Could you please let me know if you have any suggestions on these issues? Thank you very much.

Best regards, Irina Balaur

fbergmann commented 5 years ago

sorry for the delay, i've upgarded the source version to 1.6 .. with that it worked for me. I'm not sure about refering to the ant.build.javac references.