jEdit Community - Resources for users of the jEdit Text Editor
Location of JDK
Submitted by naugiedoggie on Tuesday, 27 September, 2005 - 01:32
When I try to run JCompiler, it gives me an error saying that my 'java.home' appears to be "C:\Program Files\Java\jre1.5.0_04". Where is it getting that from? It's not from my environmental settings:

powem@PDXPOWEM01 [ ~ ]
--> echo $JAVA_HOME
C:\Program Files\Java\jdk1.5.0_04

c:\src>set
CLASSPATH=C:\Program Files\MySQL\mysql-connector-java-3.1.10;
JAVA_HOME=C:\Program Files\Java\jdk1.5.0_04

I've looked in various properties files and can't find any place to set this value. Any help would be appreciated.

Thanks.

mp
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
From starting jEdit
by Vampire on Tue, 27/09/2005 - 22:26
The java.home-property depends on the the java-executable with which you start jEdit. If I remember correctly you should start jEdit with the JDKs java-executable, not with the JREs. Or is your problem the one described in the helpfiles? If so, I would ask why you didn't read them Eye-wink
 
Problem description
by naugiedoggie on Thu, 29/09/2005 - 11:13
The problem is exactly as I described it. I found nothing like it in the help files. To make matters worse, I edited the file type for 'jar' and changed the 'open' command from the jre version of javaw to the jdk version and it broke jedit altogether. Now, it generates a 'no main class found' error and exits -- even after I changed back the open command. I also set the 'open' command to plain java.exe and it won't run the jar. Right now, the only way jedit runs is if i do 'java -jar jedit.jar' from a command prompt. At least, if I run it from the prompt, jCompiler works.

Thanks for the reply.

mp
 
-jar
by Vampire on Fri, 30/09/2005 - 15:39
Did you maybe omit the "-jar"-option when editing the open-command? The line should be like: "\javaw.exe" -jar "%1" %*
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   82349
Context Free Art (*.cfdg)   0.31   46055
BBEdit scheme   1.0   18595
JBuilder scheme   .001   18495
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