Oracle Java 7 no longer functioning
Hey guys,
I have Oracle's Java 7 installed on my 64-bit Lubuntu 12.04 system.
Yesterday, everything was working fine. I was using Java, because nothing else seems to work with minecraft.
So, today comes along and the usual option to run the .jar file "with Java 7" is gone. Cool.
So, I try
Code:
java /home/user/Minecraft/MinecraftSP.jar
which returns
Code:
The program 'java' can be found in the following packages:
* default-jre
* gcj-4.6-jre-headless
* openjdk-6-jre-headless
* gcj-4.5-jre-headless
* openjdk-7-jre-headless
Try: sudo apt-get install <selected package>
So clearly java 7 is gone, right?
Well, I used the oracle-java7-installer method mentioned here:
http://www.webupd8.org/2012/01/insta...buntu-via.html
So I go to reinstall that package. It's already installed. huh.
Upon further reading, I find that you can remove Java 7 by removing the installer, so I do this. I also remove anything related to Java using the method described here:
http://askubuntu.com/questions/84483...uninstall-java (answer #3)
Reinstall everything. Still does not work. Can't select to run .jar files in java, can't use "java" command. Even though it's apparently installed.
What should I do? I'm worried that something somewhere has messed up Java's ability to run, and I'm going to have to reinstall Lubuntu. :(
EDIT: So, I'm watching youtube currently. Which I thought required Java. Removing the installer is supposed to have removed the browser-plugin. And I don't have iced-tea. Atleast, I thought I had removed it.
What is going on? haha
Re: Oracle Java 7 no longer functioning
Is done at your own risk and I take no responsibility for any loss or damage (as usual). You could try to install the oracle-java6-installer or oracle-java8-installer from the webupd8team repository before reinstalling the OS.
Re: Oracle Java 7 no longer functioning
Quote:
Originally Posted by
Lyfang
Is done at your own risk and I take no responsibility for any loss or damage (as usual). You could try to install the oracle-java6-installer or oracle-java8-installer from the webupd8team repository before reinstalling the OS.
Oh so I can't sue him. How unfortunate :P
Yeah, I'll give it a try!
Re: Oracle Java 7 no longer functioning
Oracle Java 8 seems to have installed correctly. I uninstalled minecraft, just in case I messed something up there. So I'll have to post when I get it installed... it's an... err.... alternate install ;P
Re: Oracle Java 7 no longer functioning
Try this manual method (almost as easy as webupd8) for installing Oracle Java 7:
https://sites.google.com/site/easylinuxtipsproject/java
It "just works" all the time.... :-)
Re: Oracle Java 7 no longer functioning
Quote:
Originally Posted by
agxryt
Oracle Java 8 seems to have installed correctly. I uninstalled minecraft, just in case I messed something up there. So I'll have to post when I get it installed... it's an... err.... alternate install ;P
Seems to have worked perfectly. Not only that, but the usual fix associated with it doesn't need to be done.
Thanks!
Quote:
Originally Posted by
Pjotr123
I got it working this time. Java 8 seems to run minecraft better than java 7.
I'll probably do this when I reinstall my OS anyways. It'll help me learn :P
Re: Oracle Java 7 no longer functioning
Quote:
Originally Posted by
agxryt
Oh so I can't sue him. How unfortunate :P
Generally speaking many situations sometimes seem to be all messed up. The worst part would be to attempt to try to show a little kindness by helping, only latter to be accused of destroying everything.
Quote:
Originally Posted by
agxryt
Seems to have worked perfectly. Not only that, but the usual fix associated with it doesn't need to be done.
Thanks!
I got it working this time. Java 8 seems to run minecraft better than java 7.
I'll probably do this when I reinstall my OS anyways. It'll help me learn :P
I would try to follow these instruction if you ever need Java 7 working, the link that you posted: http://askubuntu.com/questions/84483...uninstall-java
Then open PCManFM, make sure that the /usr/lib/jvm folder is empty and go to /home/USERNAME, press Ctrl+h and make sure the Oracle Java directory is empty.
Uninstall the Java Plugin and reinstall the oracle-java7-installer
Code:
sudo rm /usr/lib/mozilla/plugins/libnpjp2.so
sudo apt-get purge oracle-java7-installer
sudo apt-get install oracle-java7-installer
Which downloads and installs jdk-7u10-linux-x64.tar.gz
You could also try to download Java for the RPM installer and convert the .rpm to a .deb file using Alien.
Re: Oracle Java 7 no longer functioning
Quote:
Originally Posted by
agxryt
I got it working this time. Java 8 seems to run minecraft better than java 7.
Great to hear about Oracle Java 8 working. But be considerate of these early access builds: "Oracle Java 8 should only be used for testing purposes and/or by developers. Since this is a preview release, you'll encounter bugs!" - http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html (release expected in summer 2013)
Re: Oracle Java 7 no longer functioning
I second that. Oracle Java 7u9 is the stable up to date version. Only that version can be trusted to work as predicted.
However, because of security issues (a constant concern with Java over the years) I advise to disable the Java browser plugin by default, and only enable it when needed, for as long as it's needed.
Re: Oracle Java 7 no longer functioning
oracle-java7-installer contains a script to download and install. How about a script to uninstall Oracle Java? @agxryt: If the problem keeps repeating with Java try clearing the Java cache.