Howto install/use java(jre)?
Hi all!
I have been using Linux for a few days and I just tried to install Java Runtime Enviroment. Well, I downloaded the self-extracting .bin file and installed it to /usr/java, but I have no idea how to use it... What should I do if I wanted to run java programs like "java <program name>"? Is there a way to install programs so that I can use them like that? Should I install them to some special place or what? Thanks for your time, I hope someone has time to aswer this =) |
what type of file are you trying to open using JRE ..... a .jar file?
|
eras....are you asking how you can run HelloWorld and staff like that..cuz to be honest your question is not clear
|
Quote:
You'll need to add the java bin directory to your path. The best way to do this so that it's there for every user is to edit /etc/profile as root and find the line that says PATH=........etc........ At the end of the line (but inside any "" marks) add: Code:
:/usr/java/bin For that to take effect you'll either need to reboot or: Code:
source /etc/profile |
does your /usr/java file have a version of java in it
...just type this at the terminal: $ which java and post the output here.. |
Quote:
|
All times are GMT -5. The time now is 01:35 AM. |