I copied tools.jar to all the right places and it still doesn't work.
Even using JCreator, I set the correct JDK to 1.5 and it should, by
rights, pick up the proper library but I don't know what I'm doing
wrong.
Here's my CLASSPATH
CLASSPATH=.;..;J:\TIJ4\code;javassist.jar;c:\jdk1.5.0_06\jre\lib
and JAVA_HOME
JAVA_HOME=c:\jdk1.5.0_06
I am using posix here to do a listing so you can see that tools.jar is
in the right place
-rwx---rwx 1 Compaq_Owner None 153235 Nov 10 10:20
sunjce_provider.jar
-rwx---rwx 1 Compaq_Owner None 175811 Nov 10 10:20 sunpkcs11.jar
-rwx---rwx 1 Compaq_Owner None 8176 Nov 10 11:05 dnsns.jar
-rwx---rwx 1 Compaq_Owner None 7043169 Nov 10 12:13 tools.jar
-rwx---rwx 1 Compaq_Owner None 802394 Nov 10 12:21 localedata.jar
-rwx---rwx 1 Compaq_Owner None 431568 Nov 29 17:44 xom-1.1.jar
-rwx---rwx 1 Compaq_Owner None 163728 Nov 29 17:44 xom-samples.jar
-rwx---rwx 1 Compaq_Owner None 1283237 Jan 18 16:35 swt.jar
-rwx---rwx 1 Compaq_Owner None 446045 Feb 23 01:50 javassist.jar
$ pwd
//C/jdk1.5.0_06/jre/lib/ext
I know there is something that I am doing wrong but I am only learning
Java so it's beyond me.
> I copied tools.jar to all the right places and it still doesn't work.
You don't need to copy it, just put its location on the classpath.
> Even using JCreator, I set the correct JDK to 1.5 and it should, by
> rights, pick up the proper library but I don't know what I'm doing
[quoted text clipped - 9 lines]
> I am using posix here to do a listing so you can see that tools.jar is
> in the right place
right place? What place is that?
> -rwx---rwx 1 Compaq_Owner None 153235 Nov 10 10:20
> sunjce_provider.jar
[quoted text clipped - 11 lines]
> I know there is something that I am doing wrong but I am only learning
> Java so it's beyond me.
The tools are part of the jdk, not the jre. Add
c:\jdk1.5.0_06\lib\tools.jar to your classpath to pick up tools.jar.
Mark
printdude1968@gmail.com - 16 Apr 2006 01:31 GMT
Hi Mark,
I posted this message to an Eclipse forum and got the answer...another
aspect of the IDE that I don't know anything about. Thanks for your
help.