tools.jar & JCompiler
Submitted by Wednesday, 7 April, 2004 - 21:50
on
I'm a relatively new JEdit user and I enjoy it very much. One point I'm struggling with is the visibility of tools.jar for the JCompiler plug-in.
I know I can just copy it into the jedit/jars folder (because I did this on a friends laptop just to get it working) but i really, REALLY want to solve this problem using JAVA_HOME and/or CLASSPATH.
When I installed the SDK (1.4.02), I opted to allow it to install the public JRE as well (was this my bad?). Without having set any environment variables (did I mention I'm using Windows XP Pro?), the plug-in reports that it can't find tools.jar ... that my java.home is the public install (c:\program files\java\j2re1.4.2_04\bin) ... the the tools.jar file is usually found (relative to java.home) in ..\lib, so...
I've tried creating a CLASSPATH env var that points specifically to the tools.jar in the SDK/lib directory... I've tried adding a JAVA_HOME env var that points to the SDK's \bin directory, and to the actual root/home directory... none of these things seems to work.
I feel as if I'm going to HAVE to copy tools.jar into jedit/jar in order to get this to work but I can't help but wonder if I'm just overlooking some simple step/idea that would allow me to get this working WITHOUT having to do the copy.
Any help much appreciated!
Richard
I know I can just copy it into the jedit/jars folder (because I did this on a friends laptop just to get it working) but i really, REALLY want to solve this problem using JAVA_HOME and/or CLASSPATH.
When I installed the SDK (1.4.02), I opted to allow it to install the public JRE as well (was this my bad?). Without having set any environment variables (did I mention I'm using Windows XP Pro?), the plug-in reports that it can't find tools.jar ... that my java.home is the public install (c:\program files\java\j2re1.4.2_04\bin) ... the the tools.jar file is usually found (relative to java.home) in ..\lib, so...
I've tried creating a CLASSPATH env var that points specifically to the tools.jar in the SDK/lib directory... I've tried adding a JAVA_HOME env var that points to the SDK's \bin directory, and to the actual root/home directory... none of these things seems to work.
I feel as if I'm going to HAVE to copy tools.jar into jedit/jar in order to get this to work but I can't help but wonder if I'm just overlooking some simple step/idea that would allow me to get this working WITHOUT having to do the copy.
Any help much appreciated!
Richard