CrazyEngineers
  • error:javac file not found

    Updated: Oct 26, 2024
    Views: 855
    hello people...
    i m stuck in a problem .can any1 tell me how to compile java programs in cmd prompt.
    m trying n i got an error like
    javac:file not found
    i just started learning java so plz help
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Anoop Kumar

    MemberMay 16, 2012

    Classpath not set..
    see this thread:
    #-Link-Snipped-#

    for immediate solution just do.
    C:{path to your program .java files}> set CLASSPATH=<Path to JDK BIN>
    Are you sure? This action cannot be undone.
    Cancel
  • bharathi shekar

    MemberMay 17, 2012

    thanks😀
    still same problem bro ...m getting same error😭
    Are you sure? This action cannot be undone.
    Cancel
  • nareshkumar6539

    MemberMay 17, 2012

    bharathi shekar
    thanks😀
    still same problem bro ...m getting same error😭
    in command prompt compile the program from current directory means where you save the java program from that directory you have to compile other wise it will give
    javac:file not found as an error
    Are you sure? This action cannot be undone.
    Cancel
  • sookie

    MemberMay 17, 2012

    @#-Link-Snipped-# You mainly get this error when the file name given in command prompt is not a .java file. Please check two things - correct path variables set in the system + the file type you are trying to compile. I am guessing it may be like <your file name>.java.txt
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register