From: alpertaha on
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?

From: Gordon Beaton on
On 13 Apr 2006 02:05:43 -0700, alpertaha(a)gmail.com wrote:
> 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

--
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
 | 
Pages: 1
Prev: localhost:9080
Next: VM Heap Reservation