简体   繁体   中英

Error installing software and environment variables

I want to install a software using the following command in my command prompt:

java -Xmx256m -Xms64m -jar TreeForm.jar

However what I get is:

Exception in thread "main" java.lang.NoClassDefFoundError: sun.misc.Launcher
        at userInterface.Start.<clinit>(Start.java:54)Exception in thread "main" 

And if I define an environment variable as _JAVA_OPTIONS = -Xmx256m -Xms64m , with an additional line on top:

Picked up _JAVA_OPTIONS: -Xmx256m -Xms64m
Exception in thread "main" java.lang.NoClassDefFoundError: sun.misc.Launcher
        at userInterface.Start.<clinit>(Start.java:54)

How can I solve this? I'm using Windows.

Please check the java version you are running. If my memory is correct then sun.misc.* has been removed starting java 9. Please check you are using your java version with the command.

java -version

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM