Vous êtes sur la page 1sur 1

Installing Software On Your Laptop

Apple Product Users that want to install Java on their computer


Instead of installing Java and Textpad, Apple product users can install Textmate. You can get this software at http://macromates.com/. It will cost
less than $50 (make sure you get the educational discount). You may be able to get it for free by clicking on “download” on the upper right side,
rather than “purchase”. It comes with Java and you are ready to program. If Textmate does not work there's a chance you don't have Java installed
on your computer. You should: (1) Go to the Oracle website and download Java SE Development Kit 8 for Mac OS X x64
(http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) You do not need to download the version that includes
the demos and sample downloads. (2) Once done downloading, install the package, restart your computer, open a web browser, and verify Java is
installed, using this URL: https://www.java.com/verify (3) Once the page loads, click on the “Verify Java Version” link, and click on the section that
says "Java blocked for this website". A popup window will ask you "Do you want to trust the website “www.java.com” to use the “Java” plug-in?".
Click Trust, then another popup window will open. Click “Run”. You should see the page update with the following message: Congratulations! You
have the recommended Java installed. At this point, you should be able to use TextMate to compile and run Java programs.

PC/Windows Users that want to install Java on their computer


First, Install Java
(1) Go to the following web site: http://www.oracle.com/technetwork/java/index.html (2) In the section titled “Software Downloads”, click on “Java
SE”. (3) When the new web page appears you will see a box titled “Java Platform, Standard Edition” towards the middle of the page. Click on the
“DownLoad” button under “JDK”. When the new window appears, accept the license agreement and download the file indicated to the right of
“Windows x86” in the section titled Java SE Development Kit 8u112. (4) When the window appears asking if you want to run the file (or
asking if you want the program to make changes to your machine), click “Run” (or “Yes”). Then a new window will appear, click “Run”. [(5) If a
window does NOT appear that asks if you want to run the installer, go to your computer’s “Downloads” folder and double click on the file that has a
name something like “jdk-8u112-windows-i586.exe”. ] (6) When the new window appears, click the “Run” button. (7) Allow the Java installation
wizard to run by clicking “Next” or “continue” for each new window that appears. (8) Click “Close” when setup complete.
Next, Install TextPad
Go to www.textpad.com using Internet Explorer. (1) Click on “Download” at the top of the TextPad screen. (2) In the new window, scroll down and
click on “Download” for the 32 bit English version within the section titled “TextPad 8 Downloads”. (3) Click on “Save” in the new window. (4)
When the file has finished downloading, open your Download folder. (5) Double Click on the file that has a name something like “txpeng802-
32.zip”. (6) When the new window appears, double click the file “setup.exe”. (7) Click “Run” in the next window. (8) Allow the file to be saved in
the default location it suggests.
Next, Make Adjustments to TextPad
After the installation is finished, click your “Start” button (lower left of your screen) open the menu containing all of your programs, and run
TextPad; then perform the following four steps:
(Step 1) Click on the “Tools” menu, then click on the “External Tools” submenu; if “Compile Java”, “Run Java Application”, and “Run
Java Applet” items appear at the bottom of the menu, then go on to Step 2 below, otherwise: (a) click on the “Configure” menu, (b)
click on the “Preferences” item, (c) in the Preferences window, click on “Tools”, (d) click on the “Add” button in the upper right of the
window, (e) click on the item “Java SDK Commands”, IF YOU DON’T SEE “Java SDK Commands” then go to Step 100, below.
(f) click the “Apply” button at the bottom of the window, (g) go to Step 2 below.
(Step 2) If the “Preferences” window is not currently open, open it by clicking on the “Configure” menu and clicking on the “Preferences”
item. (a) in the “Preferences” window, double click on the phrase “Document Classes”, (b) double click on “Java”, (c) click on
“Syntax”, (d) if “java.syn” appears under “Syntax definition file”, go to Step 3 below; otherwise, click on the box “Enable syntax
highlighting”, (e) click the down arrow under “Syntax definition file”, (f) scroll down and click on “java.syn”, (g) click the “Apply”
button at the bottom and go Step 3 below.
(Step 3) (a) From where you left off in Step 2 (in the “Preferences” window, within Document Classes, and within Java), click on
“Colors”, (b) click on “comments”, (c) click on “Foreground” and change the color from green to one that is significantly different
from the green that represents “Strings”, (we use a “pink” color), (d) click on the “Apply” button at the bottom and go to Step 4, below.
(Step 4) (a) in the “Preferences” window, click on “View”, (b) click on the box for “Line Numbers”; this should result in a check mark in
the box, (c) click on the “OK” button at the bottom and stop.
IF YOU SUCCESSFULLY COMPLETED STEP 4, DO NOT GO FURTHER
(Step 100) IF YOU ARE NOT COMFORTABLE DOING THE FOLLOWNG, ASK YOUR TA OR INSTRUCTOR TO HELP YOU (a)
Using Windows Explorer, locate the path to your Java bin folder. If you installed Java using the defaults as described above, it is placed
in following folder: C:\Program Files (x86)\Java\jdk1.8.0_20\bin
(Note that the numbers “1.8.0_20” may be different for you. If so, replace the numbers your version has in the line above.) (b) For
Windows 7 and earlier, open up your Windows Search function (click on the Windows logo on the lower left of your computer
screen). Type "Environment" and then select “Edit the System Environment Variables”. For Windows 8, move your mouse to the right
side of your screen and click on Settings and then select “Edit the System Environment Variables”.. (c) A System Properties dialogue
box will pop up, click on “Environmental Variables”. (d) Locate the “System Variables” scroll box, and scroll down until you find the
variable called “Path”. (e) Select 'Path' and click on “Edit”. (f) DO NOT DELETE THE CURRENT PATH. Instead, place a
semicolon at the very end of it, and THEN copy the path from step 1Aa, above and paste it after the semicolon. (g) Click 'OK' and your
Textpad should now be able to locate your JDK tools. (h) Go to Step 1f, above.

IF YOU ARE STILL HAVING TROUBLE: For Apple and Windows computers, another option is NeatBeans. Please visit
https://netbeans.org/community/releases/82/install.html to install and https://netbeans.org/kb/docs/java/quickstart.html to start using it.

Document1 9/30/2018 6:48 AM

Vous aimerez peut-être aussi