Difference between revisions of "Como instalar o Java"

From wwwelab
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...")
 
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 17: Line 18:
 
  ➢ [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 [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==

Revision as of 10:24, 15 May 2014

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

➔ 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 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