Como instalar o Java

From wwwelab
Revision as of 10:55, 15 November 2016 by Ist12916 (talk | contribs) (→‎Installation for Windows)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

More info here