simplelive / veloeclipse

Automatically exported from code.google.com/p/veloeclipse
Other
0 stars 1 forks source link

Can't open velocity file with veloeclipse - error #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Attempt to open velocity file (.vm) with veloeclipse
2.
3.

What is the expected output? What do you see instead?
Expected - File open in editor.  
Receive error:
Could not open the editor: The editor class could not be instantiated. 
This usually indicates a missing no-arg constructor or that the editor's 
class name was mistyped in plugin.xml.

Details at bottom of email

What version of the product are you using? On what operating system?
veloeclipse: 2.0.8
velocity: 1.3.1
windows xp - sp2

Please provide any additional information below.

java.lang.UnsupportedClassVersionError: 
com/googlecode/veloeclipse/editor/VelocityEditor (Unsupported major.minor 
version 49.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    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_LockCla
ssLoader(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(Unknown Source)
    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.createExecutab
leExtension(RegistryStrategyOSGI.java:160)
    at 
org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtens
ion(ExtensionRegistry.java:874)
    at 
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExt
ension(ConfigurationElement.java:243)
    at 
org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecuta
bleExtension(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.EditorDescriptor.createEditor
(EditorDescriptor.java:235)
    at org.eclipse.ui.internal.EditorManager.createPart
(EditorManager.java:845)
    at org.eclipse.ui.internal.EditorReference.createPartHelper
(EditorReference.java:606)
    at org.eclipse.ui.internal.EditorReference.createPart
(EditorReference.java:462)
    at org.eclipse.ui.internal.WorkbenchPartReference.getPart
(WorkbenchPartReference.java:595)
    at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
    at org.eclipse.ui.internal.presentations.PresentablePart.setVisible
(PresentablePart.java:180)
    at 
org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select
(PresentablePartFolder.java:270)
    at 
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select
(LeftToRightTabOrder.java:65)
    at 
org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPa
rt(TabbedStackPresentation.java:473)
    at org.eclipse.ui.internal.PartStack.refreshPresentationSelection
(PartStack.java:1256)
    at org.eclipse.ui.internal.PartStack.setSelection
(PartStack.java:1209)
    at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1608)
    at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
    at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
    at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
    at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
    at org.eclipse.ui.internal.EditorSashContainer.addEditor
(EditorSashContainer.java:63)
    at org.eclipse.ui.internal.EditorAreaHelper.addToLayout
(EditorAreaHelper.java:225)
    at org.eclipse.ui.internal.EditorAreaHelper.addEditor
(EditorAreaHelper.java:213)
    at org.eclipse.ui.internal.EditorManager.createEditorTab
(EditorManager.java:778)
    at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor
(EditorManager.java:677)
    at org.eclipse.ui.internal.EditorManager.openEditor
(EditorManager.java:638)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched
(WorkbenchPage.java:2854)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor
(WorkbenchPage.java:2762)
    at org.eclipse.ui.internal.WorkbenchPage.access$11
(WorkbenchPage.java:2754)
    at org.eclipse.ui.internal.WorkbenchPage$10.run
(WorkbenchPage.java:2705)
    at org.eclipse.swt.custom.BusyIndicator.showWhile
(BusyIndicator.java:70)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:2701)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:2685)
    at org.eclipse.ui.actions.OpenWithMenu.openEditor
(OpenWithMenu.java:344)
    at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent
(OpenWithMenu.java:192)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Display.runDeferredEvents
(Display.java:3880)
    at org.eclipse.swt.widgets.Display.readAndDispatch
(Display.java:3473)
    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(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    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)

Original issue reported on code.google.com by kristine...@gmail.com on 8 Oct 2009 at 7:34

GoogleCodeExporter commented 9 years ago
Veloeclipse seems to be compiled with JDK 1.6. You are most likely running your
eclipse ide with a Java version below 1.6. Therefore the
UnsupportedClassVersionError. Try running Eclipse with a JDK version 1.6. 

If you already have a JDK 1.6 installed, put these two(!) lines at the 
beginning of
your eclipse.ini:

-vm
C:/path/to/jdk-1.6.0_16/bin/javaw.exe

Original comment by frank.sc...@gmail.com on 1 Nov 2009 at 2:29

GoogleCodeExporter commented 9 years ago
Thanks . long looking for the solution 

Original comment by kunal.ki...@gmail.com on 29 Nov 2009 at 10:02