LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-17-2003, 06:40 PM   #1
xquizit
Member
 
Registered: Mar 2003
Location: Canada
Distribution: Ubuntu Dapper
Posts: 68

Rep: Reputation: 15
Java problem


ok I'm having problems with java I have already searched around but I could not find the awnser to my problem.

When I tried to install LimeWire I got this error, I have edited my /etc/profile and bash_profile.

Thanx
xquizit

"Launching installer...

Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)

Stack Trace:
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at java.awt.Window.init(Window.java:224)
at java.awt.Window.<init>(Window.java:268)
at java.awt.Frame.<init>(Frame.java:398)
at java.awt.Frame.<init>(Frame.java:363)
at com.zerog.ia.installer.Main.c(Unknown Source)
at com.zerog.ia.installer.Main.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.zerog.lax.LAX.launch(Unknown Source)
at com.zerog.lax.LAX.main(Unknown Source)
GUI-"
 
Old 03-17-2003, 08:00 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Quote:
I have edited my /etc/profile and bash_profile
What did you edit/append?

Where is java located? Assuming it's /usr/local/bin/java then you will want to make this line be your edit in /etc/profile and/or bash_profile:
/usr/local/bin/java/bin

Cool
 
Old 03-17-2003, 08:26 PM   #3
xquizit
Member
 
Registered: Mar 2003
Location: Canada
Distribution: Ubuntu Dapper
Posts: 68

Original Poster
Rep: Reputation: 15
In my /etc/profile this is what it looks like.

"# /etc/profile

# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc

pathmunge () {
if ! echo $PATH | /bin/egrep -q "(^|$1($|" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}

# Path manipulation
if [ `id -u` = 0 ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi

pathmunge /usr/X11R6/bin after

unset pathmunge

# No core files by default
ulimit -S -c 0 > /dev/null 2>&1

USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"

HOSTNAME=`/bin/hostname`
HISTSIZE=1000
JAVA_HOME="/usr/java/j2re1.4.1_02/bin"

if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC JAVA_HOME

for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done

unset i"

and in my bash_profile



"# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin:/usr/java/j2re1.4.1_02/bin

export PATH
unset USERNAME"
 
Old 03-17-2003, 08:32 PM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
If you are just trying to install LimeWire you do not need to put all that stuff in your /etc/profile file. Just export the path to java before you start the limewire installer:

export PATH=$PATH:/usr/java/j2re1.4.1_02/bin <enter>
./limewire-installer <enter>

I'm not sure if this will do the trick for you because it seems like the installer is finding java but it doesn't like it for some reason.
 
Old 03-17-2003, 08:36 PM   #5
NickMinutello
LQ Newbie
 
Registered: Mar 2003
Posts: 4

Rep: Reputation: 0
Your JAVA_HOME is wrong:

JAVA_HOME="/usr/java/j2re1.4.1_02/bin"

should be

JAVA_HOME="/usr/java/j2re1.4.1_02"

-Nick
 
Old 03-17-2003, 09:11 PM   #6
xquizit
Member
 
Registered: Mar 2003
Location: Canada
Distribution: Ubuntu Dapper
Posts: 68

Original Poster
Rep: Reputation: 15
Will thanx for your replys I have tried both your suggestions and it still does not work. Could it be because of this version of Ark is just a beta???

xquizit
 
Old 03-17-2003, 09:18 PM   #7
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
I would suggest installing a different version of java. It looks like the LimeWire installer is crashing. Or maybe your Limewire installer is corrupted.
 
Old 03-17-2003, 10:11 PM   #8
xquizit
Member
 
Registered: Mar 2003
Location: Canada
Distribution: Ubuntu Dapper
Posts: 68

Original Poster
Rep: Reputation: 15
I have downloaded both Jave and LimeWire and it still doesn't work but thats ok I found my self a diffrent p2p client.

Thanx everyone

xquizit
 
Old 03-17-2003, 10:13 PM   #9
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Which one did you decide on? And can you tell us a bit about it?

Cool
 
Old 03-17-2003, 11:06 PM   #10
xquizit
Member
 
Registered: Mar 2003
Location: Canada
Distribution: Ubuntu Dapper
Posts: 68

Original Poster
Rep: Reputation: 15
I found napshare it was the only one I can install.

It's a pretty good program and it's easy to use but downloads are a little slow. I am not good at reviews but out of 10 I would give it an 8.5 overall it's once again the speeds suck. But thats ok.

xquizit
 
Old 03-17-2003, 11:10 PM   #11
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
The only thing I see wrong with it from the very beginning is it's a gnutella client. I'd say broaden your abilities and look at edonkey or dcgui:
www.freshmeat.net

You will find much better speeds on dcgui once you share 20+GB's and get on the faster hubs where DSL+ people usually migrate.

Cool
 
Old 03-26-2003, 05:11 PM   #12
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
Re: Java problem

Quote:
Originally posted by xquizit
ok I'm having problems with java I have already searched around but I could not find the awnser to my problem.

When I tried to install LimeWire I got this error, I have edited my /etc/profile and bash_profile.

Thanx
xquizit

"Launching installer...

Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)

Stack Trace:
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at java.awt.Window.init(Window.java:224)
at java.awt.Window.<init>(Window.java:268)
at java.awt.Frame.<init>(Frame.java:398)
at java.awt.Frame.<init>(Frame.java:363)
at com.zerog.ia.installer.Main.c(Unknown Source)
at com.zerog.ia.installer.Main.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.zerog.lax.LAX.launch(Unknown Source)
at com.zerog.lax.LAX.main(Unknown Source)
GUI-"
I have the exact same error messages. I spent 4 hours last night searching LQ fora and G4L on this error. There are many similar errors out there, but this thread is the only one I found that is the exact same as mine.

I first downloaded the j2re1.4.1_02 package from sun. It installed flawlessly in /usr/java. I then issued as root:

export PATH=$PATH:/usr/java/j2re1.4.1_02/bin

and tried to run the LimeWireLinux.bin file as root. I got the exact same error message. All this was done in an Eterm in X. I had read somewhere that a reboot after installing the JavaVM would be beneficial. I closed out of X and rebooted. This time I figured that maybe trying to do all this while in X was causing the problem. After a reboot I logged in as root and then did the "export PATH=..." again then tried to run the LimeWireLinux.bin file. I got the same error message. I tried several more times to no avail. I had double-checked my PATH was correctly pointing to /usr/java/j2re1.4.1_02/bin and it is. At this point I have no idea what's going on. I've searched all over looking for the exact same problem and this thread is the first I've seen so far. Is there another java package I need to install other than j2re1.4.1_02? Any thoughts?

xquizit--hopefully you won't view this as a hijacked thread. I'm hoping that we'll both be able to get a solution to our problem. Thanks.

Last edited by Texicle; 03-26-2003 at 05:12 PM.
 
Old 03-26-2003, 09:48 PM   #13
xquizit
Member
 
Registered: Mar 2003
Location: Canada
Distribution: Ubuntu Dapper
Posts: 68

Original Poster
Rep: Reputation: 15
hee hee I still haven't found the awnser yet but for some reason it works in JAMD why because the creator installed it and set it up so I tried what he did and it still doesn't want to work with any other distro oh well linux IMHO it's still better then windows mabey we both can chat on MSN sometime ( spazattack101@hotmail.com )

Take Care
xquizit
 
Old 03-26-2003, 10:56 PM   #14
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
Cool man. I don't have MSN, but I do have Licq. If you ever go that route, look me up on 3631175. I'll see if I can't get Gaim to work with msn (have to figure out how as I don't use Gaim too often).

I've never used any other p2p things before so I have no idea what to expect. A friend wants me to get LimeWire working so she can send me some music. I have a feeling it isn't going to work out, but hopefully I'll figure something out.
 
Old 03-27-2003, 05:50 PM   #15
xquizit
Member
 
Registered: Mar 2003
Location: Canada
Distribution: Ubuntu Dapper
Posts: 68

Original Poster
Rep: Reputation: 15
Hey i'll look you up on icq but in gaim just load the msn plugin (dont unload just load and close window)

will I guess i'll talk with you on icq or msn

take care

xquizit
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Problem...again theguitarsquall Mandriva 8 01-08-2005 01:44 PM
Java Problem anirudh Programming 6 10-27-2004 04:42 PM
Java problem CragStar Programming 11 03-11-2004 11:02 AM
Java problem please help bwaynej2002 Linux - Software 2 02-06-2004 09:38 PM
Java problem oicdn Linux - Software 10 01-08-2004 08:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration