(SOLVED) how to run programs with java?

Booting, installing, newbie
Post Reply
Message
Author
caesirian
Posts: 39
Joined: Tue 31 Oct 2006, 16:42

(SOLVED) how to run programs with java?

#1 Post by caesirian »

hi all

i have installed the last version of java from their site
but now i dont know how to run limewire and other apps that use java

any tip for this?

my puppy version is 2.11 and im very new with linux
Last edited by caesirian on Thu 02 Nov 2006, 12:54, edited 1 time in total.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#2 Post by Lobster »

Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

caesirian
Posts: 39
Joined: Tue 31 Oct 2006, 16:42

#3 Post by caesirian »

ok thanks, ill try it when i go home
cant do to much from the office with window$

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#4 Post by GuestToo »

you need to set JAVA_HOME and PATH to where your files are

if your files are in /root/jre1.5.0_09, you could put these lines in /etc/profile.local (create the file if it does not exist):

export JAVA_HOME=/root/jre1.5.0_09
export PATH=$PATH:$JAVA_HOME/bin

then reboot

then you can start a program by typing something like:

java -jar aprogram.jar

often, a program can be started by clicking it's start script
Last edited by GuestToo on Thu 02 Nov 2006, 14:36, edited 1 time in total.

caesirian
Posts: 39
Joined: Tue 31 Oct 2006, 16:42

#5 Post by caesirian »

GuestToo wrote: export JAVA_HOME=/root/jre1.5.0_09
export PATH=$PATH:$JAVA_HOME
hi, the 2nd line had to be
export PATH=$PATH:$JAVA_HOME/bin
to work

but thanks both of you, now limeware and other apps are working fine :D

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#6 Post by GuestToo »

yes, it must be $JAVA_HOME/bin, sorry

Post Reply