Target
Environment: VmWare
OS: Ubuntu
Action: Run java jar
Action Items
- Check or Install Java version
- Error: 404 not found
- Run java jar
- Run java jar include GUI
Quick Start
Step 1: Check or Install Java version
Terminal to check java version
1 | java -version |
Terminal to install java
1 | sudo apt-get install openjdk-7-jre-headless |
ERROR: 404 not found
Go to Step 2 to solve.
Step 2: 404 not found
apt-get update
1 | sudo apt-get update --fix-missing |
Step 3: Run java jar
Terminal1
java -jar Test.jar
ps. Run java jar include gui go to Step 4
Step 4: Run java jar include GUI
Install openjdk-7-jre
Include GUI library.1
sudo apt-get install openjdk-7-jre
Run
Terminal to run.1
java -jar TestGUI.jar
Reference
http://askubuntu.com/questions/101746/how-can-i-execute-a-jar-file-from-the-terminal
http://qa.helplib.com/698697