Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » downgrade from JRE7 to JRE6
downgrade from JRE7 to JRE6 [message #1412605] Tue, 26 August 2014 15:12 Go to next message
Julia Kurde is currently offline Julia KurdeFriend
Messages: 79
Registered: November 2011
Location: Berlin, Germany
Member
Hi,

I'm facing the following Problem (Eclipse Luna, RAP 2.3): My RAP deployed to Tomcat 6 was running fine with Java 7.
Now, I have to deploy it on a machine that only has Java 6 installed.
So I set in the Preferences:
Java > Compiler: JRE6
Java > Installed JREs: activate JRE6
and in all Plugins I set the Execution Environment to JRE6.
Finally, in the Run Configurations I selected JRE6 for the Execution Environment.

Running the Application in Eclipse like this does work fine. But deploying it to tomcat6 and trying to start it generates the error shown below, basically telling that the application was compiled with Java 7 (Version 51).

I even removed JRE7 from the installed JREs in the Eclipse Preferences to make sure Eclipse does not know about Java 7. But still the same Error occures.

Now, what else can I set or what do I miss???

Thanks for any ideas!
Julia

---------------------
HTTP Status 500
type Exception report

message
description The server encountered an internal error () that prevented it from fulfilling this request.

exception
javax.servlet.ServletException: org.eclipse.core.runtime.CoreException: Plug-in eub.rapjlzhview was unable to load class eub.rapjlzhview.MyRedirectServlet.
[...]

root cause
org.eclipse.core.runtime.CoreException: Plug-in eub.rapjlzhview was unable to load class eub.rapjlzhview.MyRedirectServlet.
[...]

root cause
java.lang.UnsupportedClassVersionError: eub/rapjlzhview/MyRedirectServlet : Unsupported major.minor version 51.0
[...]
Re: downgrade from JRE7 to JRE6 [message #1412964 is a reply to message #1412605] Wed, 27 August 2014 12:49 Go to previous message
Julia Kurde is currently offline Julia KurdeFriend
Messages: 79
Registered: November 2011
Location: Berlin, Germany
Member
OK... after comparing file by file with an older version that had already worked with Java 6, I found the responsible line in the build.properies file in the main plugin:
jre.compiltion.profile = JavaSE-1.7.
After removing this line the war product runs perfectly with Java 6.

I have no idea, which action added this line to the build.properies file... And it is not visible in the graphical editor, only in the source... quite confusing!
Previous Topic:EMF BasicCommandStackListener in multi instances RAP APP.
Next Topic:RichTextViewer - Modify Listener
Goto Forum:
  


Current Time: Thu Feb 20 10:51:14 GMT 2020

Powered by FUDForum. Page generated in 0.27781 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top