bouncer icon indicating copy to clipboard operation
bouncer copied to clipboard

Java 11 ClassNotFoundException on start

Open omgcyrilic opened this issue 4 years ago • 1 comments

Hello,

I am using Debian 10.7 and Java 11. At first I received the following:

Unrecognized VM option 'PrintGCDateStamps'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

So I added -XX:+IgnoreUnrecognizedVMOptions to the argument list.

Now I'm getting:

openjdk version "11.0.9.1" 2020-11-04
OpenJDK Runtime Environment (build 11.0.9.1+1-post-Debian-1deb10u2)
OpenJDK 64-Bit Server VM (build 11.0.9.1+1-post-Debian-1deb10u2, mixed mode, sharing)
Error: Could not find or load main class org.javastack.bouncer.Bouncer
Caused by: java.lang.ClassNotFoundException: org.javastack.bouncer.Bouncer

Any help would be appreciated! Thanks

omgcyrilic avatar Dec 31 '20 19:12 omgcyrilic

You need to add this -XX:+IgnoreUnrecognizedVMOptions in BOUNCER_OPTS_DEF, inside bouncer.sh.

ggrandes avatar Jan 11 '22 22:01 ggrandes