Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   General Linux Support (https://www.gnutellaforums.com/general-linux-support/)
-   -   Exception in thread "main" java.lang.NoClassDefFoundError: com/zerog/lax/LAX (https://www.gnutellaforums.com/general-linux-support/6112-exception-thread-main-java-lang-noclassdeffounderror-com-zerog-lax-lax.html)

Unregistered December 1st, 2001 01:16 PM

Exception in thread "main" java.lang.NoClassDefFoundError: com/zerog/lax/LAX
 
I'm using a Red Hat 7.2, download and install
j2re-1_4_0-beta3-linux-i386-rpm.bin from sun.com.
After I change the line 3 of the "LimeWireLinux.bin" file to PATH=$PATH:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/java/j2re1.4.0/bin:/usr/java/j2re1.4.0/lib
and when I run ./LimeWireLinux.bin a have this gift:
Exception in thread "main" java.lang.NoClassDefFoundError: com/zerog/lax/LAX

Unregistered January 21st, 2002 03:52 PM

me too...
 
I had this exact error, I am in Mandrake 8.1 though.

HeadHolio January 21st, 2002 04:06 PM

What shows up when you type "java -version" into a console?

Unregistered January 21st, 2002 04:12 PM

this shows up
 
when i run: java -version, i get:
java version "1.3.1_02"
Java (TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02)
Java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode)

Unregistered January 21st, 2002 04:50 PM

also
 
by the way, the limewire 1.7 installer works, I tried it just to check, so it must be something new in the 2.1.1 or whatever the newest one is

Unregistered January 22nd, 2002 11:17 AM

DUH!!!! Stooopeeed me!!!

Okay, here's the deal. I'm the guy who posted earlier about setting your $PATH to the Java Virtual Machine.

1.) Assuming you have Sun's JRE installed, it would be in the following directory:

/usr/java/

The $PATH of course would be:

/usr/java/jre1.3.1_02/bin

2.) So now that we've established

$ echo $PATH
/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/usr/games:/usr/sbin:/usr/java/jre1.3.1_02/bin

that java is in your $PATH you're 1/2 way there.
IF you have a version of kaffe on your system, remove it (as root):

$ rpm -q kaffe

IF you have any version on there then remove:

$ rpm -e kaffe

(Or use your favorite GUI package manager)
===============

This seems to be installed by default on Mandrake. It'll cause conflicts!

Querying the version of java I have:

$ rpm -q jre-1.3.1_02
jre-1.3.1_02-fcs

Shows I have the latest version (although I thought I saw jre-1.3.1_03 out somewhere).

Now it works! Yay!!! Time to send in my donation ... :)

Unregistered January 22nd, 2002 02:07 PM

Uh.........
 
I have done all of that stuff. I still got that error. (I never had Kaffe installed BTW)

HeadHolio January 22nd, 2002 05:15 PM

AAHHH. Too many people called Unregistered. I don't know who is who! Is this guy talking to himself? Heh. Anyways, I urge you to double check your Java installation, and make sure that you do NOT have any trace of Kaffe on your system (even by accident). And if that doesn't work, I urge you to try a different version of Java, possibly Sun's beta version 1.4. It's worth a try right? I just have a feeling that there is something wrong with your java setup. It just doesn't sound right to have sooo many successful Java installations on Mandrake 8.0 and 8.1 by other users, and then have you with this problem.

Unregistered January 24th, 2002 02:05 PM

Did that
 
I did that stuff too, the Java install is fine, LimeWire just isn't installing. My JRE runs fine. If anyone has seen this error and solved it, please tell me.

Unregistered January 26th, 2002 07:39 PM

I am none of the above unregistered people. I am using Red Hat 7.1 and I am getting the exact same error message. A fix would be great.

s0cks January 26th, 2002 08:35 PM

I registered, I also downloaded and installed j2re1.4.0, I changed the path and my java -version is now:
java version "1.4.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b91)
Java HotSpot(TM) Client VM (build 1.4.0-rc-b91, mixed mode)

But I still get the same error:
Preparing to install...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...

Launching installer...

Exception in thread "main" java.lang.NoClassDefFoundError: com/zerog/lax/LAX

same error as with j2re1.3.1_02
I have had Limewire working with RedHat 7.1 but it was an older version. New Hard drive , Old Bios meant the Linux partition had to go for a bit but its back, however limewire is not. Please help.

afisk January 28th, 2002 04:55 PM

Does the installer output any error logs that you might be able to send me at afisk@limepeer.com? They should either be called err.txt or out.txt. I might be able to be of some assistance if you send them in.

Until then, there's always our trusty tgz download, available at:

http://www.limewire.com/index.jsp/download_other

I'm going to go ahead and move this thread over to the new installation section of the forum, but I'll leave a link to it.

Unregistered January 31st, 2002 06:29 AM

I got it working
 
Hello all, I know the error messages you get. I got them. And no one could make sense of it sending me on wild goose chases. But I think I figured something out.

In Redhat 7.2:
Even though you install the RPM of Sun's JRE there is STILL an OLD java in /usr/bin so I did this:
(as root)
mv /usr/bin/java /usr/bin/java.old
ln -s /usr/java/jre1.3.1_02/bin/java /usr/bin/java

Basically this moves and renames the non-working java to java.old, then makes a symbolic link to the java we want to use.

Limewire worked right away :-)

AOL-IM: toodeep2c

afisk January 31st, 2002 08:26 AM

Thanks very much for the helpful reply!

Unregistered February 4th, 2002 10:42 PM

i tried that symbolic linking fix, but when i finished, it told me there were too many levels of symbolic linking. what the heck?

Unregistered February 10th, 2002 07:56 PM

tried rpm -e kaffe
got the following

error: removing these packages would break dependencies:
kaffe is needed by wizard-3.2.1-5mdk
Now I now I could remove the wizard but I use it for Samba set up
(this is done and I really could dump it)

I then tried
mv /usr/bin/java /usr/bin/java.old
ln -s /usr/java/jre1.3.1_02/bin/java /usr/bin/java

The problem is I do not have jre changed jre to jdk and voila
it now works

Unregistered February 16th, 2002 04:43 PM

(new unreg person to this topic... will refer to my self as ethan because that's my name... to ease confusion)

ethan:
i have this error too in mandrake 8.1 i am VERY VERY NEW to linux... i'm a windows user... converting to this because it's "better" i so far have only gotten AIM to work on linux... i'm shooting for a second thing to work with limewire... i also get this error and i have tried that symbol link fix and i didn't even have a /usr/bin/java file...

HeadHolio February 16th, 2002 08:26 PM

Email me for help with your Linux/java setup. Sounds like you've made a mess ;)

(use this forum to email me)

Unregistered February 28th, 2002 09:34 PM

you are gertting a java class path issue you might want to check that you have the class that the program you are running is in the classpath befor you run the file its not a hugh thing it just a java class that is not thre..;....


cheers and good luck Andrewp

Unregistered March 5th, 2002 03:41 PM

Still not working...
 
(I am using Mandrake 8.1 and KDE 2.2.1, and am a complete Newbie to Linux. I have migrated from Windows due to the fact that it sux a$$. Please be considerate of my limited knowlage of Linux... ) I have tried almost everything suggested on this forum but i still get this error when trying to install Lime Wire:
Preparing to install...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...

Launching installer...

Exception in thread "main" java.lang.NoClassDefFoundError: com/zerog/lax/LAX

I started off with the Kaffe 1.0.6 version of java, and removed it because it was giving me completely different errors, and most people said to remove it. I then downloaded and installed the Java 2 Runtime Environment Standard Edition, v 1.3.1_02. I then tried to install LimeWire again, without much success. But this time I at least got the same error as the rest of the people. I tried typing in java -version but it keet saying that that the java command was not found. I then decided to remove 1.3.1 and install 1.4.0. After I had completed this the error still remained. Whenever I type in java -version it still says that the command java is not found. I have tried chaing the PATH in the LimeWireLinux.bin file and this didn't do anything either. My GUI software installer (Mandrake Software Manager) says that the java 1.4.0 package is installed and the directoy /usr/java/j2re1.4.0/ exists. Typing java -version in the console still returns the error: command not found. I am unsure as to what to do. Any help on this matter would be greartly appreciated.

Unregistered March 16th, 2002 12:12 AM

I have had these problems too with SuSE 7.1 Professional. Here is what I did to fix the problem.

In Xwindows, I opened a terminal, and typed:

xhost +

I then su'd to root:

su -

I then set my display:

export DISPLAY=:0

I then ran the installer:

sh ./LimeWireLinux.bin

And the GUI appeared and I was running.

jsand March 24th, 2002 11:46 PM

LimeWire install for Linux 7.2
 
LimeWire Install for Linux 7.2

First you will need to uninstall Kaffe if it is installed on your system. do this as root also you will need to install an JRE you can find this at www.java.sun.com or www.download.com

rpm -e kaffe this will remove kaffe

Next as root (in roots home directory) typels -a this will list all files. use your favorite text editer and edit the file .bash_profile by editing the line that looks like this
PATH=$PATH:$HOME/bin

you want it to look like this
PATH=$PATH:$HOME/bin:/usr/java/j2re<your version>/bin

Now run the LimeWire installer
sh ./LimeWirelinux.bin
and it should be installing in no time.

Hope this helps

Unregistered March 25th, 2002 04:40 PM

This is getting insane.
 
New unregistered, similiar problem; here's the deal.
Fixed the whole kaffe problem, upgraded to Java 2 SDK, 1.4.0, $PATH is working fine and all. Edited line 3 of LimeWireLinux.bin to correct path, and still got this error when I typed ./LimeWireLinux.bin:

Preparing to Install...
Extracting the resources etc. etc.

Ready to Install...

./LimeWireLinux.bin: /bin/java: No such file or directory.

OK, easy enough to fix, just made a simlink to /usr/java/j2sdk1.4.0/bin/java in /bin. Then the same thing happened, only this time the error pointed to /usr/bin/java. When I repeated the fix (i.e. makign a simlink from the error directory to the working java directory) I recieved the "Exception in thread "main" etc. etc. " that has caused so many headaches thus far.
I'm pretty new with Linux but have done pretty well so far. However try as I might I cannot seem to lick this problem. Any input would be vastly apreciated.

jsand March 25th, 2002 05:25 PM

LimeWireLinux.bin
 
You do not need to edit the LimeWireLinux.bin script at all. add your J2re path to your .bash_profile in roots home directory.

Unregistered March 29th, 2002 03:44 AM

symbolic link fix worked great for me thanks man...

Unregistered April 1st, 2002 05:50 PM

I have the same problem. Anyone who can help me out. I would greatly appreciate it. I don't like to have to switch between Windows and Mandrake 8.2 to download stuff off of LimeWire.
PLEASE HELP!!!!!!!!!

Unregistered April 16th, 2002 01:31 AM

Yeah I'm another new guy (Mat) but my error message is a little bit different. I get

Launching installer...

Error occured during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

Oh yeah I'm running Mandrake 8.1

Unregistered April 16th, 2002 03:26 AM

Never mind....
I upgraded to Java 1.4.0 and I now get the same jav.lang.bla.bla message. I have tried everything here but it still does not work

Taliban April 16th, 2002 08:13 AM

is your classpath correct ?

export CLASSPATH=/usr/lib/java/lib (or wherever your rt.jar file is located)

might do the trick...

Taliban April 16th, 2002 08:19 AM

Oh and what does "java -version" return?

Unregistered April 16th, 2002 02:09 PM

(Mat)
"java -version" shows

java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)

My classpath is now correct as well but I still get the error message.

nDiScReEt May 9th, 2002 01:34 AM

I Got It Working
 
I will take it to another level. I am using Mandrake 8.2 with Java blackdown version:

java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.3.1-02b-FCS)
Java HotSpot(TM) Client VM (build Blackdown-1.3.1_02b-FCS, mixed mode)

I put where I downloaded my j2sdk1.3.1-02b-FCS:

/usr/lib/j2sdk1.3.1

into my PATH in my .bash_profile:

export JAVA_HOME=/usr/lib/j2sdk1.3.1
export PATH=$JAVA_HOME/bin:$PATH

After doing that, I remove kaffe from my system but I have a dependency problem with my wizard packages. I do this command to keep that program around:

rpm -e kaffe --nodeps

This removes all instances of kaffe binaries from /usr/bin.

I next create soft links to the /usr/bin directory but blackdown has most of all of it's java commands (ie java, javac, etc) as symbolic links. Some people´s configuration will not allow that many symlinks.
the symlinks point to a "hidden" file called .java_wrapper. So I link this to my /usrbin directory like so:

ln -s /usr/lib/j2sdk1.3.1/bin/.java_wrapper /usr/bin/java

After doing that, I execute the LImeWireLinux.bin installer:

./LimeWireLinux.bin

Installation works. Program installed, running, and functional. I discovered that I had to install the program as user instead of trying to set it systemwide as root.

nDiScReEt May 9th, 2002 01:40 AM

Salvation
 
I will take it to another level. I am using Mandrake 8.2 with Java blackdown version:

java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.3.1-02b-FCS)
Java HotSpot(TM) Client VM (build Blackdown-1.3.1_02b-FCS, mixed mode)

I put where I downloaded my j2sdk1.3.1-02b-FCS:

/usr/lib/j2sdk1.3.1

into my PATH in my .bash_profile:

export JAVA_HOME=/usr/lib/j2sdk1.3.1
export PATH=$JAVA_HOME/bin:$PATH

After doing that, I remove kaffe from my system but I have a dependency problem with my wizard packages. I do this command to keep that program around:

rpm -e kaffe --nodeps

This removes all instances of kaffe binaries from /usr/bin.

I next create soft links to the /usr/bin directory but blackdown has most of all of it's java commands (ie java, javac, etc) as symbolic links. Some people´s configuration will not allow that many symlinks.
the symlinks point to a "hidden" file called .java_wrapper. So I link this to my /usrbin directory like so:

ln -s /usr/lib/j2sdk1.3.1/bin/.java_wrapper /usr/bin/java

After doing that, I execute the LImeWireLinux.bin installer:

./LimeWireLinux.bin

Installation works. Program installed, running, and functional.

rs008f June 28th, 2002 09:11 AM

That didn't work for me either. I have SUSE 8.0 and there is no old java in /usr/bin. However there is an old java in /usr/lib/SunJava1-1.1.8/bin but when I do a java -version, the system recognizes 1.40, so it means it'not using the old version. Am I right? I'll download the trusted LImeWire tgz version and see if it'll work.

rs008f June 28th, 2002 09:23 AM

I managed to get the tgz version to work.
http://www.gnutellaforums.com/showth...3513#post43513

nDiScReEt July 1st, 2002 01:02 AM

BlackDown?
 
Quote:

Originally posted by Unregistered
i tried that symbolic linking fix, but when i finished, it told me there were too many levels of symbolic linking. what the heck?
You must be using blackdown's jvm package. YOu will have to create your links like so:

ln -s /usr/lib/j2re1.4.0_01/bin/.java_wrapper /usr/bin/java

Just replace "/usr/lib/j2re1.4.0_01" with your correct directory.

HTH

altoine

Unregistered July 30th, 2002 10:48 AM

IM a new poster and do ALL the stuff and still the same error message.........seem we have a bug.......

nDiScReEt August 3rd, 2002 03:08 AM

Re: I got it working
 
Quote:

Originally posted by Unregistered
Hello all, I know the error messages you get. I got them. And no one could make sense of it sending me on wild goose chases. But I think I figured something out.

In Redhat 7.2:
Even though you install the RPM of Sun's JRE there is STILL an OLD java in /usr/bin so I did this:
(as root)
mv /usr/bin/java /usr/bin/java.old
ln -s /usr/java/jre1.3.1_02/bin/java /usr/bin/java

Basically this moves and renames the non-working java to java.old, then makes a symbolic link to the java we want to use.

Limewire worked right away :-)

AOL-IM: toodeep2c

YOu wouldn't have to do that at all if you put $JAVA_HOME/bin in front of all yiour other path statements like so:

export PATH=$JAVA_HOME/bin:$PATH

altoine.

nDiScReEt August 3rd, 2002 03:12 AM

Many Apologies
 
Quote:

Originally posted by rs008f
That didn't work for me either. I have SUSE 8.0 and there is no old java in /usr/bin. However there is an old java in /usr/lib/SunJava1-1.1.8/bin but when I do a java -version, the system recognizes 1.40, so it means it'not using the old version. Am I right? I'll download the trusted LImeWire tgz version and see if it'll work.
I didn't see this message until now. The reason your tarball worked it that you had been rebooted your computer since the last upgrade. You should type:

source .bash_profile

if you don't want to do the "Windows" method of getting configuration settings to work.

altoine


All times are GMT -7. The time now is 08:50 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.