Java Start- Novice


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 6 of 6

Thread: Java Start- Novice

  1. #1
    Join Date
    Apr 2004
    Posts
    2

    Cool Java Start- Novice

    Hi Java Masters
    I have been tasked to learn Java can some one suggest me where to start , what I need to have on My windows-xp PC at home to start coding , compiling and seeing the results in Java .

    Thank You

  2. #2
    Join Date
    Apr 2004
    Posts
    9
    Hemlock,

    I've just started too -- probably about 3 weeks ahead of you.

    I found the first few days the hardest -- Sun really should make it easier for the neophyte.


    There is a decent overview here:
    http://java.sun.com/learning/new2java/index.html

    Those steps might be helpful.


    Here's what I did in case you get lost:
    * Go to http://java.sun.com/j2se/1.4.2/download.html. That will let you download the current version of the Software Developer's Kit (J2SE or Standard Edition). Be careful: despite the name of the page, you want to scroll down a bit to the section called "J2SE v 1.4.2_04 SDK includes the JVM technology" Do not let the links at the top of the page distract you. Go back for them later if you want. You won't need J2EE or NetBeans right away unless your first app is a HelloWorld EJB (which it shouldn't be).

    * The hardest thing with initial installation is making sure CLASSPATH is set up right. If you can't get the Java you downloaded in step 1 to work, 99% it's because CLASSPATH is set wrong. If that happens, try this link http://java.sun.com/webapps/getjava/...w.java.com:80, which will automatically update your Java installation. That should clear up any lingering problem.

    * You'll probably want an IDE to help you with development. There are two good free ones out there.

    One is from Eclipse (an Open Source IBM spin-off). You can get it from http://www.eclipse.org/downloads/index.php

    It's a nice tool, but it doesn't have built-in support for GUI applications. You have to download the Visual Editor plug-in from here http://www.eclipse.org/vep/ READ ALL THE INSTRUCTIONS ON THE PAGE CAREFULLY. This is Freeware, not EZ-Ware, so there are several steps in installation.

    Another option is Borland's JBuilder Foundation X. http://www.borland.com/products/down...jbuilder.html. It is also free and comes with GUI tools right out of the box.

    I find Eclipse faster, so I use it. It also doesn't deny access to any of Java's J2EE features. Because JBuilder Foundation is a free version of Borland's Enterprise product, some technologies are not available.

    Try 'em both and see which one you like.

    * The online documentation at Sun doesn't look any better than it did 7 years ago when the language came out. But it's available at http://java.sun.com/j2se/1.4.2/docs/api/.

    I also picked up A Programmer's Guide to Java Certification by Khalid Mughal and Rolf Rasmussen. If you have some programming background, it's pretty straightforward. If you don't maybe one of the Java in 21 days books.

    * Online help. There's this forum. Borland and Eclipse both run forums too at newsgroups.borland.com and news.software.ibm.com respectivley. You might need to register at the websites to access the newsgroups first.

    Hope this helps.
    Scott

  3. #3
    Join Date
    Apr 2004
    Posts
    2
    Hai Scott
    Thank you very much for your input.Sure we will keep in touch as we both are novice beans

    Thanx again .

  4. #4
    Join Date
    Apr 2004
    Location
    South Africa
    Posts
    6
    Howzit!
    finished my programming diploma 6 months ago
    the reply above is really good. sams teach yourself java in 21 days is a great guide to start. it's always better to start off using text files and commandline compilers first sothat your knowledge is complete, but once you get quite advanced the gui builders are always great. netbeans and borland's jbuilder 7 enterprise edition are two great and powerful tools - the only problem is to get your hands on it *looks around nervously* without paying
    enjoy the language, it's great

  5. #5
    Join Date
    Apr 2004
    Posts
    1

    Same here

    Hello,
    I'm also on the route begining java. I feel lost. I did download j2sdk-1_4_2_04-windows-i586-p. After installing it I did a search on my computer for "java" and thats when I was confused. There are files listed that are from b4 I downloaded and installed the above j2sdk.
    Also, in Add/ Remove programs, these are listed:
    Java 2 Runtime Environment, SE v1.4.2 61.66MB
    Java 2 Runtime Environment, SE v1.4.2_04 136.00MB
    Java 2 SDK, SE v1.4.2_04 426.00MB

    I'm not sure if I installed something twice. Is there a way to figure out if everything is okay or I need to fix something before the next step.

    Thankyou.

  6. #6
    Join Date
    Apr 2004
    Posts
    9
    Yeah, I think the hardest thing about Java is that Sun does not give the newcomer any guidance about how to manage the proliferation of Java installations that will appear on their machine.

    I actually spent an afternoon getting the version number of every java.exe and other key file on my system to understand why I needed so many copies of it.

    Check your system path (system under control panel) and make sure that the directory with the SDK is listed. I'm picking this one because a) it has java.exe, which will let you run the programs and b) it has javac.exe, which will let you compile them.

    Look in the SDK directory for a file called rt.jar; it's probably in a lib subdirectory.

    If it's there, make sure that path (java/lib, not java/lib/rt.jar) is listed in your CLASSPATH system variable.

    If you're using an IDE and it asks for the location of your JVM, choose the directory with the SDK in it.

    With these settins, you should be able to write our Hello World app without a problem.

    Later, as your apps become more sophisticated, you might need to adjust PATH and CLASSPATH more. But by the time you're writing that kind of app, you'll probably understand how CLASSPATH works anyway.


    Scott

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center