Kardac
Joined: Oct 31, 2003
|
Posted:
Apr 11, 2004 - 13:03 |
|
I have the latest java installed in my Suse dist, (9.0).
But when i try the java -jar Bbowl.jar command, the os cant find the program?
Ideas?
BTW, Im a newbie at Linux..... |
_________________ Best regards,
Kardac Stenfot
www.norroner.com |
|
Candlejack
Joined: Aug 02, 2003
|
  Posted:
Apr 11, 2004 - 13:50 |
|
You mean it can't find the java command? If so, make sure you either include the path to you jre in you path variable or to use the full path for the programm call. I recommend the first way Assuming your jre was installed to /usr/lib/java/jre<versionnumber> you should add the following line to your system wide bashconfiguration file (that should /etc/bashrc if suse handles it in a sane way ) or your user specific .bashrc resident in your homedirectory (note the "." as first character so it will be hidden unless you use ls -a to examine the directory):
export PATH=$PATH:/usr/lib/java/jre<versionnumber>/bin
After adding this line open a new terminal and all should work properly (you can also reuse your current shell by sourcing the modified config file using the command ". <config file>")
hth, Candlejack |
_________________ --
The Sanity Resort |
|
Kardac
Joined: Oct 31, 2003
|
  Posted:
Apr 11, 2004 - 22:23 |
|
Thanx Candlejack.
That did the trick |
_________________ Best regards,
Kardac Stenfot
www.norroner.com |
|