Java Newbie
Results 1 to 3 of 3

Thread: Java Newbie

  1. #1
    Registered User
    Join Date
    Aug 2000
    Location
    SoCal USA
    Posts
    210

    Post Java Newbie

    I Downloaded Java from Sun's site onto a Win 2k box and did the installation. Tried to compile an example source (example.java) using the following :

    c:\java\javac example.java

    only to get an error

    'javac' is not recognized as an internal or external command, operable program, or batch file.

    Does any kind soul have an idea of what I'm doing wrong here? I'm also on SP3 with all current critical updates.
    Stress.... The uncontrollable urge to choke the living $417 out of someone who desperately needs it.

    Ignorance.... The inherent capacity to demand of someone else that which one is too lazy to learn/perform for one's self.

    User....An individual who, through immense proportions of ignorance, create stress.

  2. #2
    Senior Member - 1000+ Club Outcoded's Avatar
    Join Date
    Apr 2001
    Location
    Somewhere in the UK, never quite sure where
    Posts
    1,689

    Post

    You need to set up your paths.

    Add this to the end of your autoexec.bat, or in a separate batch file, that you run before compiling:

    path=%PATH%;c:\[whereever the JDK is installed]\bin
    SET CLASSPATH = .;c:\[whereever the JDK is installed]\lib
    I'm in charge and I say we blow it up

  3. #3
    Registered User Akuma's Avatar
    Join Date
    Nov 2001
    Location
    The Void
    Posts
    826

    Post

    Also, you have to make sure that you are in the correct directory to compile the source code.
    Sooouuuushi!

Bookmarks

Posting Permissions

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