|Several issues after JRE-6 (OpenJDK) upgrade [message #911923]
||Wed, 12 September 2012 11:41
| Eusebius Balzac
Registered: September 2012
I'm on Ubuntu 12.04 LTS, using Eclipse Indigo, but it doesn't work anymore after Ubuntu made me update the following packages:
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:
An internal error occurred during: "Launching HelloWorld".
- I get an "Error log" tab in the console panel, with an error:
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:
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 12:04
| Russell Bateman
Registered: July 2009
Location: Provo, Utah, USA
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:
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:
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.
Powered by FUDForum
. Page generated in 0.02158 seconds