Skip to Content

Java version [8] is not compatible with runtime

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 ?

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 05, 2016 at 07:41 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 05, 2016 at 07:23 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 19, 2016 at 10:32 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 14, 2016 at 10:43 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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!

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.