Reputation: 913
I found in the java command line, there is the parameter like " -J-XX:ThreadStackSize=256 -J-verbosegc", i know the -XX but how about the -J ? anyone knows? Thanks
Upvotes: 1
Views: 888
Reputation: 201409
It must get passed through to some other environment, maybe you have a script doing something because here I get
efrisch@eeyore ~ $ java -version
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
efrisch@eeyore ~ $ java -J-XX:ThreadStackSize=256 -J-verbosegc
Unrecognized option: -J-XX:ThreadStackSize=256
Could not create the Java virtual machine.
In other words, something is taking the "-J" options off at some point (that is both "-J-XX:ThreadStackSize=256" and "-J-verbosegc") either completely or just the leading "-J".
Upvotes: 3