Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    33
    Views
    3,020

    [SOLVED] Re: running java files in the cmd.exe

    I am glad you now have it working.
  2. Replies
    33
    Views
    3,020

    [SOLVED] Re: running java files in the cmd.exe

    It has nothing to do with the directory. Edit the file and save it as ANSI
  3. Replies
    33
    Views
    3,020

    [SOLVED] Re: running java files in the cmd.exe

    That shows the MyClass.java file was found by the javac command. Now you need to change the source file to a proper text file.
  4. Replies
    33
    Views
    3,020

    [SOLVED] Re: running java files in the cmd.exe

    Where is the MyClass.java file? I do not see it listed in the HP folder. It needs to be in the folder where the javac.exe program is being executed.
    This line from your console:
    shows that the...
  5. Replies
    33
    Views
    3,020

    [SOLVED] Re: running java files in the cmd.exe

    Where is the file MyClass.java located?
    The javac command was looking in the C:\Users\HP folder for that file.

    You need to change directories to be in the same folder that contains the...
  6. Replies
    33
    Views
    3,020

    [SOLVED] Re: running java files in the cmd.exe

    It looks like the MyClass.java file has been saved as Unicode not text. Edit the file and save it as text.
  7. Replies
    33
    Views
    3,020

    [SOLVED] Re: running java files in the cmd.exe

    It is possible to have multiple JDKs and JREs on your PC. The issue would be that the PATH will point to only a bin folder for each program. When wanting to use a program that is not pointed to by...
  8. Replies
    33
    Views
    3,020

    [SOLVED] Re: running java files in the cmd.exe

    Go to the Oracle site and download a JDK from there.
  9. Replies
    33
    Views
    3,020

    [SOLVED] Re: running java files in the cmd.exe

    Java(TM) SE Runtime Environment is the jre
  10. Replies
    33
    Views
    3,020

    [SOLVED] Re: running java files in the cmd.exe

    Here is The path to my javac.exe file:
    C:\Program Files\Java\jdk1.8.0_60\bin\javac.exe

    The JDK programs are in a folder with jdk at the start of the folder name.

    If the OS does not find the...
  11. Replies
    33
    Views
    3,020

    [SOLVED] Re: running java files in the cmd.exe

    Please copy the full contents of the command prompt window and paste it here so we can see the command that was entered and the response.
  12. Replies
    33
    Views
    3,020

    [SOLVED] Re: running java files in the cmd.exe

    My commandline refers to a file on my PC. The path would probably be different on your PC. You need to use the path from your PC

    You need to know where files are located on your PC
    and how the...
  13. Replies
    33
    Views
    3,020

    [SOLVED] Re: running java files in the cmd.exe

    The command line I posted could be used in any command prompt window. The full path to the javac.exe file is given which allows the OS to find the javac.exe file and start it executing with the rest...
  14. Replies
    33
    Views
    3,020

    [SOLVED] Re: running java files in the cmd.exe

    One way is to use the full path the the javac.exe file so the OS can find it. For example, here is a commandline I use:
    C:\Program Files\Java\jdk1.8.0_60\bin\javac.exe -cp . -Xlint -Xdiags:verbose...
Results 1 to 14 of 14