Results 1 to 4 of 4

Thread: how to compile java program

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2002
    Location
    faridabad
    Posts
    101

    how to compile java program

    plz tell me how we compile java program
    ishikha

  2. #2
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    You have to first navigate to C:\jdk\1.3 to run the compiler and interpreter unless you set it to be otherwise.

    To compile from DOS -> C:\jdk1.3\bin> javac C:\YourDirectory\App.java

    To run -> C:\jdk1.3\bin> java -classpath C:\YourDirectory; App

    If you have the CLASSPATH variable set in the autoexec.bat then you can just omit the -classpath switch.

  3. #3
    Addicted Member Virtual24's Avatar
    Join Date
    May 2001
    Posts
    228
    Also, If you add this line 'c:\jdk1.3\bin;' to the 'path' line in your autoexe.bat file (located on the c: drive) then all you have to do is go to C: in the command prompt, and type autoexec. Then you can use your compiler program (javac) anywhere.
    To protect time is to protect everything...

  4. #4

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