Installing Java 7 Snapshot on Ubuntu

On my Ubuntu I’m facing this JVM Bug which suddenly freezes the keyboard of IDEA. Now I’m trying Anils suggestion. Therefore I need to install a Java 7 snapshot:

  1. download self-extracting binary file of java 7 snapshot
  2. run chmod +x jdk-7-ea-bin-b48-linux-i586-19_feb_2009.bin to make it executable
  3. run ./jdk-7-ea-bin-b48-linux-i586-19_feb_2009.bin to extract the archive
  4. run sudo mv ./jdk1.7.0 /usr/lib/jvm to move it to the other JVMs
  5. run update-alternatives --config java to check how many JVMs you already installed
  6. run sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0/jre/bin/java 3
    I got 2 installations, so I need to specify a 3
  7. run sudo update-alternatives --config java to chance your java version.
  8. run java -version to validate everything is fine

To tell IDEA 8.1 to run with Java 7 you need to add in idea.vmoptions.

Keep your fingers crossed for me that this will fix that problem;)

16 Responses to Installing Java 7 Snapshot on Ubuntu

  1. Adam Reece says:

    Thanks, these instructions came in handy.

    I wanted JRE 1.7 on my portable Ubuntu as it has some good performance improvements. Useful for Minecraft 🙂

  2. Keegan Owsley says:

    When I do this and try to run minecraft, it errors with “Exception in thread “Minecraft main thread” java.lang.UnsatisfiedLinkError: /home/keegan/.minecraft/bin/natives/ cannot open shared object file: No such file or directory”

    but is in the jdk1.7/lib/i386 folder. Anyone know of any way to get java to recognize it?

  3. Keegan Owsley says:

    Well, I got around it by adding this to my launcher:


  4. Nick DeCarlo says:

    Thanks for the tip Keegan!

  5. Nitesh says:

    thanx for the post.. really helped me a lot..
    keep up the good work
    Nitesh Chauhan.

  6. Free Minecraft…

    I’m very happy you wrote all that info. It’s indeed a valuable piece of blog you got there….

  7. Danmar says:

    Thank you very much, this works exactly the same for JDK 6 self-extract installation.

  8. The people with errors, there is a much simpler way to fix it. Go to and download the latest version. Replace all the files in /.minecraft/bin, including the natives folder with the files included in there. That is a complete fix, and updating lwjgl has performance improvements of its own. 😀

  9. Joe says:

    Broken link so cant install. This is so stupid. Why do people expect me to use lunix if i cant even get sun java without doing all this command line stuff? none of the tuturials work

  10. Very soon this web page will be famous amid all blog viewers, due to it’s fastidious content

  11. Thank you a bunch for sharing this with all folks you really recognize what you’re talking about! Bookmarked. Please also seek advice from my site =). We can have a hyperlink exchange contract between us

  12. Good post however I was wanting to know if you could write a litte more on this subject?
    I’d be very grateful if you could elaborate a little bit more. Kudos!

  13. ville hack says:

    What i do not understood is in reality how you are not actually much more neatly-appreciated than you may be now.
    You are very intelligent. You understand thus considerably relating
    to this subject, produced me in my opinion consider it from a
    lot of varied angles. Its like men and women are not fascinated except it’s one thing to do with Girl gaga! Your individual stuffs outstanding. Always handle it up!

  14. Woah this web site is fantastic i favor looking through your content. Continue being on the great! You understand, lots of folks are wanting spherical with this info, you could possibly help them to greatly.

  15. pc game cd says:

    Pretty! This has been an extremely wonderful post.
    Many thanks for supplying this information.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: