LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   problem with Java2 RE 1.4.1-04 for Limeware (https://www.linuxquestions.org/questions/linux-general-1/problem-with-java2-re-1-4-1-04-for-limeware-78321/)

jam88win 08-02-2003 11:00 AM

problem with Java2 RE 1.4.1-04 for Limeware
 
I installed the Java 2 RE 1.4.1_04 by unzipping it and running the RPM file. Now i don't know where the package got installed. And when i try to install limeware iam getting the following error message ........

____________________________________________________

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.
_____________________________________________________

Anybody who can help me plz......... Thanks in advance for the help...........

Hangdog42 08-02-2003 03:53 PM

You can always try whereis java or which java to find out where your java is installed. Then you will have to add that directory to your PATH either in your /etc/profile or your local config file.

jam88win 08-02-2003 10:36 PM

thanks for ur commands but still iam getting it

_________________________________________

which java
/usr/bin/which: no java in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)

__________________________________________

wat to do .......help me , i have installed java RE correctly

zero_copy 08-03-2003 07:07 AM

what u need to do is set the environment variables, preferably in your rc.local or /etc/profile for system wide settings, or u could use the user .profile. just make sure it gets 'sourced' before you run anything that requires java. heres the lines u need to add:

*java should be installed to somewhere like "/usr/local/j2re_1.4.0/"

PATH=/path/to/java/bin:$PATH
JAVA_HOME=/path/to/java/directory
export JAVA_HOME
export PATH

watch out for the first 2 lines, include the "/bin:$PATH" on the first line but not the second. that should do the trick. have fun

Hangdog42 08-03-2003 07:44 AM

Oops. My bad. I missed that you had just installed the JRE and not the full JDK. Zero_copy has it right, you need to find your j2re directory (/usr and /usr/local are the best places to look) and then add the lines zero_copy suggests to your /etc/profile or ~/.bashrc file.


Just to explain what happend with the which java command: It was looking for the java compiler, which isn't installed when you install just the JRE.

jam88win 08-03-2003 10:38 AM

Thanks Zero_copy........Everything is fine and working properly Limeware... Does Limeware get disconnected so easily..........ie.
it connects very slowly as well... UR comments plz.....

Thanks all of u

zero_copy 08-03-2003 06:40 PM

well i have used limewire on both dialup and cable....i cant stand limewire on dialup, at least with some P2P u can manage....but limwire(for me) is pretty much unuasable with a dialup....works great with a cable/dsl though....go figure.

lowlyfe 02-15-2004 01:17 PM

same thing
 
I too get that error but I cant seem to get it to work. When I type whereis java it tells me it is in /usr/share/java. but that doesn't work when I enter that in to ./profile or ./rclocal. I looked in /usr/local and there no java folder there. I did find java in /usr/java/j2re1.4.2_03. So I entered:

PATH=/usr/java/j2re1.4.2_03/bin:$PATH
JAVA_HOME=/usr/java/j2re1.4.2_03
export JAVA_HOME
export PATH

i entered that in to profile, and rc.local......but when i run which java i still get

[root@localhost root]# which java
/usr/bin/which: no java in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)

so now im really confused because what has been suggested worked for the last guy but why isn't it working for me?

my /etc/profile looks like this:

# /etc/profile

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

PATH=/usr/java/j2re1.4.2_03/bin:$PATH
JAVA_HOME=/usr/java/j2re1.4.2_03
export JAVA_HOME
export PATH

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

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

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC

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

unset i


and the /rc.local looks like this:

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local

PATH=/usr/java/j2re1.4.2_03/bin:$PATH
JAVA_HOME=/usr/java/j2re1.4.2_03
export JAVA_HOME
export PATH

any help would be great, thanks in advance!

lowlyfe 02-15-2004 01:54 PM

nevermind, I guess i just needed to restart. oops


All times are GMT -5. The time now is 06:00 PM.