Results 1 to 7 of 7

Thread: HELP!!!!

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    240

    Angry

    How in the hell do you compile a javae program with jdk1.2 ??

    My book tells me to save the java file then go to the command line (DOS I am thinking) and type

    javac First.java


    That doesnt work


    Then it says try

    javac c:\windows\First.java


    No luck there..


    HELP!!!


    i have no idea anymore...

  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    292
    Do you have the execetubles in the path statement of your autoexec.bat file?
    "People who think they know everything are a great annoyance to those of us who do."

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    240

    i figured it out.

    I had to change the command path to c:\jdk1.2>
    The i had to do this to compile it

    c:\jdk1.2> c:\jdk1.2\bin\javac first.java


    and it compiles fine but then when i run it using this command

    c:\jdk1.2> java first

    i get a "bad command or file name" error

    unless

    c:\jdk1.2> start java first


    The program displays the message but another DOS window appears and the message shows but the same window disapears .....

    any way i can keep the window open without it closing?? like it is supposed too.

    Thank you.

  4. #4
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    292
    Add "c:\jdk1.2\bin\" to your path in the autoexec.bat file.
    "People who think they know everything are a great annoyance to those of us who do."

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    240

    Unhappy I dunno but..

    I did add that line to my autoexec..but then when i restarted my computer back up and my autoexec ran i got a message saying

    cannot find win.com unable to load windows....

    so i dont know.

  6. #6
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    292
    That's wierd, did you change anything else in the autoexec.bat file?
    "People who think they know everything are a great annoyance to those of us who do."

  7. #7
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    When setting the PATH variable, use:

    SET PATH=%PATH%;C:\JDK_12\BIN

    That way you won't wipe out the default.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

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