jEdit Community - Resources for users of the jEdit Text Editor
java update broke jedit 4.3.2 for me
Submitted by jeditcdnguy on Tuesday, 26 October, 2010 - 16:34
I'm running ubuntu jaunty when I got an update today re:java

After the update jedit 4.3.2 stopped working

Here's what happens when I run it in the terminal

terry@beauty:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/bin$ java jedit
Exception in thread "main" java.lang.NoClassDefFoundError: jedit
Caused by: java.lang.ClassNotFoundException: jedit
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: jedit. Program will exit.
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
Which command did You invoke
by Robert Schwenn on Tue, 26/10/2010 - 19:27
Which command did You invoke at the terminal?

Please invoke "which jedit", which tells You the path of the used shell script. What's the content of this script?
 
Got it!
by jeditcdnguy on Tue, 26/10/2010 - 23:27
You da man!

Which jedit returned this

/home/terry/bin/jedit

which when looked at with cat returned this

#!/bin/sh
#
# Runs jEdit - Programmer's Text Editor.
#

# Set jvm heap initial and maximum sizes (in megabytes).
JAVA_HEAP_MAX_SIZE=192

DEFAULT_JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.20/jre"
if [ -z "$JAVA_HOME" ]; then
JAVA_HOME="$DEFAULT_JAVA_HOME"
fi

# Launch application.

exec "$JAVA_HOME/bin/java" -Xmx${JAVA_HEAP_MAX_SIZE}M -jar "/home/terry/jedit/4.3.2/jedit.jar" "$@"

using gedit to turn

DEFAULT_JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.20/jre"

into the new

DEFAULT_JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.22/jre"

which fixed the problem!

Thanks!
 
other script
by Robert Schwenn on Wed, 27/10/2010 - 17:56
There should be a better script which looks for an existing java installation under usr/local/bin. If You found that You could delete the other one.
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