Difference between revisions of "Como instalar o Java"
Jump to navigation
Jump to search
(Created page with "When installing Java you can install: ➔ JRE ➢ Java Runtime Environment ➢ Install if all you’re gonna do is run Java applications ➢ The JRE consists of the Java Vi...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
When installing Java you can install: | When installing Java you can install: | ||
+ | |||
➔ JRE | ➔ JRE | ||
➢ Java Runtime Environment | ➢ Java Runtime Environment | ||
Line 12: | Line 13: | ||
➔ If you’re working with e-lab on your computer then make sure you install the JDK | ➔ If you’re working with e-lab on your computer then make sure you install the JDK | ||
− | ➢ Preferably use Java 6_45 | + | ➢ Preferably use Java 6_45 but presently any version will work. |
➔ Oracle’s JDK is recommended but you may also choose another JDK, like: | ➔ Oracle’s JDK is recommended but you may also choose another JDK, like: | ||
➢ [http://openjdk.java.net/, Open JDK] (for which you also need [http://openjdk.java.net/projects/icedtea/, IcedTea WebStart plugin]) | ➢ [http://openjdk.java.net/, Open JDK] (for which you also need [http://openjdk.java.net/projects/icedtea/, IcedTea WebStart plugin]) | ||
➢ For more info check these out: [http://stackoverflow.com/questions/1977238/why-should-i-use-the-oracle-jdk-over-the-openjdk-or-vice-versa, Simpler] & [http://www.infoq.com/news/2009/01/jdk-openjdk-icedtea, +Complete] | ➢ For more info check these out: [http://stackoverflow.com/questions/1977238/why-should-i-use-the-oracle-jdk-over-the-openjdk-or-vice-versa, Simpler] & [http://www.infoq.com/news/2009/01/jdk-openjdk-icedtea, +Complete] | ||
+ | |||
+ | ==Installation for Windows== | ||
+ | Just download Java and make sure to grant all necessary privileges on the Java control Panel; | ||
+ | VERY IMPORTANT: you must grant access to all directory and not only to the root e-lav directory. Please specify on the EXCEPTION SITE LIST http://elab.ist.utl.pt WITHOUT the last "/" | ||
+ | If you wish you can install a previous version from [http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html#jre-6u45-oth-JPR Java SE Runtime Environment 6u45] and install it according to Oracle instructions. | ||
==Installation for Linux== | ==Installation for Linux== |
Latest revision as of 11:55, 15 November 2016
When installing Java you can install:
➔ JRE
➢ Java Runtime Environment ➢ Install if all you’re gonna do is run Java applications ➢ The JRE consists of the Java Virtual Machine (JVM): Java platform core classes, and supporting Java platform libraries on top of which Java applications will run.
➔ JDK
➢ Java Development Kit ➢ Also includes the JRE ➢ Install if you’re developing java in your PC, it’s got all tools for development namely compiling projects ➢ Needed when working with Eclipse / Ant / Maven / NetBeans ...
➔ If you’re working with e-lab on your computer then make sure you install the JDK
➢ Preferably use Java 6_45 but presently any version will work.
➔ Oracle’s JDK is recommended but you may also choose another JDK, like:
➢ Open JDK (for which you also need IcedTea WebStart plugin) ➢ For more info check these out: Simpler & +Complete
Installation for Windows
Just download Java and make sure to grant all necessary privileges on the Java control Panel; VERY IMPORTANT: you must grant access to all directory and not only to the root e-lav directory. Please specify on the EXCEPTION SITE LIST http://elab.ist.utl.pt WITHOUT the last "/" If you wish you can install a previous version from Java SE Runtime Environment 6u45 and install it according to Oracle instructions.
Installation for Linux
➔ Download the binnary: *.bin ➔ Go to the java installation directory
➢ Something like “/usr/lib/jvm/oracle-jdk” ➢ This must coincide with JAVA_HOME variable value for the path
➔ Commands to install (example):
$ chmod a+x jre-6u30-linux-x64.bin (Now we got it to be executable! lets install it!) $ ./jre-6u30-linux-x64.bin export JAVA_HOME="/usr/lib/jvm/oracle-jdk" export PATH="$PATH:$JAVA_HOME/jre/bin:$JAVA_HOME/bin