Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Several issues after JRE-6 (OpenJDK) upgrade
Several issues after JRE-6 (OpenJDK) upgrade [message #911923] Wed, 12 September 2012 15:41 Go to next message
Eusebius Balzac is currently offline Eusebius BalzacFriend
Messages: 3
Registered: September 2012
Junior Member
Hi all.

I'm on Ubuntu 12.04 LTS, using Eclipse Indigo, but it doesn't work anymore after Ubuntu made me update the following packages:
Quote:

Preparing to replace icedtea-6-jre-cacao 6b24-1.11.3-1ubuntu0.12.04.1 (using .../icedtea-6-jre-cacao_6b24-1.11.4-1ubuntu0.12.04.1_amd64.deb) ...
Unpacking replacement icedtea-6-jre-cacao ...
Preparing to replace openjdk-6-jre-lib 6b24-1.11.3-1ubuntu0.12.04.1 (using .../openjdk-6-jre-lib_6b24-1.11.4-1ubuntu0.12.04.1_all.deb) ...
Unpacking replacement openjdk-6-jre-lib ...
Preparing to replace icedtea-6-jre-jamvm 6b24-1.11.3-1ubuntu0.12.04.1 (using .../icedtea-6-jre-jamvm_6b24-1.11.4-1ubuntu0.12.04.1_amd64.deb) ...
Unpacking replacement icedtea-6-jre-jamvm ...
Preparing to replace openjdk-6-jre-headless 6b24-1.11.3-1ubuntu0.12.04.1 (using .../openjdk-6-jre-headless_6b24-1.11.4-1ubuntu0.12.04.1_amd64.deb) ...
Unpacking replacement openjdk-6-jre-headless ...
Preparing to replace openjdk-6-jre 6b24-1.11.3-1ubuntu0.12.04.1 (using .../openjdk-6-jre_6b24-1.11.4-1ubuntu0.12.04.1_amd64.deb) ...
Unpacking replacement openjdk-6-jre ...


After that (but I cannot swear it is the root cause), I have the following issues in Eclipse:

  • When trying to launch the simplest HelloWorld program (which behaves fine with manual javac/java), I get either nothing or:
    Quote:

    An internal error occurred during: "Launching HelloWorld".
    org/eclipse/jdt/debug/core/JDIDebugModel

  • I get an "Error log" tab in the console panel, with an error:
    Quote:

    Could not create the view: An unexpected exception was thrown.

    (Follows a consequent NullPointerException stacktrace between sun.util.calendar.ZoneInfoFile.getZoneIDs(ZoneInfoFile.java:785) and org.eclipse.equinox.launcher.Main.main(Main.java:1386))
  • When trying to access the Installed JREs part of the preferences, I get a popup saying:
    Quote:

    Unable to create the selected preference page.
    An error occurred while automatically activating bundle org.eclipse.jdt.debug.ui (162).

    And the preference tab says "An error has occurred when creating this preference page."


Until today I had a manually installed Eclipse bundle from the official website. I've tried to replace it by the repository version and I get the same errors.

Any help or suggestion would be appreciated... Thanks in advance.
Re: Several issues after JRE-6 (OpenJDK) upgrade [message #911938 is a reply to message #911923] Wed, 12 September 2012 16:04 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 9/12/2012 9:41 AM, Eusebius Balzac wrote:
> Hi all.
>
> I'm on Ubuntu 12.04 LTS, using Eclipse Indigo, but it doesn't work
> anymore after Ubuntu made me update the following packages:
> [snip]

This is why I always run Eclipse and do Java development off a private
JDK locally. Unless I'm mistaken, openjdk isn't a proper Sun JDK. Never
get any first-line development tool like Eclipse, Java or Tomcat out of
what Ubuntu Software Center gives you, get it from the source. Keep your
development JDK separate from what's going on Java-wise on your host OS.

(I'm probably a little more radical about this than others.)

So, you will want to download a proper JDK from java.sun.com, wave your
mouse over the Downloads tab, choose Popular Downloads, Java for
Developers, and download Java SE 7u7 JDK or Java SE 6u35 JDK. Make sure
the bittedness of the download corresponds to your Eclipse package.

Make the .bin download executable and run it. At some point, it will
launch a browser for registration. You don't have to do this; just
dismiss the page and go back to real work.

Modify eclipse.ini to point to the JRE inside (see
http://wiki.eclipse.org/Eclipse.ini). Mine says:

-vm
/home/russ/dev/jdk1.6.0_35/bin/java

If you're doing Java development, as I assume, you'll want to add this
JDK in place of whatever has been there. Go to Window -> Preferences ->
Java -> Installed JREs, click Add and browse to where you put your new
JDK. Check the box afterward.

If you're not doing Java development, you only need a JRE. Having the
whole JDK won't hurt you, but it's really there to support Java
development (beside run Eclipse).

Hope this helps.
Re: Several issues after JRE-6 (OpenJDK) upgrade [message #911967 is a reply to message #911938] Wed, 12 September 2012 17:10 Go to previous messageGo to next message
Eusebius Balzac is currently offline Eusebius BalzacFriend
Messages: 3
Registered: September 2012
Junior Member
Hi.

Well, as much as I hate the Oracle vs OpenJDK troll, the Oracle JRE does work fine here, once you find out at first it doesn't work at all (I wanted to include a link to the solution here, but I cannot link to outside websites with fewer than 25 messages on my account... too bad for the next ones).

Fortunately I have been able to keep the JRE and JDK of my choice for my developped applications, compiled and launched from Eclipse. Eclipse was apparently the only one to have special needs (among my apps).

So yes, in short, it helped, thanks.

I would have loved to understand what exactly is wrong (SWT libs?) but I'm just not able to figure it out myself.
Re: Several issues after JRE-6 (OpenJDK) upgrade [message #911969 is a reply to message #911967] Wed, 12 September 2012 17:17 Go to previous messageGo to next message
Eusebius Balzac is currently offline Eusebius BalzacFriend
Messages: 3
Registered: September 2012
Junior Member
Great news: someone found the root cause of the issue, which is JavaTimeZone (a new variant of a known bug local to Debian/Ubuntu, apparently).
It can be solved with Quote:

sudo apt-get --reinstall install tzdata-java


After that I have been able to go back to OpenJDK.
Re: Several issues after JRE-6 (OpenJDK) upgrade [message #913189 is a reply to message #911969] Sat, 15 September 2012 00:04 Go to previous messageGo to next message
rodrigo sardinas is currently offline rodrigo sardinasFriend
Messages: 1
Registered: September 2012
Junior Member
Thanks so much for this. I was working on an assignment for class and this update installed and killed eclipse. I've been searching for the past 3 hours trying to figure out how to fix it.
icon14.gif  Re: Several issues after JRE-6 (OpenJDK) upgrade [message #917324 is a reply to message #911969] Thu, 20 September 2012 01:54 Go to previous messageGo to next message
Jesus Duarte is currently offline Jesus DuarteFriend
Messages: 1
Registered: September 2012
Junior Member
Thank you very much. It works fine for me
Re: Several issues after JRE-6 (OpenJDK) upgrade [message #917486 is a reply to message #917324] Thu, 20 September 2012 06:06 Go to previous message
Mk Guti is currently offline Mk GutiFriend
Messages: 1
Registered: September 2012
Junior Member
well... Im learning, thank you so much!!
Previous Topic:jetty/Howto/Spnego checksum failed!
Next Topic:Equinox exceptions, eclipse doesn't run java applications
Goto Forum:
  


Current Time: Tue Apr 16 23:05:45 GMT 2024

Powered by FUDForum. Page generated in 3.96575 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top