Eclipse can't run Java after recent update on Ubuntu
Attila-Mihaly Balazs
dify.ltd at gmail.com
Thu Sep 13 06:23:34 UTC 2012
@Oliver: thank you, thank you so much! I was having a similar problem
and that line solved it for me. Details:
- Tried Eclipse 3.7 and 4.2
- Tried OpenJDK 1.6 and 1.7 (from the Ubuntu repositories). Version strings are:
java version "1.7.0_07"
OpenJDK Runtime Environment (IcedTea7 2.3.2) (7u7-2.3.2-1ubuntu0.12.04.1)
OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.4) (6b24-1.11.4-1ubuntu0.12.04.1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
- My problem was that I couldn't launch java programs and when I tried
to create a new debug configuration I got the error:
Plug-in org.eclipse.jdt.debug.ui was unable to load class
org.eclipse.jdt.internal.debug.ui.launcher.LocalJavaApplicationTabGroup.
An error occurred while automatically activating bundle
org.eclipse.jdt.debug.ui (146).
In the eclipse debug logs I saw the following kind of exceptions (all
boiling down to exceptions in com.ibm.icu.impl.JavaTimeZone):
org.eclipse.core.runtime.CoreException: Plug-in
"org.eclipse.equinox.p2.ui.sdk.scheduler" was unable to instantiate
class "org.eclipse.equinox.internal.p2.ui.sdk.scheduler.AutomaticUpdateScheduler".
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:188)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:273)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:52)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:269)
at org.eclipse.ui.internal.EarlyStartupRunnable.getExecutableExtension(EarlyStartupRunnable.java:117)
at org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.java:66)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.Workbench$52.run(Workbench.java:2357)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.ExceptionInInitializerError
at com.ibm.icu.util.TimeZone.getDefault(TimeZone.java:754)
at com.ibm.icu.util.Calendar.getInstanceInternal(Calendar.java:1626)
at com.ibm.icu.util.Calendar.getInstance(Calendar.java:1590)
at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.AutomaticUpdateScheduler.<clinit>(AutomaticUpdateScheduler.java:50)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184)
... 11 more
Caused by: java.lang.NullPointerException
at sun.util.calendar.ZoneInfoFile.getZoneIDs(ZoneInfoFile.java:790)
at sun.util.calendar.ZoneInfo.getAvailableIDs(ZoneInfo.java:576)
at java.util.TimeZone.getAvailableIDs(TimeZone.java:588)
at com.ibm.icu.impl.JavaTimeZone.<clinit>(JavaTimeZone.java:37)
... 22 more
As for the exact source the OpenJDK binaries were built from: I
suspect that they are the following (in the downloads section):
- https://launchpad.net/ubuntu/+source/openjdk-7/7u7-2.3.2-1ubuntu0.12.04.1
- https://launchpad.net/ubuntu/+source/openjdk-6/6b24-1.11.4-1ubuntu0.12.04.1
Regards,
Attila
On Wed, Sep 12, 2012 at 8:37 PM, Oliver Ruebenacker <curoli at gmail.com> wrote:
> Hello,
>
> All I know is:
>
> $ java -version
> java version "1.7.0_07"
> OpenJDK Runtime Environment (IcedTea7 2.3.2) (7u7-2.3.2-1ubuntu0.12.04.1)
> OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)
>
> Take care
> Oliver
>
> On Wed, Sep 12, 2012 at 1:12 PM, Donald Smith <donald.smith at oracle.com> wrote:
>> Hi Oliver,
>>
>> When you say you're running "OpenJDK 6 and 7", can you clarify who's
>> distribution, obviously you're getting it from Ubuntu, but is it their
>> build, or are they shipping someone else?. The OpenJDK project is the place
>> to collaborate on the open-source implementation of Java SE, but there are
>> many different ways it's packaged and distributed.
>>
>> Some links that might be helpful:
>> http://wiki.eclipse.org/IRC_FAQ#I_just_installed_Eclipse_on_Linux.2C_but_it_does_not_start._What_is_the_problem.3F
>>
>> http://www.eclipse.org/eclipse/development/readme_eclipse_4.2.html#TargetOperatingEnvironments
>>
>> - Don
>>
>>
>> On 12/09/2012 12:06 PM, Oliver Ruebenacker wrote:
>>>
>>> Hello,
>>>
>>> I'm running Eclipse 3.7.2 on Ubuntu 11.10. Yesterday, I applied some
>>> updates regarding OpenJDK that were offered automatically. I have
>>> installed both OpenJDK 6 and 7. I
>>> still can run Java applications outside of Eclipse, but not in Eclipse
>>> any more. Further, if in Eclipse, I open Preferences and select Java>
>>> "Installed JREs", the view is empty except of the following message:
>>>
>>> "An error has occurred when creating this preference page."
>>>
>>> A separate dialogue opens which says:
>>>
>>> "Unable to create the selected preference page.
>>> An error occurred while automatically activating bundle
>>> org.eclipse.jdt.debug.ui (162)."
>>>
>>> The dialogue has a link to an error log, which says:
>>>
>>> java.lang.NoClassDefFoundError: Could not initialize class
>>> com.ibm.icu.text.SimpleDateFormat
>>> at
>>> org.eclipse.ui.internal.views.log.LogSession.setDate(LogSession.java:43)
>>> at
>>> org.eclipse.ui.internal.views.log.LogSession.processLogLine(LogSession.java:67)
>>> at
>>> org.eclipse.ui.internal.views.log.LogReader.parseLogFile(LogReader.java:94)
>>> at
>>> org.eclipse.ui.internal.views.log.LogView.readLogFile(LogView.java:811)
>>> at
>>> org.eclipse.ui.internal.views.log.LogView.createPartControl(LogView.java:171)
>>> at
>>> org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:375)
>>> at
>>> org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:229)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
>>> at
>>> org.eclipse.ui.internal.Perspective.showView(Perspective.java:2245)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1145)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage$20.run(WorkbenchPage.java:3921)
>>> at
>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3918)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3894)
>>> at
>>> org.eclipse.ui.internal.statushandlers.InternalDialog$7.widgetSelected(InternalDialog.java:970)
>>> at
>>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
>>> at
>>> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)
>>> at
>>> org.eclipse.swt.widgets.Widget.sendSelectionEvent(Widget.java:1396)
>>> at
>>> org.eclipse.swt.widgets.Link.gtk_button_release_event(Link.java:339)
>>> at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1732)
>>> at org.eclipse.swt.widgets.Control.windowProc(Control.java:5016)
>>> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4408)
>>> at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native
>>> Method)
>>> at
>>> org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:8422)
>>> at org.eclipse.swt.widgets.Display.eventProc(Display.java:1245)
>>> at
>>> org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native
>>> Method)
>>> at
>>> org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2276)
>>> at
>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3207)
>>> at
>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
>>> at
>>> org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
>>> at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
>>> at
>>> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>>> at
>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
>>> at
>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>>> at
>>> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
>>> at
>>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:601)
>>> at
>>> org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
>>> at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
>>>
>>> Any idea what is going on?
>>>
>>> Thanks!
>>>
>>> Take care
>>> Oliver
>>>
>>> --
>>> Scientific Developer at PanGenX (http://www.pangenx.com)
>>>
>>> "Stagnation and the search for truth are always opposites." - Nadezhda
>>> Tolokonnikova
>
>
>
> --
> Scientific Developer at PanGenX (http://www.pangenx.com)
>
> "Stagnation and the search for truth are always opposites." - Nadezhda
> Tolokonnikova
More information about the discuss
mailing list