Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Eclipse Scout SDK and Java 8?
Eclipse Scout SDK and Java 8? [message #1397419] Wed, 09 July 2014 17:54 Go to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
Does the Luna EPP Package "Eclipse for Scout Developers" has a problem with Java 8?

I am running the IDE with a Java 8 JRE.

eclipse-scout-luna-R
win32.x86_64

java.runtime.version=1.8.0_05-b13
java.version=1.8.0_05


When I create a new Scout Project, each MANIFEST.MF contains:
Bundle-RequiredExecutionEnvironment: JavaSE-1.8


When I try to validate the product files (for example the server-dev.product), I get validation errors.
<the app>.server/products/development/<app alias>-server-dev.product


index.php/fa/18509/0/


Of course if I start the application I get the same errors:

!ENTRY org.eclipse.osgi 2 0 2014-07-09 19:36:41.742
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-07-09 19:36:41.750
!MESSAGE Bundle update@<workspace path>/<the app>.server/ was not resolved.
!SUBENTRY 2 <the app>.server 2 0 2014-07-09 19:36:41.750
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(&(osgi.ee=JavaSE)(version=1.8))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-07-09 19:36:41.751
!MESSAGE Bundle update@<workspace path>/<the app>.shared/ was not resolved.
!SUBENTRY 2 <the aoo>.shared 2 0 2014-07-09 19:36:41.751
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(&(osgi.ee=JavaSE)(version=1.8))".


I checked everything:
* Preferences > Java > Installed JREs
* Preferences > Java > Installed JREs > Excution Environments
* Preferences > Java > Compiler: JDK Compliance Compiler compliance level

Everything seems to be OK (Java 8 or 1.8 everywhere)

The workaround is to replace:
Bundle-RequiredExecutionEnvironment: JavaSE-1.8

With:
Bundle-RequiredExecutionEnvironment: JavaSE-1.7

in all MANIFEST.MF files.

Is someone experiencing the same problem?

What is the solution to this problem? (I am aware that the problem might be somewhere else in Eclipse IDE - Maybe PDE?)

.
Re: Eclipse Scout SDK and Java 8? [message #1397461 is a reply to message #1397419] Wed, 09 July 2014 19:18 Go to previous messageGo to next message
Santo Mota is currently offline Santo MotaFriend
Messages: 63
Registered: July 2013
Member
Hi Jeremie Bresson.
I was suffering a big problem with java 8, ascout and tomcat,
see bellow
https://www.eclipse.org/forums/index.php/mv/msg/788694/1394598/#msg_1394598

The problem it was the java 8 version.

For now, I encourage you to use sdk 1.7 that it working well.
Re: Eclipse Scout SDK and Java 8? [message #1397850 is a reply to message #1397461] Thu, 10 July 2014 08:39 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
To reproduce the problem, a very important point is to select "New Eclipse Juno Target (3.8 recommended)" as Eclipse Platform.

I think the problem is somewhere there.


@Santo Mota: thanks for your pointer and your video.

.

[Updated on: Thu, 10 July 2014 08:40]

Report message to a moderator

Re: Eclipse Scout SDK and Java 8? [message #1397965 is a reply to message #1397850] Thu, 10 July 2014 12:08 Go to previous message
Matthias Villiger is currently offline Matthias VilligerFriend
Messages: 232
Registered: September 2011
Senior Member
This is because the 1.8 execution environment is only available on equinox luna. As Eclipse 3.8 was a Juno release, this support is not available there.

In other words: the java 1.8 support only works with an eclipse luna target.

I created Bug 439333 to fix this in the scout SDK.
Previous Topic:Storing data in the clients
Next Topic:Escout Tutorial
Goto Forum:
  


Current Time: Sat Apr 27 04:37:00 GMT 2024

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

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

Back to the top