jEdit Community - Resources for users of the jEdit Text Editor
Problem Installing jEdit from .jar file
Submitted by matazar42 on Sunday, 16 October, 2005 - 20:22
Ok, I've never installed anything from a .jar before so I probably forgot something stupid. I'm using RedHat 9 linux. I downloaded the .jar and ran it with this output:

[root@localhost zips]# java -jar ./jedit42install.jar
Warning: -jar not understood. Ignoring.
Exception in thread "main" java.lang.NoClassDefFoundError: ..jedit42install.jar
at 0x40268e17: java.lang.Throwable.Throwable(java.lang.String) (/usr/lib/./libgcj.so.3)
at 0x4025bc8e: java.lang.Error.Error(java.lang.String) (/usr/lib/./libgcj.so.3)
at 0x4025d6b6: java.lang.LinkageError.LinkageError(java.lang.String) (/usr/lib/./libgcj.so.3)
at 0x4025eb36: java.lang.NoClassDefFoundError.NoClassDefFoundError(java.lang.String) (/usr/lib/./libgcj.so.3)
at 0x402ad075: gnu.gcj.runtime.FirstThread.run() (/usr/lib/./libgcj.so.3)
at 0x4024fc4c: _Jv_ThreadRun(java.lang.Thread) (/usr/lib/./libgcj.so.3)
at 0x4021c8ac: _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/./libgcj.so.3)
at 0x08048910: ?? (??:0)
at 0x42015704: __libc_start_main (/lib/tls/libc.so.6)
at 0x080486c1: ?? (??:0)



Any help is appreciated.

-Matthew
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
my suggestion
by cvicari on Mon, 17/10/2005 - 15:43
From your stack trace, I notice that your "java" command is mapped to the gnu virtual machine. I don't know if this supports the execution of jar files, I suggest installing the sun JVM (http://java.sun.com/).
You can verify what jvm you are using by typing "java -version"
 
I believe I did install the s
by matazar42 on Wed, 19/10/2005 - 04:37
I believe I did install the sun version of java. This is the output of the java -version command.


[matthew@localhost matthew]$ java -version
java version "1.3.1"
jdkgcj 0.2.3 (http://www.arklinux.org/projects/jdkgcj)
gcj (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[matthew@localhost matthew]$


Thanks for your help.
 
try this way
by cvicari on Wed, 19/10/2005 - 16:11
The output of your java -version indicates that you're using the gnu's JVM. If you really installed the SUN's one, try
'locate java | grep bin'
to see in what locations you installed the 'java' command - usually, in the same folder there are other commands like javaws. For example, you could find (two lines of output)

/usr/bin/java
/usr/j2sdk1.4.1_02/jre/bin/java

so, type

[localhost]$ /usr/j2sdk1.4.1_02/jre/bin/java -version

If the output indicates the SUN's JVM, you can safely type
/usr/j2sdk1.4.1_02/jre/bin/java -jar ./jedit42install.jar
and it should work! Alternatively, you could change you PATH env variable to use the SUN's jvm by default.
If, instead, someone succeeded in using jedit with the gnu's jvm, please tell us! But if I remember well, it doesn't have support for the Swing classes that jedit uses...
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