cancel
Showing results for 
Search instead for 
Did you mean: 

Java version [8] is not compatible with runtime

0 Kudos

Hello,


I'm Starting on the platform, and in example of  HelloWorld , when I try to run my  Servlet as Java Web Server , it works!

But when I try to run as SAP HANA Cloud Platform, the following error appears:

Problem during deploymentJava version [8] is not compatible with the currently specified runtime; use runtime neo-java-web 2.x or 3.x

However, not find a "java web sdk" in version 2.x or 3.x , only in version 1.102.26 or below.

Does anyone know how I can solve this problem ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

You can download SDKs for the different runtime versions from [1].

"SAP HANA Cloud Platform Tools

Latest SDK downloads:

As specified here [2] only:

can be used with Java 8

Hope this help,

Violeta

[1] https://tools.hana.ondemand.com/

[2] https://help.hana.ondemand.com/help/frameset.htm?ee71c1a4aea84558accb2524785b21bc.html

0 Kudos

Violeta,

I will rebuild the project and post here the result , your answer helped , if I have any questions back here . Thank you very much.

Answers (3)

Answers (3)

Former Member
0 Kudos

I was reading the HCP learning material. I fixed the problem in my own case:

1. Ensure Java 8.x is installed on the local computer.

2. Download and extract neo-web-sdk-3.8.5.zip (for example) to a folder.

3. Configure the SDK path in Eclipse.

4. Change the properties of the Java project: Targeted Runtimes should include Java Web Tomcat 8 and exclude Java Web.

Now it should be OK to deploy the application to the HANA Cloud Platform.

Former Member
0 Kudos

I also have hit this error. It appears the instructions on the web site and in the Open SAP tutorial are simply wrong.

The answers here indicate that we are to use one of the Tomcat versions. Given neither the website nor the Open SAP tutorial mention the possibility of using Tomcat, will selecting that cause other problems?

Thanks

Cliff

Vlado
Advisor
Advisor
0 Kudos

Which website? As you can see on SAP Development Tools, two of the runtimes are actually Java Web Tomcat 7 and Java Web Tomcat 8. You can also use the other runtimes but not with Java 8. The documentation lists the supported Java versions per runtime.

Former Member
0 Kudos

Sorry Vladimir, I hadn't realised this thread was not triggered from Open SAP and so not everyone had been to https://hcp.sap.com/developers/TutorialCatalog/jav100_01_java_setup_eclipse.html

Anyway the instructions there state "Choose the Java Web (neo-java-web-sdk.X.X.X) (use the latest version) for download." The Open SAP tutorial says the same thing.

Neither of these mention that you can't use neo-java-web-sdk.X.X.X with Java 8, which is the only version now available.

Some of us beginners don't know what will be the effect if we stray from the instructions and select another download such as Java Web Tomcat 7. It's pretty poor that SAP's instructions require a version of Java that has not been available form many months.


Cheers

Cliff

Vlado
Advisor
Advisor
0 Kudos

At https://tools.hana.ondemand.com/#cloud there is SAP JVM 6, 7 & 8.

I think it's fair to accept that the oldest runtime/SDK (neo-java-web 1.x) doesn't support the newest Java version.

Former Member
0 Kudos

Thanks Vladimir, I hadn't seen the links at the bottom of the page. I'd gone to the Java site and they only permit the download of the latest version.

Former Member
0 Kudos

Guys,

having same/similar issue - my company laptop runs Java vers. 1.8x and I can't change that (policy).

Trying to use newer java web SDK from links in that discussion stream above leads to error message when assigning run time environment in Eclipse: "not a valid web SDK" (pops up for both 2.xx and 3.xx).

Any idea what to do? Sorry if answer is already in the above, simple langage appreciated!

Deployment of servlet on local host works fine.

Regards, Wolf

Former Member
0 Kudos

The Java Web Tomcat 7 works for me with Java 8. I suggest maybe start with a fresh Eclipse and use that SDK.

Cheers

Cliff

Former Member
0 Kudos

Thanks Cliff!

After trying a lot of things out and starting from scratch multiple times, I finally got it to work.

Observations:

  • Eclipse is rather sensitive, closing and restarting frequently is recommended
  • Deleting within Eclipse has issues; e.g. when using a different system language than English, Windows changes standard folder names (e.g. "Benutzer" instead of "User") which Eclipse does not seem to understand; manual deletion is required
  • I attached my setup that works with Java 1.8x and neo web SDK 2.49.11

Greetings, Wolf

PS: At least pdfs should be allowed as formats for attaching fles!

former_member54234
Participant
0 Kudos

Gregori,

If you have dowloaded the SDK for Java Web, the default runtime envrionment is JRE 6. To fix, you could specify the java-version parameter using the HCP console client.


Refer to the documentation for more information, and let me know if your issue is resolved.

Colin