Results 1 to 5 of 5

Thread: [Resolved] Compiling java applications!

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    89

    Talking [Resolved] Compiling java applications!

    Hey, i have (java se 5 update 8 with netbeans 5) installed in my machine, when i try to compile java applications from the command-line by the command (javac), a message appears ('javac' is not recognized as an internal or external command, operable program or batch file.) where's the error exactly?
    Last edited by Aymun; Aug 17th, 2006 at 06:36 PM.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Compiling java applications!

    Your PATH variable is not set up correctly. Search this forum for PATH.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    Wink Re: Compiling java applications!

    Quote Originally Posted by Aymun
    Hey, i have (java se 5 update 8 with netbeans 5) installed in my machine, when i try to compile java applications from the command-line by the command (javac), a message appears ('javac' is not recognized as an internal or external command, operable program or batch file.) where's the error exactly?
    Do it in this way,

    First save your file any location that you wish to work on. Say it is on this path:

    D:/java/test.java

    Your file name is " test.java "

    Then jump to the java folder on command-line

    D:/java/>

    Then set the classpath as follows,

    D:/java/>path=c:/jdk1.5/bin/

    In this case " C:/jdk1.5/bin/ " is the java instalation path. You should set it according to your setup, that is your version and installation folder etc.

    Then compile it using " javac " command

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    89

    Re: Compiling java applications!

    Thank's
    Last edited by Aymun; Aug 17th, 2006 at 06:34 PM.

  5. #5
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    Wink Re: Compiling java applications!

    Quote Originally Posted by Aymun
    Thank's

    You are wellcome,

    Wish you all the best.

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