Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Installing Java and BlueJ at Home (Mr. Moon – Last Updated 11/1/14) --- WHAT IS REQUIRED TO WRITE JAVA --A. To develop, compile and run Java programs on your computer, you need to have the Java SE Development Kit (JDK). The JDK includes command-line commands to compile and run Java programs. See java.sun.com/javase/namechange.html for current releases of Java and naming conventions. The current release is Java Platform, Standard Edition 8 (Java SE 8) and JDK 6 (sometimes 1.6 is used). The previous release was Java 2 Platform, Standard Edition 5.0 (J2SE 5.0). (currently installed at school) B. To create your programs, you need an IDE (there are several free ones, we use BlueJ). A. INSTALL JAVA Java Software Development Kit (JDK/JRE)(Java compiler) 1. 2. 3. Go to java.sun.com/javase/downloads/index.jsp (I used Google Chrome) Click the icon Download for Java Platform (JDK) 8u25 (latest version as of 11/1/14) You should now see the panel below. See notes on right for what to do. A. Click the Accept License Agreement Radio Button. B. Choose the correct windows file to download. NOTE: How to Check if you have 32 bit or 64 bit 1. Open Control Panel and then select System. 2. Or right click on “Computer Icon” on desktop, and select Properties 32 bit: 64 bit: jdk-8u25-windows-i586.exe jdk-8u25-windows-x64.exe 2. The file should begin to download and should show at the bottom of the browser A. Click on the file to begin the installation when it has fully downloaded. (takes a couple minutes) 3. An Installation Wizard Screen should now appear. Click Next. A. Write down the install directory. It should be: C:\Program Files\Java\jdk1.8.0_25\ You will use this directory in step 4 on the next page B. Click Next C. Installation will begin. You will see a status bar. It will take a few seconds for things to begin happening. D. You will get a successful download message. Click Close. Java Installation continued… 4. Page 2 ADD THE JAVA DIRECTORY TO YOUR PATH VARIABLE A. Access Environment Variables For how to do on different operating systems, browse to: https://www.java.com/en/download/help/path.xml WINDOWS 8: Open Control Panel. Click on System > Advanced System Settings > Environment Variables. WINDOWS 7: Right click on the Computer Icon and select properties. Click on Advanced System Settings (on left side of screen). Click on the Environment Variables button. B. MODIFY PATH VARIABLE In the System variables list, select the Path variable and click the Edit button. Carefully click on the Variable value field so that the entire path is no longer highlighted. If you accidentally erase it, hit Cancel right away and try again. Move the cursor to the beginning of the line. Add an entry to the beginning of the field. The entry has the form c:\JDK directory name\bin; (JUST BE SURE THIS IS EXACTLY WHERE YOU INSTALLED JAVA FROM STEP #3 ABOVE) It should be the following: C:\Program Files\Java\jdk1.8.0_25\; Be sure you enter the exact name of the JDK directory and follow it by \bin; (a backslash, the word bin and a semicolon). Click Ok three times to exit. 5. VERIFY IT INSTALLED PROPERLY. A. Open MS-DOS. On Windows 7 - Select Windows Icon and type cmd On Windows 8- Drag the Mouse pointer to the Right bottom corner of the screen, Click on the Search icon and type: cmd B. Type java –version You should get the following version message. If you don't, recheck the Path variable in prior step. C. Type exit to get out of DOS screen Java Installation continued… Page 3 B. Installing BlueJ (IDE ~Integrated Development Environment) 1. Go to www.bluej.org/download/download.html and download the correct file for your operating system. Click on the file for windows. Should be bluej-314.msi Latest Version (as of 11/1/14) BlueJ version 3.1.4 2. When the file finishes downloading, click on the file to begin installation. 3. Open BlueJ when installation is done and test a Karel Program to see if things work. KAREL WORLDS Copy the Karel Worlds to your hard drive or leave them on your Flash Drive. When you need to read a World file, you must specify the directory such as: From the Hard Drive (assuming it is in a folder named Worlds) World.readWorld("c:\\Worlds\\","fig3-2.kwld"); From the Flash Drive (your flash drive might not be F, it could be E or G or H) World.readWorld("f:\\Worlds\\","fig3-2.kwld"); THAT IS IT! YOU SHOULD BE ABLE TO WRITE PROGRAMS NOW.