. Please let us know if you know other way of changing java version. Otherwise, there is also the possibility that the path variables do not contain the java path. I care what other versions are installed on my linux box. If you really need Java for programs or games that you run, read our article about. So, I can simplify like below: whereis: Still return found even symlink broken or non-executable.
I am suspecting that it would be the folder for the installed version of java. A symbolic link can be created as follows. Be the first to post a comment. Note that the about installing the Java plugin for Mozilla can be a little confusing, and need to be read very carefully. In the list, on the left hand side, the key to the Your question , there lies a small Alphabet denoting whether the corresponding package is already installed on your system or not. My name is Surendra Kumar Anne. However, you may need it for some programs or games like.
I don't care what version I'm currently running. To learn more, see our. On your computer it will be different. Copyright © 2006-2017 Thomas Hedden This page is. When you are done, save the file. You leave a lot to be desired as far as details about your setup goes. Type your password at the prompt and press Enter.
Type the following at the prompt and press Enter. What I use now to get a specific alternatives java path is: alternatives --display java grep priority grep jdk-1. We will show you how to quickly and easily check if Java is installed and how to install it. If your system gives a lower number such as gcc-2. Click here to return to. You also appear to be asking to find out which version of java is in a specific folder? User Comments There are no user comments for this question.
Because you recently ran another command as root using sudo, you are not asked for your password again. How ever you installed it a Java installation needs the java executable to do any good in most cases, so you could use the locate or find commands to find the different ones. I have noticed with trying to keep Oracle Java installed over the openjdk that you have to make sure everything is linking correct and running the correct version of java. Finding out which binary is executed when you type only the name is done using which, and using readlink you can condense the process to a single line. Now, use a file management program such as Konqueror to explore the files in your home directory. All of them will return not found if the input file doesn't exist.
In this case, you should probably use the one with the highest version, unless you know a specific reason to use an older one. Mr Surendra Anne is from Vijayawada, Andhra Pradesh, India. In our example, we installed version 6. At present I work at Bank of America as Sr. When the update is done, choose which a package from the list to install java. File Attachments There are no attachment file s related to this question.
You can contact me at surendra linuxnix dot com. Java can be installed in different ways in linux. If you had to create one of the login files e. I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. To check which version, if any, of Java is installed, type the following at the prompt and press Enter. Historically it has been installed in one of the directories listed below. If the find program does not respond in a similar way, then the Java Runtine Environment is almost certainly not installed on your computer, and you will have to install it see below.
If you are comfortable with this, then this is a perfectly acceptable configuration. I just want to verify whether java jdk is installed or not but from what I've seen I am not too sure. The list shows you which packages in your system have Java available and the command for installing java is displayed. If this is not the case, or if you have a fairly old distribution, then you can. What's installed now is alternatives. This is what you can do Assume your system are x64 : sudo rpm -ivh jdk-8u91-linux-x64.
So use locate jdk or locate java to see if you have the java binary. The following discussion will explain both approaches. Now my problem is i don't know where that 1. I recommend you use type -a java to get the correct result. The version number may have dots or underscores.