Update JDK via CMD
Update JDK via CMD
Updating the JDK via the command line depends on your operating system. Here’s how you
can do it:
sh
java -version
and
sh
javac -version
Run these commands in Command Prompt or PowerShell (Admin) to update the Java path:
sh
sh
java -version
1/5
javac -version
sh
java -version
sh
sh
sh
export JAVA_HOME=$(/usr/libexec/java_home)
sh
Linux (Ubuntu/Debian)
2/5
1. Check Current Version
sh
java -version
sh
sh
sh
java -version
javac -version
The error "Could not find or load main class jade.Boot" typically occurs due to one of the
following reasons:
Solution Steps
3/5
Make sure jade.jar and jadeTools.jar are present in the current directory
( C:\Users\LaptopSpace ). Run:
sh
dir jade*.jar
If the files are missing, download JADE from JADE Official Site and place them in the correct
directory.
sh
sh
If the class is missing, the JAR might be corrupted or not properly downloaded.
sh
java -version
If JADE has a manifest file specifying the main class, this might work:
sh
4/5
java -jar jade.jar -gui
5/5