Skip to content

Problem when i try to run it #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
alonsoir opened this issue Jan 24, 2019 · 1 comment
Open

Problem when i try to run it #3

alonsoir opened this issue Jan 24, 2019 · 1 comment

Comments

@alonsoir
Copy link

Good morning, i am trying to run the sample after compiling it using clean and install maven phases, then i try to run the jar file this way:

~/d/spring-boot-ignite> java -jar target/ignite-sample-manager\#\#0.0.1-SNAPSHOT-LOCAL.jar --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED --add-exports=java.base/sun.nio.ch=ALL-UNNAME

I got this message

This is my config:

~/d/spring-boot-ignite> java --version java 10.0.1 2018-04-17 Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10) Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode) aironman@MacBook-Pro-Retina-de-Alonso ~/d/spring-boot-ignite> mvn --version Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T20:41:47+02:00) Maven home: /usr/local/Cellar/maven/3.6.0/libexec Java version: 10.0.1, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home Default locale: es_ES, platform encoding: UTF-8 OS name: "mac os x", version: "10.14.2", arch: "x86_64", family: "mac"

Cant i use jdk10?

@Romeh
Copy link
Owner

Romeh commented Jan 24, 2019

I did not test it yet with java 10 , but the following can help u :

Added the exports to the SpringBoot plugin seem to work for me in addition to
having them in my compiler and surefire plugins...it at least starts up
Ignite and I see the Ignite banner.

org.springframework.boot spring-boot-maven-plugin --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED --add-exports=java.base/sun.nio.ch=ALL-UNNAMED

http://apache-ignite-users.70518.x6.nabble.com/Ignite-running-on-JDK10-td23328.html

The will add official support to java 10 in ignite 2.8 as being mentioned here : https://issues.apache.org/jira/browse/IGNITE-8441

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants