![]() |
|
|
|
| ||||||
|
Welcome to the The ProgrammersTalk Community forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| Tags: help, java, programming, starting, tutorial |
![]() |
![]() | | LinkBack (19) | Thread Tools | Display Modes | ![]() |
| ||||
| Haha! at the beginning I was about to write tutorial about inheritance and polymorphism, but I guess it's going to be too long and boring. So, instead I'm just going to create the tutorial for Java newbie (including me )JAVA JDK 1.6 Can be downloaded at: https://sdlc5a.sun.com/ECom/EComActi...0 B1077E6CDE3 Before we're going further. Once the installation finished, go to command line, and type java and see if there's anything comes up. It's a good thing if there's something that comes up. If there's nothing happen, there are various reasons. Once you're done installing, probably the best way is to setup your path, so that you can compile java easily ![]() HOW TO SETUP JAVA PATH 1. Go to your control panel (I'm sure that you know how to go there) 2. Right click on System, then choose Properties 3. Find Advanced Tab (I'm now using Vista, but I remembered that there's advanced tab on Windows XP) 4. Environment Variables... 5. On the System Variables section, select CLASSPATH, and then click EDIT. Add a "." (period, without " ") before whatever is there, or after whatever is there. Make sure you seperate them with ";" (colon, without " ") 6. also on System Variables section, select Path, and then click EDIT. Add "C:\Program Files\Java\jdk1.6.0\bin;" or "C:\Program Files\Java\jdk<version>\bin;" (you substitute <version> with your JDK version, and of course without " ", and ";" is to seperate whatever is there with the new one that you just added. 7. Click Ok to everything to close them. Now, let's find out whether your setup is working ![]() 1. Open notepad 2. Write below codes: PHP Code: 4. Go to command line, then go to folder that you want Code: REMINDER: cd - to change directory cd .. - to go down one directory Code: javac ProgrammersTalk.java 7. Type java ProgrammersTalk ![]() Last edited by HelloWorld : 06-14-2007 at 11:18 PM. |
| |
![]() |
| Thread Tools | |
| Display Modes | |
| |