jetma / velocity-edit

Automatically exported from code.google.com/p/velocity-edit
GNU General Public License v2.0
0 stars 0 forks source link

1.6.0 unable to execute using Java SE build 1.6.0_35-b10-428-11M3811 #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add plugin to Eclipse Juno
2. Attempt to use it to edit a file

What is the expected output? What do you see instead?
Expected would be editor available to view/edit code.
Instead there is a strack trace:
org.eclipse.core.runtime.CoreException: Plug-in com.hudson.velocityweb was 
unable to load class 
com.hudson.velocityweb.editors.velocity.VelocityMultiPageEditor.
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.j<snip/>
Caused by: java.lang.UnsupportedClassVersionError: 
com/hudson/velocityweb/editors/velocity/VelocityMultiPageEditor : Unsupported 
major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
<snip/>
    ... 108 more

What version of the product are you using? On what operating system?
Using 1.6.0 with Eclipse Juno Build id: 20120614-1722 on OS X 10.8.2 and Java 
SE build 1.6.0_35-b10-428-11M3811

Please provide any additional information below.
It looks like you may have compiled the code on a newer release of Java.  I'm 
stuck back on 1.6.

Any chance of loading a jar built with target 1.6? 

Original issue reported on code.google.com by scott.e...@policypoint.com on 28 Sep 2012 at 7:05

GoogleCodeExporter commented 9 years ago
I'm so sorry. I mistakenly compiled it with JDK1.7. I've upload version 1.6.0.1 
which supports JRE 1.6

Original comment by sefler...@gmail.com on 28 Sep 2012 at 7:50

GoogleCodeExporter commented 9 years ago
That seems better.  Thanks for the update and the quick response.

Original comment by scott.e...@policypoint.com on 28 Sep 2012 at 7:56

GoogleCodeExporter commented 9 years ago
you're welcome :)

Original comment by sefler...@gmail.com on 28 Sep 2012 at 1:02

GoogleCodeExporter commented 9 years ago
Exactly same problem using 1.6.0.1 with jdk 1.7

Original comment by aluisio...@gmail.com on 28 Jan 2013 at 5:16