Menu

Java dependencies

Matt Barry
2009-11-07
2013-04-24
  • Matt Barry

    Matt Barry - 2009-11-07

    I've noticed the 1.3.8 plugin will not enable owing to an execution environment constraint

    > The following problems were found:
    > Missing Constraint:
    > Bundle-RequiredExecutionEnvironment:
    > JavaSE-1.6

    and that one of the recent enhancements was to make the plugin work with Java 1.6.  Does that mean it will *only* work with 1.6 for some reason?  Is it possible to produce a Java 1.5 version? 

     
  • G.B.

    G.B. - 2009-11-08

    it means that your eclipse must run using a jre 1.6. Then your target code can be compliant / compiled with whatever version you want.

    Do you see run eclipse in 1.6 as a big constraint ?
    I need to check what api of 1.6 I'm using.

    you may also consider checking if 1.3.7 won't work with eclipse and JRE1.5

     
  • Matt Barry

    Matt Barry - 2009-11-09

    The 1.3.7 version plugins will install into a 3.5 workbench with Java 1.5, but the classes will not load.  All four views yield bad class version numbers as shown below.  Is there another platform dependency I've missed that precludes macosx/cocoa? 

    > eclipse.buildId=M20090917-0800
    > java.version=1.5.0_20
    > java.vendor=Apple Inc. BootLoader
    > constants: OS=macosx, ARCH=x86,
    > WS=cocoa, NL=en_US Framework
    > arguments:  -product
    > org.eclipse.epp.package.rcp.product
    > -product org.eclipse.epp.package.cpp.product
    > -keyring /user/.eclipse_keyring
    > -showlocation Command-line arguments:  -os macosx -ws cocoa -arch x86 -product org.eclipse.epp.package.rcp.product
    > -product org.eclipse.epp.package.cpp.product
    > -keyring /user/.eclipse_keyring
    > -showlocation
    >
    >
    > Error Mon Nov 09 10:12:20 CST 2009
    > Unable to create view ID
    > net.sourceforge.metrics.ui.MetricsView:
    > Plug-in net.sourceforge.metrics was
    > unable to load class
    > net.sourceforge.metrics.ui.MetricsView.
    >
    > java.lang.UnsupportedClassVersionError:
    > Bad version number in .class file at
    > java.lang.ClassLoader.defineClass1(Native
    > Method) at
    > java.lang.ClassLoader.defineClass(ClassLoader.java:675)
    > at
    > org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:183)
    > at
    > org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:576)
    > at
    > org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:546)
    > at
    > org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:477)
    > at
    > org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:465)
    > at
    > org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:445)
    > at
    > org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:211)
    > at
    > org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:381)
    > at
    > org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:457)
    > at
    > org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
    > at
    > org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
    > at
    > org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
    > at
    > java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    > at
    > org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)
    > at
    > org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
    > at
    > org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)
    > at
    > org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:160)
    > at
    > org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:874)
    > at
    > org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
    > at
    > org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
    > at
    > org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:267)
    > at
    > org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    > at
    > org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:263)
    > at
    > org.eclipse.ui.internal.registry.ViewDescriptor.createView(ViewDescriptor.java:63)
    > at
    > org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:324)
    > at
    > org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:226)
    > at
    > org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
    > at
    > org.eclipse.ui.internal.Perspective.showView(Perspective.java:2229)
    > at
    > org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1067)
    > at
    > org.eclipse.ui.internal.WorkbenchPage$20.run(WorkbenchPage.java:3816)
    > at
    > org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    > at
    > org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3813)
    > at
    > org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3789)
    > at
    > org.eclipse.ui.handlers.ShowViewHandler.openView(ShowViewHandler.java:165)
    > at
    > org.eclipse.ui.handlers.ShowViewHandler.openOther(ShowViewHandler.java:109)
    > at
    > org.eclipse.ui.handlers.ShowViewHandler.execute(ShowViewHandler.java:77)
    > at
    > org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:294)
    > at
    > org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
    > at
    > org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
    > at
    > org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
    > at
    > org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
    > at
    > org.eclipse.ui.internal.ShowViewMenu$3.run(ShowViewMenu.java:141)
    > at
    > org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
    > at
    > org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
    > at
    > org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
    > at
    > org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
    > at
    > org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    > at
    > org.eclipse.swt.widgets.Display.sendEvent(Display.java:3543)
    > at
    > org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1250)
    > at
    > org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1273)
    > at
    > org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
    > at
    > org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1079)
    > at
    > org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3441)
    > at
    > org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3100)
    > at
    > org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
    > at
    > org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
    > at
    > org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
    > at
    > org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
    > at
    > org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    > at
    > org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
    > at
    > org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    > at
    > org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
    > at
    > org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
    > 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:368)
    > 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:39)
    > at
    > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    > at
    > java.lang.reflect.Method.invoke(Method.java:592)
    > at
    > org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
    > at
    > org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
    > at
    > org.eclipse.equinox.launcher.Main.run(Main.java:1311)

     
  • G.B.

    G.B. - 2009-11-09

    This sound like I made 1.3.7 with jdk 1.6 …
    I'll work on checking if I can make you a jdk 1.5 compliant version.
    I'll keep you posted .

     
  • G.B.

    G.B. - 2009-11-10

    Just posted a 1.3.7 version compiled with JDK 1.5 … let me know if it worked for you.

     
  • Matt Barry

    Matt Barry - 2009-11-11

    Thank you.  The 1.3.7 zip download works fine with Java 1.5. 

    Are there plans for further development of this product?  I can think of a few features I'd like to see added, perhaps through the feature request or perhaps contributing them myself.  I want however to avoid colliding with someone else possibly working on related features. 

     
  • G.B.

    G.B. - 2009-11-12

    nice! I'm glad its working.

    Right now I plan to update the code and finish understanding all the aspect of it.
    If you have any ideas, request, of missing feature, or defect to fix, please add them to the feature request (or defect list). For contribution I'd like to first have some time to update/ clean more code . thanks

     

Log in to post a comment.