Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: Why javac does not recognise this and cannot run as an app?

  1. #1
    Junior Member
    Join Date
    Jan 2018
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Why javac does not recognise this and cannot run as an app?

    Maybe di I save at wrong place? I saved to C driver,within Java folder(java stuffs are found there) in a folder named Misc.
    Attached Images Attached Images

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    22,464
    Thanks
    53
    Thanked 2,405 Times in 2,358 Posts

    Default Re: Why javac does not recognise this and cannot run as an app?

    Sorry, I can't read the language in the image. Can you copy the contents, translate it to English and post it here?

    To copy the contents of the command prompt window:
    Click on Icon in upper left corner
    Select Edit
    Select 'Select All' - The selection will show
    Click in upper left again
    Select Edit and click 'Copy'

    Translate and Paste here.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Jan 2018
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Why javac does not recognise this and cannot run as an app?

    Microsoft Windows [verziószám: 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. Minden jog fenntartva.

    C:\Users\Felhasznalo>cd C:\Java\Misc

    C:\Java\Misc>javac HelloWorld.java
    A megadott nevet (javac) a rendszer nem ismeri fel belső vagy külső
    parancsként, futtatható programként vagy kötegfájlként.


    Translation:
    Microsoft Windows [version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    C:\Users\User>cd C:\Java\Misc

    C:\Java\Misc>javac HelloWorld.java
    (javac) is not recognised as an internal or external command,operable program or hatch file.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    22,464
    Thanks
    53
    Thanked 2,405 Times in 2,358 Posts

    Default Re: Why javac does not recognise this and cannot run as an app?

    (javac) is not recognised as an internal or external command,operable program or hatch file.
    The OS can not find the javac.exe file on the PATH environment variable.
    Make sure the path to the bin folder holding the javac.exe file is on the PATH variable.

    Here's a link for older versions of Windows: https://docs.oracle.com/javase/tutor...ent/paths.html
    If you don't understand my answer, don't ignore it, ask a question.

  5. The Following User Says Thank You to Norm For This Useful Post:

    zsinyi2 (January 6th, 2018)

  6. #5
    Junior Member
    Join Date
    Jan 2018
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Why javac does not recognise this and cannot run as an app?

    Quote Originally Posted by Norm View Post
    The OS can not find the javac.exe file on the PATH environment variable.
    Make sure the path to the bin folder holding the javac.exe file is on the PATH variable.

    Here's a link for older versions of Windows: https://docs.oracle.com/javase/tutor...ent/paths.html
    Thanks a lot,it succeeded.

Similar Threads

  1. Like to convert old dos based app to run in WIN7
    By kpohlman in forum What's Wrong With My Code?
    Replies: 6
    Last Post: August 28th, 2013, 12:59 PM
  2. Replies: 0
    Last Post: June 29th, 2013, 10:36 PM
  3. i want run app as windows service.
    By skuskusas in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 5th, 2012, 04:03 AM
  4. [SOLVED] can't run javac directly from command prompt
    By epezhman in forum Java IDEs
    Replies: 7
    Last Post: January 12th, 2011, 07:38 PM
  5. How do i run this Accounting console app?
    By mirzahat in forum AWT / Java Swing
    Replies: 2
    Last Post: November 16th, 2010, 12:22 AM

Tags for this Thread