New answers tagged jdk
The javac (and other Java development tools) is available for openjdk-7-jdk. Note that basic compiling within Eclipse might work without javac (but I still recommend having javac) because Eclipse uses its own compiler. See this answer below.
I'm not a developer but you might need to have a look to Eclipse. you can find details in below article and see if it suits you http://www.eclipse.org/home/newcomers.php You can install it from Software Center; but for latest version; you will need to refer back to Eclipse Website
1.) If you’ve already installed OpenJDK (Or in ubantu generally it is already installed). Remove it by running this command: sudo apt-get purge openjdk* 2.) Then: sudo add-apt-repository ppa:webupd8team/java Then update: sudo apt-get update 3.) Select which version you want To install Oracle Java 8: sudo apt-get install oracle-java8-installer To ...
Let me suggest you have HelloWorld.class file inside some directory. To run it, you simply should type in this directory: java HelloWorld To run jar archive, use -jar key: java -jar MyProgram.jar To select java machine, type: sudo update-alternatives --config java To install Oracle JDK: sudo add-apt-repository ppa:webupd8team/java sudo apt-get ...
First, remove the PPA, you won't need it anymore : sudo add-apt-repository -r ppa:webupd8team/java sudo apt-get update The, remove the package and purge the configuration files : sudo apt-get remove --purge oracle-java6-installer Finally, if it did manage to get to the point where it modifies the system itself : sudo update-alternatives ...
Some of java related links are at master level and cannot be used as slave in update-alternatives --install. Used the following commands to install oracle jdk and update alternatives. Hope it helps. update-alternatives --install /usr/bin/java java /usr/java/jdk1.7.0_45/bin/java 10000 --slave /usr/bin/appletviewer appletviewer ...
Download the Oracle java from its offical website Download Java From Official website Here Manually Install the JDK 1.7 #java -version #sudo mkdir -p /usr/lib/jvm #sudo mv jdk-7u21-linux-i586.tar.gz /usr/lib/jvm #cd /usr/lib/jvm #sudo tar zxvf jdk-7u21-linux-i586.tar.gz #sudo rm jdk-7u21-linux-i586.tar.gz #ls -l #jdk1.7.0_21 #sudo ...
Just add following line in /etc/default/tomcat7 at where JAVA_HOME variable is defined JAVA_HOME=/usr/lib/jvm/java-7-oracle then run command sudo service tomcat7 restart
Top 50 recent answers are included