How to uncompress a WAR file using command
Answer:
To un-compress a Java Web Archives file (*.war), you can use the command
# jar xvf my-app.war
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
How to uncompress a WAR file using command
Answer:
To un-compress a Java Web Archives file (*.war), you can use the command
# jar xvf my-app.war
Changing the default Java environment in Ubuntu
Answer:
If you have more than one JVM (Java Virtual Machine) installed in your Ubuntu server, e.g. OpenJDK and the Oracle JDK, you can easily select them using the following command:
# sudo update-alternatives --config java
Following the instruction and you can easily set them as you want.
Install sun-java-jdk in Ubuntu 10.04
Answer:
To install the offical Sun (now Oracle) JDK in Ubuntu 10.04, you need to do the following in terminal.
1. Add the extra repository
# sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
2. Update the local package index
# sudo apt-get update
3. Install the JDK and plugin
# sudo apt-get install sun-java6-jdk sun-java6-plugin
4. And finally, change you system to use the newly installed JDK.
# sudo update-java-alternatives -s java-6-sun
Install Java Runtime environment under Ubuntu
Answer:
In the command shell, type:
sudo aptitude install sun-java6-jre sun-java6-plugin
The commands will install the Java Runtime environment as well as the browser's plugin (e.g. Firefox)