Try to install JSIM

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?
 
G

Gordon Beaton

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

It seems you have more than one java in your PATH.

Type "type -a java" and "type -a javac" to see where they are.
Uninstall the one you don't want, or make sure the right one appears
first in the PATH.

/gordon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top