[Howto][Hacks] Install the Java Runtime enviroment on Opera
Posted: Tue Jan 15, 2013 4:26 am
Do you know how you will want a Java Runtime environment to run some of the latest games on your linux mint box? Or you want to play online or watch videos using the Java runtime environment for your browser using Opera perhaps? Or getting the Java to work for your android SDK? Sometimes when you click on the shell script for your game you will get a nasty error like this:
./jre < whatever version of java you will want >/bin/java: not found.
~~~~~~~~~~~~~~~~~~~~~
I have found a solution just for you. First of all lets get the Java runtime enviroment downloaded for your desktop or computer at Java's site at this link here. http://www.java.com/en/download/manual.jsp?locale=en
See the linux downloads you can choose? Select the correct download for your workstation or laptop. I choose the x64 version since I know my workstation is a 64 bit machine.
After you get the correct version downloaded onto your desktop or folder of your choice, lets open up a terminal (CLI) command line interface.
Then grant your terminal "special" permissions by inputting the < sudo > command. If you get a permission denied after inputting this code below, try the < su > command or superuser command. You should try sudo first though, as superuser you can bork out your linux box quickly if you do not know what you are doing. YOU have been warned.
input password.
Or, if a permissions denied running ANY of the commands below, lets do a input password.
~~~~~~~~~~~~~~~~~`
First lets make a folder for our java runtime environment to rest in. Online its suggested to rest that program in the /usr/bin/java for this purpose. So lets make a directory in our terminal for this purpose. The mkdir command in your terminal does this for you.
Next lets "mount" this directory inside of our terminal. To do this you will use the cd command which stands for change directory along with your PATH variable, which is your /usr/bin/java. That is your PATH of your files we are going to move and extract our java runtime enviroment which downloaded onto your desktop as a < .tar.gz. > Select the tar.gz download for your java runtime environment. Remember, exact spelling, spelling, lower and upper case letter keys inside of that terminal are important in typing commands into your terminal if you want to succeed.
Do you see how you are getting colored lines in your terminal for that code above? Cool huh?
Next we will want to "extract" this java runtime environment into the /usr/bin/java folder by inputting the following commands.
The command zxvf are what are called "switches" in linux, check over what this means on Google search if you need to. The command "switches" tells your computer to move and extract that uncompressed package to the correct folder all at the same time.
Here is a tip if you do not like to type out your whole package name inside of the < brackets java version > above. Just input the tar zxvf into your terminal and drag and drop that java runtime environment that is still NOT extracted yet into your terminal. You will see the PATH variable pop up inside of it!
~~~~~~~~~~~~~~~~~
After you have ran that code you will see lines of code strolling inside of your terminal inside of the folder you just made. To check and make sure your plug in for the Java runtime enviroment is working correctly, check it at this link here. http://www.java.com/en/download/testjava.jsp
~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~
NOTE for Opera browser users. If you get an error still not running the java plug in correctly try these solutions.
You will need to create what is called a "symbolic" link to your < libnpjp2.so > that was downloaded into your directory for your java runtime environment.
To find your directory path type in this command in your terminal.
Now that you got the path directory for your libnpjp2.so lets create a symbolic link to it from the file you downloaded the Java runtime environment to the plugin folder where Opera rests on your desktop. On mine its located in the /usr/lib/opera/plugin directory. Yours could be different though, so use the directory that is spit out or "outputted" from the code above.
Lets do a:
Mine went like this:
Use whatever your path variable is inside the ( ' ) quotation marks above for you for your own path variable for Java runtime that was '"outputted" by the code < find / -name libnpjp2.so 2>/dev/null > .
Restart Opera and go into the menu options now. Go to page >> developer tools >> plugins and see if "java plug in' is listed. If not refresh.
Also check the settings for your path variable in the menu options for Opera by going into settings >> preferences >> advanced tab >> content. Make sure enable plug ins is checkedmarked in there. Hit the "plug in options" button in there and also the "find new" button. It should list your plugin in that setting also.
Do not forget to go back and refresh the page >> developer tools >> plugins page afterwards yet again to get it up and running.
If everything went well check here and see if you NOW got java plugin enabled correctly for Opera Linux. http://www.java.com/en/download/testjava.jsp
~~~~~~~~~~~~~~~~~~~~~~~~~~~
I hope this guide helps those new to linux and learning how to operate linux.
./jre < whatever version of java you will want >/bin/java: not found.
~~~~~~~~~~~~~~~~~~~~~
I have found a solution just for you. First of all lets get the Java runtime enviroment downloaded for your desktop or computer at Java's site at this link here. http://www.java.com/en/download/manual.jsp?locale=en
See the linux downloads you can choose? Select the correct download for your workstation or laptop. I choose the x64 version since I know my workstation is a 64 bit machine.
After you get the correct version downloaded onto your desktop or folder of your choice, lets open up a terminal (CLI) command line interface.
Then grant your terminal "special" permissions by inputting the < sudo > command. If you get a permission denied after inputting this code below, try the < su > command or superuser command. You should try sudo first though, as superuser you can bork out your linux box quickly if you do not know what you are doing. YOU have been warned.
Code: Select all
sudo
Or, if a permissions denied running ANY of the commands below, lets do a
Code: Select all
su
~~~~~~~~~~~~~~~~~`
First lets make a folder for our java runtime environment to rest in. Online its suggested to rest that program in the /usr/bin/java for this purpose. So lets make a directory in our terminal for this purpose. The mkdir command in your terminal does this for you.
Code: Select all
mkdir /usr/bin/java
Code: Select all
cd /usr/bin/java
Next we will want to "extract" this java runtime environment into the /usr/bin/java folder by inputting the following commands.
Code: Select all
tar zxvf <whatever your java version is> tar.gz
Here is a tip if you do not like to type out your whole package name inside of the < brackets java version > above. Just input the tar zxvf into your terminal and drag and drop that java runtime environment that is still NOT extracted yet into your terminal. You will see the PATH variable pop up inside of it!
~~~~~~~~~~~~~~~~~
After you have ran that code you will see lines of code strolling inside of your terminal inside of the folder you just made. To check and make sure your plug in for the Java runtime enviroment is working correctly, check it at this link here. http://www.java.com/en/download/testjava.jsp
~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~
NOTE for Opera browser users. If you get an error still not running the java plug in correctly try these solutions.
You will need to create what is called a "symbolic" link to your < libnpjp2.so > that was downloaded into your directory for your java runtime environment.
To find your directory path type in this command in your terminal.
Code: Select all
find / -name libnpjp2.so 2>/dev/null
Lets do a:
Code: Select all
ln -s <whatever directory libnpjp2.so is located at >
Code: Select all
ln -s '/usr/bin/java/jre1.7.0_11/lib/amd64/libnpjp2.so'
Restart Opera and go into the menu options now. Go to page >> developer tools >> plugins and see if "java plug in' is listed. If not refresh.
Also check the settings for your path variable in the menu options for Opera by going into settings >> preferences >> advanced tab >> content. Make sure enable plug ins is checkedmarked in there. Hit the "plug in options" button in there and also the "find new" button. It should list your plugin in that setting also.
Do not forget to go back and refresh the page >> developer tools >> plugins page afterwards yet again to get it up and running.
If everything went well check here and see if you NOW got java plugin enabled correctly for Opera Linux. http://www.java.com/en/download/testjava.jsp
~~~~~~~~~~~~~~~~~~~~~~~~~~~
I hope this guide helps those new to linux and learning how to operate linux.