Reputation: 390
I got this output error :
[0.000s][warning][gc] -Xloggc is deprecated. Will use -Xlog:gc:/var/log/cassandra/gc.log instead.
intx ThreadPriorityPolicy=42 is outside the allowed range [ 0 ... 1 ]
Improperly specified VM option 'ThreadPriorityPolicy=42'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred.
Upvotes: 1
Views: 285
Reputation: 390
I solved this problem by switching to java version 8. When using java 9, 10 or other versions the only fix for now is use the openjdk-8-jre package.
Upvotes: 1