+ Reply to Thread
Results 1 to 9 of 9

Thread: Java:Tutorial - Getting Started

  1. #1
    Co-Administrator John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John's Avatar
    Join Date
    Jul 2006
    Age
    21
    Posts
    5,885
    Blog Entries
    25

    Java:Tutorial - Getting Started

    In order to have the total development environment, you will need to follow all of these instructions for installation exactly. Failure to follow even one step can result in your installation not working correctly and you not being able to properly work on your projects.

    Installing JDK
    1. Go to the Sun's JDK download page: http://java.sun.com/j2se/1.5.0/download.jsp. You should select to download the JDK 5.0 Update 4 (or later) without any additional programs (like NetBeans). Careful that you download the JDK and not the JRE. You also do not need any J2EE technology.

    2. You will need to agree to the licensing agreement.

    3. Under Windows platform, you want to select the "Windows Offline Installation" and click the link to begin downloading.

    4. When the file download dialog box comes up, choose to Save the file. A save dialog box will appear and you should select to save the file in C:\. Click on the Save button to begin the download process. A status window will appear to tell you approximately how long this will take. On a cable modem it took about 5 minutes, but that may vary depending on service/time of day.

    5. When finished downloading, there should be an option activated to Run the file. You should select this option and the automatic installation program will take over.

    6. You will need to agree to the licensing agreement again and then hit "Next".

    7. Another screen will appear asking you about customizing the install. You will use the default install, so simply hit "Next" again.

    8. Installation will now be beginning on your machine and you will see a status bar appear to let you see progress.

    9. Next you will be installing the Java Runtime Environment. Again you want the default installation, so simply hit "Next".

    10. You will be prompted as to which browser you want to register the Java plug-in, choose whatever browser you use most often and hit "Next".

    11. The JRE will install and another status bar will appear.

    12. You should then click Finish.

    Updating your PATH variable [highley reccomended]

    Quote Originally Posted by SDN - http://java.sun.com/j2se/1.5.0/install.html
    You can run the JDK without setting the PATH variable, or you can optionally set it as a convenience.

    Should I set the PATH variable?
    Set the PATH variable if you want to be able to conveniently run the JDK executables (javac.exe, java.exe, javadoc.exe, etc.) from any directory without having to type the full path of the command. If you don't set the PATH variable, you need to specify the full path to the executable every time you run it, such as:

    C:> "\Program Files\Java\jdk1.5.0_<version>\bin\javac" MyClass.java

    It's useful to set the PATH permanently so it will persist after rebooting.

    How do I set the PATH permanently?
    To set the PATH permanently, add the full path of the jdk1.5.0_<version>\bin directory to the PATH variable. Typically this full path looks something like C:\Program Files\Java\jdk1.5.0_<version>\bin. Set the PATH as follows, according to whether you are on Microsoft Windows NT or 98/2000/ME.

    Microsoft Windows NT, 2000, and XP - To set the PATH permanently:

    1. Choose Start, Settings, Control Panel, and double-click System. On Microsoft Windows NT, select the Environment tab; on Microsoft Windows 2000 select the Advanced tab and then Environment Variables. Look for "Path" in the User Variables and System Variables. If you're not sure where to add the path, add it to the right end of the "Path" in the User Variables. A typical value for PATH is:

    C:\Program Files\Java\jdk1.5.0_<version>\bin

    Capitalization doesn't matter. Click "Set", "OK" or "Apply".

    The PATH can be a series of directories separated by semi-colons (. Microsoft Windows looks for programs in the PATH directories in order, from left to right. You should only have one bin directory for a JDK in the path at a time (those following the first are ignored), so if one is already present, you can update it to jdk1.5.0_<version>\bin.

    2. The new path takes effect in each new Command Prompt window you open after setting the PATH variable.

    Microsoft Windows 98 - To set the PATH permanently, open the AUTOEXEC.BAT file and add or change the PATH statement as follows:

    1. Start the system editor. Choose "Start", "Run" and enter sysedit, then click OK. The system editor starts up with several windows showing. Go to the window that is displaying AUTOEXEC.BAT

    2. Look for the PATH statement. (If you don't have one, add one.) If you're not sure where to add the path, add it to the right end of the PATH. For example, in the following PATH statement, we have added the bin directory at the right end:

    PATH C:\WINDOWS;C:\WINDOWS\COMMAND;"C:\PROGRAM FILES\JAVA\JDK1.5.0_<version>\BIN"

    Capitalization doesn't matter. The PATH can be a series of directories separated by semi-colons (. Microsoft Windows searches for programs in the PATH directories in order, from left to right. You should only have one bin directory for a JDK in the path at a time (those following the first are ignored), so if one is already present, you can update it to jdk1.5.0_<version>.

    3. To make the path take effect in the current Command Prompt window, execute the following:

    C:> c:\autoexec.bat

    To find out the current value of your PATH, to see if it took effect, at the command prompt, type:

    C:> path

    Microsoft Windows ME - To set the PATH permanently:

    From the start menu, choose programs, accessories, system tools, and system information. This brings up a window titled "Microsoft Help and Support". From here, choose the tools menu, then select the system configuration utility. Click the environment tab, select PATH and press the edit button. Now add the JDK to your path as described in step b above. After you've added the location of the JDK to your PATH, save the changes and reboot your machine when prompted.
    Installing Eclipse on Windows
    1. Download Eclipse be sure to select the University of Buffalo mirror because we are the best

    2. Follow the install, you should be able to do that

  2. #2
    Super Moderator WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther's Avatar
    Join Date
    Jul 2006
    Age
    36
    Posts
    11,680
    Blog Entries
    57
    I've enjoyed using JBuilder myself. Has anyone compared the two?
    CodeCall Blog | CodeCall Wiki | Shareware
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  3. #3
    Newbie castanza88 is an unknown quantity at this point
    Join Date
    Dec 2006
    Posts
    5
    so, where does ant come in correlation to all this?

  4. #4
    Newbie Cuppa is an unknown quantity at this point Cuppa's Avatar
    Join Date
    Jul 2008
    Posts
    1

    Re: Java:Tutorial - Getting Started

    I'm really not sure what I'm downloading.
    I have NO PRIOR knowledge of ANYTHING coding outside wpe.
    So, I'm just downloading expecting something important.

  5. #5
    Newbie gracie20 is an unknown quantity at this point
    Join Date
    Aug 2008
    Posts
    4

    Re: Java:Tutorial - Getting Started

    hello...can anyone tell me from where i can get the complete infomation about JAVA

  6. #6
    Newbie helplinelaw is an unknown quantity at this point
    Join Date
    Aug 2008
    Posts
    5

    Re: Java:Tutorial - Getting Started

    Go on head java.sun.com/docs/books/tutorial/ read a or download.

  7. #7
    Learning Programmer Blmaster will become famous soon enough
    Join Date
    Jul 2008
    Posts
    48

    Re: Java:Tutorial - Getting Started

    does anyone use JGrasp or even heard of it! if they have, then which one is better, JGrasp or Eclipse?

  8. #8
    Newbie ALPHA is an unknown quantity at this point ALPHA's Avatar
    Join Date
    Oct 2008
    Location
    Deep Ocean
    Posts
    17

    Re: Java:Tutorial - Getting Started

    excellent tut John!

    JGrasp or Eclipse?
    i'm using JCreator
    THINK LIKE A PROGRAMMER !

  9. #9
    Code Warrior Egz0N is a name known to all Egz0N is a name known to all Egz0N is a name known to all Egz0N is a name known to all Egz0N is a name known to all Egz0N is a name known to all Egz0N's Avatar
    Join Date
    Sep 2008
    Location
    Kosovo
    Age
    18
    Posts
    4,034

    Re: Java:Tutorial - Getting Started

    Excellent Tutorial John..

    BTW .. Im using Eclipse

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Java:Tutorial - Tic-Tac-Toe
    By John in forum Java Tutorials
    Replies: 29
    Last Post: 03-12-2010, 11:53 PM
  2. Java:Tutorial - "Hello World"
    By John in forum Java Tutorials
    Replies: 20
    Last Post: 12-23-2008, 08:52 PM
  3. Need help getting started
    By Nichie in forum C and C++
    Replies: 1
    Last Post: 03-22-2007, 11:17 AM
  4. See I haves started a codecall.net thread in mylot...
    By littlefranciscan in forum The Lounge
    Replies: 3
    Last Post: 01-29-2007, 12:45 PM
  5. Were should I get started.
    By elfshadow14 in forum General Programming
    Replies: 10
    Last Post: 09-21-2006, 07:52 PM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts