ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
if your referring to the actual JRE or JDK from Sun, read the instructions they give you on the page where you download it--they are usually very good. i imagine its because 'java' isnt in your $PATH. search here for topics like that, or, again, read and follow the complete directions.
I'm newbie about java on linux OS. I just used linux for about 2 week, so I hope you would like to guide me how to install it, please!.
Really I'm very confused how to install it. I have tried all the instruction guide, but until now I cann't do it still.
I installed java on /opt folder, when I check ls -l /usr/bin/java
it shown that lrwxrwxrwx 1 root root 20 2008-03-17 20:07 /usr/bin/java -> /opt/jdk1.6.0_05/bin. But when I check java -version, it shown
java -version
bash: java: command not found
According to the installation guide, if installation is successfull it should show the java -version that I used. But it is not. I hope any one can help me, please! And show me by good reffernce. Thanks
Put that in your .profile or .bash_profile (hidden file in your home directory). Replace the paths with the proper ones. My jdk/jre are in /usr/java, yours may be elsewhere. Log out and it should work. But why didn't you install the jdk/jre through Yast?
Put that in your .profile or .bash_profile (hidden file in your home directory). Replace the paths with the proper ones. My jdk/jre are in /usr/java, yours may be elsewhere. Log out and it should work. But why didn't you install the jdk/jre through Yast?
Thanks, once again for your appreciation. I've found now.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.