190 likes | 543 Views
How to install Java version 7 and BlueJ , which we use in this workshop. James Brucker Revised 8 July 2014. Installing Java and BlueJ. BlueJ. Software You Need. 1. Java Development Kit (JDK) compiles and runs Java programs includes Java Runtime + programmer tools
E N D
How to install Java version 7 and BlueJ, which we use in this workshop. James Brucker Revised 8 July 2014 Installing Java and BlueJ BlueJ
Software You Need 1. Java Development Kit (JDK) compiles and runs Java programs includes Java Runtime + programmer tools http://java.oracle.com 2. BlueJ compile and run Java programs http://bluej.org 3. Greenfoot graphical programming in Java create games and simulations – easy! http://greenfoot.org
Install Java Development Kit (JDK) Where to get Java Development Kit? http://java.oracle.com under “Top Downloads” http://se.cpe.ku.ac.th/download/java (if at KU) Click “Java SE” in “Top Downloads” box Scroll down to “Java SE 7u60” (we don’t need Java 8) Download the JDK. On next screen, choose your operating system.
Windows: Don’t use C:\Program Files Windows 1. double-click jdk-7u60-windows-i586.exe 2. Install in C:\java\jdk1.7.0_60(not C:\Program Files) Path with spaces can cause problems. Each update to Java has a new update number. "jdk-7u60" means "Java version 7 update 60". You should install the most recent update.
Install Java Documentation Java has greatdocs that you read in your web browser. On “Java SE Downloads” page, scroll down to… download jdk-7u60-apidocs.zip Unpack ZIP file to C:\java
Explore Java Documentation Double click on "index.html" in C:\java\docs to open...
Useful Document Links Excellenttutorials (you can download these, too). The "Javadoc" for every class in the Java Development Kit.
Installing Java on Ubuntu Linux On Ubuntu, you have 2 choices for Java (choose one): • Oracle JDK - Oracle's Java (same as on Windows). Download tar file from http://java.oracle.com Change directory to "/opt" (recommended location) Unpack the file: sudotar xzf filename (Hard part) Add Java location to shell PATH • OpenJDK - a compliant JDK that's totally free. To install OpenJDK, open a terminal window and type: sudo apt-get install openjdk-7-jdk sudo apt-get install openjdk-7-doc
Test your Java Installation Test that Java is installed. Open a terminal window (Windows: "cmd" prompt) and enter: >javac -version javac version 1.7.0_60
Can't find javac or java ? C:> javac -version "javac" not found. If "Not Found" then add Java's "bin" dir to your PATH. 1) Right-click "My Computer" → choose "Properties" 2) Select "Advanced" tab 3) Click "Environment Variables" 4) Select PATH and click "Edit" 5) Add this to PATH: ...;C:\java\jdk1.7.0_60\bin MS Windows
Install BlueJ Where to get BlueJ? http://www.bluej.org Windows 1. Download “2. BlueJ Installer” (without JDK) 2. Double-click on bluej-311.msi file to install. 3. Install anywhere you like (Program Files is OK).
Run BlueJ The first time you may see a message like this: Select the Java you want to use. Then click “Launch”.