Results 1 to 5 of 5

Thread: installation of JDK-6 does not allow me to do javac from the command line

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2005
    Posts
    1,069

    installation of JDK-6 does not allow me to do javac from the command line

    Hello

    I installed jdk-6 ( Java SE Development Kit and NetBeans IDE Cobundle (JDK 6 / NB 5.5) Final Release) from the
    sun site

    onto my laptop. and tried to compile a java class using the following command line
    Javac Server.java

    i get the error message

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

    does not the installation of netbeans IDE 5.5 mean that i can using java at the command line?
    Last edited by vb_student; Dec 26th, 2006 at 05:53 PM.

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

    Re: installation of JDK-6 does not allow me to do javac from the command line

    Sure, but you probably need to configure PATH yourself. Search the forum, it has been asked often enough. The instructions are the same for 6 as for any other version.
    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

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2005
    Posts
    1,069

    Re: installation of JDK-6 does not allow me to do javac from the command line

    thansk for the reply

    i will configure the path, why doesn't the installation configure the path by itself?

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

    Re: installation of JDK-6 does not allow me to do javac from the command line

    Several reasons.
    1) The combined installation may not be meant to be used from the command line. After all, you've got the IDE, don't you?
    2) Messing with the PATH is problematic. You never know what is already in there? What if another JVM is already in there? Can you be sure the user wants you to override it?
    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.

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2005
    Posts
    1,069

    Re: installation of JDK-6 does not allow me to do javac from the command line

    makes sense

    thanks dude

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