Click to See Complete Forum and Search --> : JAVA + LimeWire problem


sheds
11-03-2004, 07:04 PM
I have exactly the same problem. I have installed java, i don't know wether it was the JRE or the JVM. The thing is i get the msg:

[rafa@00e0295c9f23 Installers]$ sh ./LimeWireLinux.bin
Preparing to install...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
No Java virtual machine could be found from your PATH
environment variable. You must install a VM prior to
running this program.

I had to link java to mozilla for the browser to use java. I does work, i can run applets on mozilla. Then i had to modify bashrc and add some lines, the file was left like follows:

# .bashrc

# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
PATH=$PATH:/usr/java/j2sdk1.4.2_01/jre/bin:
JAVA_HOME=/usr/java/j2sdk1.4.2_01/jre/bin
export PATH
export JAVA_HOME

What am i missing? Or is something wrong in this file? Or should i tell sh ./LimeWireLinux.bin that java is somewhere in the machine?

HELP PLEASE!!!! Thanks everybody!!!

Hayl
11-03-2004, 08:33 PM
sheds,

Per our posting guidelines, please do not hijack other people's threads with your own questions. Start a new thread. I split this request for assisance out of someone else's java/LimeWire thread.

The posting guidelines are in sticky threads at the top of each forum.

voidinit
11-03-2004, 09:30 PM
Originally posted by sheds

PATH=$PATH:/usr/java/j2sdk1.4.2_01/jre/bin:
JAVA_HOME=/usr/java/j2sdk1.4.2_01/jre/bin
export PATH
export JAVA_HOME


I think the paths your variables are pointing to here is the problem. If you have the full JDK installed on your box, and not just the JRE, which it looks like you do, you don't want to add /jre/bin/ to your PATH. Do it like:

export PATH=$PATH:/usr/java/j2sdk1.4.2_01/bin

And JAVA_HOME should point to he base of the java installation like so:

export JAVA_HOME=/usr/java/j2sdk1.4.2_01

TIP: Symlink /usr/java/j2sdk1.4.2_01 to /usr/java/sdk, and put the /usr/java/sdk path into .bashrc or .bash_profile or /etc/profile, or wherever you are going to add these paths. That way, when you update or upgrade your JDK you won't have to dig through all these startup scripts and change the version numbers. You'll just have to redo the symlink and point it to the latest installation.