Results 1 to 5 of 5

Thread: Using command prompt and Notepad

  1. #1

    Thread Starter
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Using command prompt and Notepad

    Hey all,

    I have a book that tells you how to use the command prompt and notepad to run java code. But, when it tells me to run this line in the command prompt it says that its not a found function:

    javac HelloWorld.java (which is supposed to compile the java file)

    Does anybody know why this doesn't work?

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Using command prompt and Notepad

    JDK Class path property is not set or set improperly, search this forum and you'll find the right way to do it
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  3. #3

    Thread Starter
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Re: Using command prompt and Notepad

    search what? command prompt java?

  4. #4
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Using command prompt and Notepad

    1- Open System properties (Control Panel==>System)
    2- Go to the "Advanced tab"
    3- Click on the "Environment vars" button
    4- In the "System vars" table, make sure you have "CLASSPATH" variable with the value set to the folder containing java JDK
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  5. #5

    Thread Starter
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Re: Using command prompt and Notepad

    I do have that.

Posting Permissions

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



Click Here to Expand Forum to Full Width