Troubleshooting - A-Herzog/Warteschlangensimulator GitHub Wiki
Troubleshooting
Program cannot be started
When trying to start Warteschlangensimulator I get the message "Program could not be executed. Maybe there is no Java environment."
Warteschlangensimulator is a Java program and therefore needs an Java environment to run. The Windows version of Warteschlangensimulator comes with a small exe wrapper which will search for Java and then run the simulator using the found Java version. If the wrapper cannot find any Java version it will show the message above.
If you have installed a Java environment from AdoptOpenJDK or from Oracle Warteschlangensimulator should be able to find Java. If you have done some custom installation or you are using some other Java distributions you may have to give the wrapper some hint. It will look for Java at this locations in this order:
- In the folder the environment variable
QS_JAVA_HOME
points to (if set). - In the folder
.\jdk
. - In the folder
.\jre
. - In the folder specified via the "JAVA_HOME" environment variable.
- In the Oracle JDK folder specified in the registry.
- In the Oracle JRE folder specified in the registry.
- In
C:\Program Files (Arm)\Microsoft
and its subfolders. - In
C:\Program Files\Eclipse Adoptium
and its subfolders. - In
C:\Program Files\Eclipse Foundation
and its subfolders. - In
C:\Program Files\AdoptOpenJDK
and its subfolders. - In
C:\Program Files\Java
and its subfolders. - In
C:\Program Files\Amazon Corretto
and its subfolders. - In
C:\Program Files\Zulu
and its subfolders. - In
C:\Program Files\Microsoft
and its subfolders. - In the folders the search path environment variable
PATH
points to. - Search in all subfolders of
C:\Program Files
. - It will assume "javaw.exe" is in the current folder or on the search path and will try to start the simulator by the command "javaw.exe -jar simulator.jar".