| Java-Version of WAR product [message #929099] |
Mon, 01 October 2012 04:10  |
S. Schulz Messages: 40 Registered: September 2011 |
Member |
|
|
Hi everyone!
I've got a problem concerning the creation of a WAR. I created it using a warproduct-file, but when I deploy it, I get the following message:
java.lang.Error: Unresolved compilation problem:
'<>' operator is not allowed for source level below 1.7
I took a look at the class-file with the error, and instead of compiled code it just contains the stack trace of above exception. Then I checked the plug-in in question: Both the build path and the manifest state it's a Java 7 project.
So my question is: Why would the WAR product export wizard assume the project to be anything other than a Java 7 project? How do I change it? And is there a way to tell the export wizard to just show an error message and stop exporting when a error like this happens, instead of ignoring it?
Thanks in advance,
S. Schulz
|
|
|
|
|
|
| Re: Java-Version of WAR product [message #933664 is a reply to message #933643] |
Fri, 05 October 2012 04:14   |
S. Schulz Messages: 40 Registered: September 2011 |
Member |
|
|
> Does this entry also show "JavaSE-1.7"?
Yes, it does.
> When you export your project from the IDE, does this use the correct compiler level?
No, it doesn't either.
> I'm not even sure if PDE/build supports Java 1.7
You're kidding, right? How could Eclipse itself not support the entire build process for its very own framework?
(And I read the link, but don't know what you think is relevant to the problem.)
|
|
|
|
| Re: Java-Version of WAR product [message #936576 is a reply to message #934125] |
Mon, 08 October 2012 01:51   |
S. Schulz Messages: 40 Registered: September 2011 |
Member |
|
|
> I think you are probably missing the OSGi Execution Environment.
No, as I said above the manifest contains the right Java version. It's funny, even the MANIFEST.MF inside the plug-ins inside the WAR still says "JavaSE-1.7", but the classes using actual Java 7 code are not compiled correctly.
|
|
|
|
Powered by
FUDForum. Page generated in 0.01887 seconds