A
alpertaha
I am using LInux - Kanotix ( Debian ) and using Netbeans as IDE for
java.To install I did all this things;
export JAVA_HOME $HOME/java/jdk1.5.0
export JSIM_HOME $HOME/JSIM
export CLASSPATH $JSIM_HOME/.:$CLASSPATH
cd JSIM
ant -buildfile JSIMBuild.xml compile
Than try to compile an example.It gives the error..
cd examples/bank
ant -find Designer.xml
Unable to locate tools.jar. Expected to find it in
/usr/lib/j2re1.4-sun/lib/tools.jar
Searching for Designer.xml ...
Buildfile: /home/a05-218a/JSIM/Designer.xml
designer:
[java] Exception in thread "main"
java.lang.UnsupportedClassVersionError: jsim/jmodel/NetFrame
(Unsupported major.minor version 49.0)
[java] at java.lang.ClassLoader.defineClass0(Native Method)
[java] at java.lang.ClassLoader.defineClass(Unknown Source)
[java] at java.security.SecureClassLoader.defineClass(Unknown
Source)
[java] at java.net.URLClassLoader.defineClass(Unknown Source)
[java] at java.net.URLClassLoader.access$100(Unknown Source)
[java] at java.net.URLClassLoader$1.run(Unknown Source)
[java] at java.security.AccessController.doPrivileged(Native
Method)
[java] at java.net.URLClassLoader.findClass(Unknown Source)
[java] at java.lang.ClassLoader.loadClass(Unknown Source)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown
Source)
[java] at java.lang.ClassLoader.loadClass(Unknown Source)
[java] at java.lang.ClassLoader.loadClassInternal(Unknown
Source)
[java] Java Result: 1
BUILD SUCCESSFUL
Total time: 2 seconds
I couldn't understand the mistake..Can u help me?
java.To install I did all this things;
export JAVA_HOME $HOME/java/jdk1.5.0
export JSIM_HOME $HOME/JSIM
export CLASSPATH $JSIM_HOME/.:$CLASSPATH
cd JSIM
ant -buildfile JSIMBuild.xml compile
Than try to compile an example.It gives the error..
cd examples/bank
ant -find Designer.xml
Unable to locate tools.jar. Expected to find it in
/usr/lib/j2re1.4-sun/lib/tools.jar
Searching for Designer.xml ...
Buildfile: /home/a05-218a/JSIM/Designer.xml
designer:
[java] Exception in thread "main"
java.lang.UnsupportedClassVersionError: jsim/jmodel/NetFrame
(Unsupported major.minor version 49.0)
[java] at java.lang.ClassLoader.defineClass0(Native Method)
[java] at java.lang.ClassLoader.defineClass(Unknown Source)
[java] at java.security.SecureClassLoader.defineClass(Unknown
Source)
[java] at java.net.URLClassLoader.defineClass(Unknown Source)
[java] at java.net.URLClassLoader.access$100(Unknown Source)
[java] at java.net.URLClassLoader$1.run(Unknown Source)
[java] at java.security.AccessController.doPrivileged(Native
Method)
[java] at java.net.URLClassLoader.findClass(Unknown Source)
[java] at java.lang.ClassLoader.loadClass(Unknown Source)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown
Source)
[java] at java.lang.ClassLoader.loadClass(Unknown Source)
[java] at java.lang.ClassLoader.loadClassInternal(Unknown
Source)
[java] Java Result: 1
BUILD SUCCESSFUL
Total time: 2 seconds
I couldn't understand the mistake..Can u help me?