Aakansha Vatsa
Aakansha Vatsa

Reputation: 49

Deploying bluemix from eclipse

enter image description here One or more of your projects is compiled using Java 9.0, ensure the runtime Java level is equal or higher

I tried to deploy my first sample code,but got this error. I do have jdk9.0 installed along with eclipse oxygen. Can't figure out what to do from here on.

Upvotes: 0

Views: 70

Answers (1)

Jonathan West
Jonathan West

Reputation: 51

As of today (January 2018) Eclipse Tools for Bluemix does not support Java 9 Web projects. You will see the above warning message in the UI, as per your screenshot, when you try to publish an application.

You may still develop using your current Java install, but you must ensure that your Web projects are targeting Java 8, as follows:

  • In Eclipse, right-click on your Web project and select Properties. Select the Project Facets page, then select the Java checkbox. Change the version to 1.8.
  • You should also select the Java Compiler page, and ensure that your JDK Compliance is set to Java 8.

Upvotes: 1

Related Questions