LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Java problem (https://www.linuxquestions.org/questions/linux-newbie-8/java-problem-50350/)

xquizit 03-17-2003 05:40 PM

Java problem
 
ok I'm having problems with java I have already searched around:study: 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-"

MasterC 03-17-2003 07:00 PM

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

xquizit 03-17-2003 07:26 PM

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"

Crashed_Again 03-17-2003 07:32 PM

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.

NickMinutello 03-17-2003 07:36 PM

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

xquizit 03-17-2003 08:11 PM

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

Crashed_Again 03-17-2003 08:18 PM

I would suggest installing a different version of java. It looks like the LimeWire installer is crashing. Or maybe your Limewire installer is corrupted.

xquizit 03-17-2003 09:11 PM

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

MasterC 03-17-2003 09:13 PM

Which one did you decide on? And can you tell us a bit about it?

Cool

xquizit 03-17-2003 10:06 PM

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

MasterC 03-17-2003 10:10 PM

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

Texicle 03-26-2003 04:11 PM

Re: Java problem
 
Quote:

Originally posted by xquizit
ok I'm having problems with java I have already searched around:study: 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. :)

xquizit 03-26-2003 08:48 PM

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:D so I tried what he did and it still doesn't want to work with any other distro:mad: oh well linux IMHO it's still better then windows :D:D mabey we both can chat on MSN sometime ( spazattack101@hotmail.com )

Take Care :)
xquizit

Texicle 03-26-2003 09:56 PM

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. :D

xquizit 03-27-2003 04:50 PM

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

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

take care

xquizit


All times are GMT -5. The time now is 06:15 AM.