Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Oracle Java 7 no longer functioning

  1. #1
    Join Date
    Dec 2012
    Beans
    Hidden!

    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
    Last edited by agxryt; December 13th, 2012 at 05:02 PM.

  2. #2
    Join Date
    May 2012
    Beans
    291
    Distro
    Ubuntu Development Release

    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.

  3. #3
    Join Date
    Dec 2012
    Beans
    Hidden!

    Re: Oracle Java 7 no longer functioning

    Quote Originally Posted by Lyfang View Post
    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

    Yeah, I'll give it a try!

  4. #4
    Join Date
    Dec 2012
    Beans
    Hidden!

    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

  5. #5
    Join Date
    Jul 2006
    Location
    Castrum, Germania Secunda
    Beans
    1,071

    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....

  6. #6
    Join Date
    Dec 2012
    Beans
    Hidden!

    Re: Oracle Java 7 no longer functioning

    Quote Originally Posted by agxryt View Post
    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 View Post
    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....

    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

  7. #7
    Join Date
    May 2012
    Beans
    291
    Distro
    Ubuntu Development Release

    Re: Oracle Java 7 no longer functioning

    Quote Originally Posted by agxryt View Post
    Oh so I can't sue him. How unfortunate
    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 View Post
    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
    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.

  8. #8
    Join Date
    May 2012
    Beans
    291
    Distro
    Ubuntu Development Release

    Re: Oracle Java 7 no longer functioning

    Quote Originally Posted by agxryt View Post
    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)

  9. #9
    Join Date
    Jul 2006
    Location
    Castrum, Germania Secunda
    Beans
    1,071

    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.

  10. #10
    Join Date
    May 2012
    Beans
    291
    Distro
    Ubuntu Development Release

    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.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •