Results 1 to 5 of 5

Thread: OpenJDK vs Sun JRE

  1. #1
    Join Date
    Jun 2006
    Location
    UK
    Beans
    389
    Distro
    Ubuntu

    OpenJDK vs Sun JRE

    I am using Ubuntu 10.10 and currently have OpenJDK java 6 installed. I am trying to run a program called BioLayout Express3D which I am using for my genetics honours project however each time I launch it it loads but immediatelly crashes with the error

    Code:
    java: program/ir_to_mesa.cpp:2187: prog_src_register mesa_src_reg_from_ir_src_reg(ir_to_mesa_src_reg): Assertion `reg.index < (1 << 10) - 1' failed.
    Aborted
    I was wondering if I was to use the Sun JRE that is available in the partner repository whether it may work better. What are the differences between the two? Should I uninstall the OpenJDK version first? At the moment (for OpenJDK) I use the java command (well
    Code:
    java -Xss2048k -Xms256m -Xmx920m -Xmn32m -XX:-UseAdaptiveSizePolicy -Dsun.java2d.opengl=false -jar BioLayoutExpress3D.jar
    to be precise). Would I use something other than the command java to launch using Sun JRE? Thanks.

  2. #2
    Join Date
    Apr 2006
    Beans
    800
    Distro
    Lubuntu 12.04 Precise Pangolin

    Re: OpenJDK vs Sun JRE

    Okay you got a few questions here. Just gotta break them up to answer them.

    Question 1:
    Why is your Java application (Biolayout Express) crashing?

    Answer:
    The error message indicates something related to mesa. Mesa is an open-source implementation of OpenGL for 3D graphics. And looking up the system requirements for the application, they mention OpenGL drivers. And even though Mesa is great in many ways you might have to install the proprietary drivers for your graphic card to avoid this error. This page describes how to do this in Ubuntu Lucid: http://www.howtogeek.com/howto/17495...-ubuntu-10.04/
    But if you still use Ubuntu Hardy you'll do best to google after something like "hardy proprietary graphics" plus the brand of your graphic card (nvidia, ati, intel).

    Question 2:
    What's the difference between Sun Java JRE and OpenJDK JRE?

    Answer:
    OpenJDK is the open-source implementation of Java. It's in heavy development and can be seen as the bleeding edge of Java. For many reasons most developers still target their applications for the Sun Java platform (or Oracle Java since they bought Sun). Therefore you might have better luck with Sun Java. But still you'll have to address question 1 first.

    Question 3:
    Do I need to uninstall OpenJDK before installing Sun Java?

    Answert:
    No, you can have both installed at the same time. You can switch between them using the update-java-alternatives. Open a terminal and enter this command to find out how it's done (press 'q' to exit man):
    Code:
    man update-java-alternatives
    Question 4:
    Would you use something other than the command java to launch using Sun JRE?

    Answer:
    No. When switching java alternatives the java command is automatically switched also.

  3. #3
    Join Date
    Dec 2006
    Beans
    124
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: OpenJDK vs Sun JRE

    How do I use update-java-alternatives to get Sun Java? Please clarify
    OpenDungeons a open source game in the style of Dungeon Keeper

  4. #4
    Join Date
    Oct 2010
    Beans
    4

    Re: OpenJDK vs Sun JRE

    Quote Originally Posted by svenskmand View Post
    How do I use update-java-alternatives to get Sun Java? Please clarify
    Use in terminal:

    sudo update-alternatives --config java

    and follow prompts

  5. #5
    Join Date
    Dec 2006
    Beans
    124
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: OpenJDK vs Sun JRE

    Thank you very much
    OpenDungeons a open source game in the style of Dungeon Keeper

Tags for this Thread

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
  •