jEdit Community - Resources for users of the jEdit Text Editor
tools.jar & JCompiler
Submitted by rharlos on Wednesday, 7 April, 2004 - 21:50
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
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
Simple and robust solution to running tools.jar
by Anonymous on Tue, 14/09/2004 - 09:28
If you use the "shortcut" approach, on Win98 you get an MS-DOS window that kills jEdit when you close it - not good.

A better solution is to run jar files using the SDK rather than the JRE:
1. Open My Documents.
2. Click View > Folder Options.
3. Click on the File Types tab.
4. Select the Executable Jar File from Registered File Types.
5. Click Edit button.
6. Select "open" from Actions.
7. Click Edit button.
8. Change the "application used" from

"C:\Program Files\Java\j2re1.4.2_04\bin\javaw.exe" -jar "%1" %*

to

"C:\j2sdk1.4.2_04\bin\javaw.exe" -jar "%1" %*

Obviously you'll have to check that the paths match those on your computer.

9. Click OK or Close on the various dialogue boxes.

Now when you double-click the jedit.jar file (or any shortcut link to it), JCompiler and other tools will work fine.

Enjoy.

tomoakley.net
You could try starting jEdit
by Anonymous on Wed, 07/04/2004 - 21:55
You could try starting jEdit with a JDK JVM like so:

C:\j2sdk1.4.2_02\bin\java -jar jedit.jar

If you're using jEditLauncher, you'd need to change its configuration.
User login
Browse archives
« November 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   101634
Context Free Art (*.cfdg)   0.31   46062
BBEdit scheme   1.0   18601
JBuilder scheme   .001   18502
ColdFusion scheme   1.0   18031
R Edit Mode - extensive version   0.1   17481
Advanced HTML edit mode   1.0   16213
Matlab Edit Mode   1.0   16075
jEdit XP icons   1.0   15236
XP icons for jEdit   1.1   14300