jEdit Community - Resources for users of the jEdit Text Editor
Console Plugin on Windows
Submitted by Szaman2 on Thursday, 12 August, 2004 - 01:26
Does anyone else have problems with the way javac command works under windoze? When I choose the javac option from the menu the default value for the classpath variable is:

$CLASSPATH;C:\your\current\working\directory

Now this is wrong and gives me an illegal argument exception from javac. However if you switch $CLASSPATH to a proper windows system variable notation %CLASSPATH% all is well.

This is a really anoying me, and I could not get rid of despide installing new version of jedit, and the new version of console plugin. Unfortunately I don't know anyone else who has the same issue.

Could it be caused by my Cygwin install which probably hass an env variable $CLASSPATH defined?
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
one way to fix it
by Anonymous on Wed, 06/10/2004 - 18:24
I had the same problem, so I dug around in the Console plugin, and here's the fix:
You will have to alter the file console.bsh in \.jedit\Console.jar\console

I used WinRAR, but you can open it in whatever zip program you want. Just make sure that after you extract and change the file, you put it back in the .jar, since that's what jedit will load.

make this change to the getBufferClassPath function:
//note: used to be "$CLASSPATH"
	return "%CLASSPATH%" + File.pathSeparator
		+ ConsolePlugin.getPackageRoot(buffer);
After you've patched that back into the .jar, you should be all set.
Ideally, you would do some check in that function to tell if you're running Windows or a Unix-type system, and return the appropriately-named environment variable - the given fix will just hardcode it to work on Win.
User login
Browse archives
« April 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   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293