Skip to content
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

Cannot execute the jar #4

Open
LennartCode opened this issue Apr 7, 2024 · 1 comment
Open

Cannot execute the jar #4

LennartCode opened this issue Apr 7, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@LennartCode
Copy link

Hi :)

I have some trouble executing the jar with dependencies.

My setup

Windows 10, Java installed (using OpenJDK 17.0.1 2021-10-19), all environment variables initialised properly.
I tried both the prebuild jar from GitHub and building it myself using maven.

Expected behaviour

Running java -jar path/to/jarwithdependencies.jar should start the program.

Actual behaviour

I am receiving the warning:
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.

I assume that the program should start nevertheless, but it does not.

It might be possible that I just didn't run the program properly but I could not find any help in the readme. I am thankful for any advice!

@Chris-GW
Copy link
Owner

Thank you for reporting this issue under windows. In the log file “sports-booking-sniper.log” you should find this exception with stacktrace when starting the java application:
java.io.IOException: To start java on Windows, use javaw! (see mabe02/lanterna#335)

I have made the following change so that this problem does not occur for other users:

  • Error messages that cause the application to crash are now also displayed in the console and not only in the log file.
  • In the README.md I have now added the note for running the application with javaw on Windows.

@Chris-GW Chris-GW added the bug Something isn't working label May 18, 2024
@Chris-GW Chris-GW self-assigned this May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants