optaplanner error message

42 views
Skip to first unread message

mustafa tosun

unread,
Jan 6, 2021, 1:21:41 PM1/6/21
to OptaPlanner development
I get this error message when I start optaplanner examples,is there anyone who can help? opta.png

Christopher Chianelli

unread,
Jan 6, 2021, 1:31:41 PM1/6/21
to OptaPlanner development

How are you running the OptaPlanner examples (from GitHub branch using Maven? via runExamples.sh from the ZIP from optaplanner.org?) Couldn't reproduce using  runExamples.sh from distribution ZIP. What platform are you on?

mustafa tosun

unread,
Jan 6, 2021, 1:41:45 PM1/6/21
to OptaPlanner development
i download zip file from optaplanner.org and open examples -> runExamples.bat , interface works and looks fins but when i click examples i get this error messages, i use windows 10

6 Ocak 2021 Çarşamba tarihinde saat 21:31:41 UTC+3 itibarıyla cchi...@redhat.com şunları yazdı:

Christopher Chianelli

unread,
Jan 6, 2021, 1:48:59 PM1/6/21
to OptaPlanner development
Just a question, do you only have the JRE (Java Runtime Environment), or do you also have a JDK (Java Development Kit). A quick way to check is to type "where javac"; if it print a path, then you probably have a JDK installed. If not, you probably don't. If you do not, try installing a JDK (from the stack trace, NativeJavaCompiler tries to get the system javac, which will be null if none exists, see https://github.com/kiegroup/drools/blob/996e8f40dec9f25650dfb0457eb09bad3b1cebc7/kie-memory-compiler/src/main/java/org/kie/memorycompiler/jdknative/NativeJavaCompiler.java )

mustafa tosun

unread,
Jan 6, 2021, 1:55:05 PM1/6/21
to OptaPlanner development
C:\Users\ACER>where javac
C:\Program Files\Common Files\Oracle\Java\javapath\javac.exe
C:\Program Files\AdoptOpenJDK\jdk-11.0.9.101-hotspot\bin\javac.exe
i get this message , yes i have java and jdk i think
Iim not good at computer science but i really want run this program thank you

6 Ocak 2021 Çarşamba tarihinde saat 21:48:59 UTC+3 itibarıyla cchi...@redhat.com şunları yazdı:

Christopher Chianelli

unread,
Jan 6, 2021, 2:03:18 PM1/6/21
to OptaPlanner development
In that case, it might be https://stackoverflow.com/a/2543485 (that is, you have both a JRE and a JDK Installed, and runExamples is running the one from the JRE). Try setting JAVA_HOME if it isn't set to one of the JDK's https://confluence.atlassian.com/doc/setting-the-java_home-variable-in-windows-8895.html.

mustafa tosun

unread,
Jan 6, 2021, 2:13:59 PM1/6/21
to OptaPlanner development
wow yes it works, thank you for your help :D

6 Ocak 2021 Çarşamba tarihinde saat 22:03:18 UTC+3 itibarıyla cchi...@redhat.com şunları yazdı:
Reply all
Reply to author
Forward
0 new messages