Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Thread: Run Time Error

    by Norm
    Replies
    22
    Views
    2,985

    Re: Run Time Error

    I have no idea how to get the error message you were getting.
  2. Thread: Run Time Error

    by Norm
    Replies
    22
    Views
    2,985

    Re: Run Time Error

    You are repeating yourself. I asked that you do a dir command and a java -version command when you do the other commands.

    Can you do those extra commands and post the output here?
    If you don't...
  3. Thread: Run Time Error

    by Norm
    Replies
    22
    Views
    2,985

    Re: Run Time Error

    If you don't run the commands I asked for and post the contents of the command prompt window when you are done, I can't help you. I'm here and you are there with your PC. The only way I can see...
  4. Thread: Run Time Error

    by Norm
    Replies
    22
    Views
    2,985

    Re: Run Time Error

    Where is the dir command output?
    Also enter: java -version

    Also show the contents of the Prg1.java file
  5. Thread: Run Time Error

    by Norm
    Replies
    22
    Views
    2,985

    Re: Run Time Error

    Can you post what is shown in a command prompt for the dir command and the java command.

    I can't find a way to generate the error message you show when using the java command:
    Error: Could not...
  6. Thread: Run Time Error

    by Norm
    Replies
    22
    Views
    2,985

    Re: Run Time Error

    The OS is finding the javac and the java commands. Otherwise there'd be error messages.
    The javac command did not give an error. What .class files are there in the Core Java codes folder?
    Do a dir...
  7. Thread: Run Time Error

    by Norm
    Replies
    22
    Views
    2,985

    Re: Run Time Error

    Where is the class Program1?
    The code you posted has a class named: Prg1

    You should use that name when executing the java command: java Prg1
  8. Thread: Run Time Error

    by Norm
    Replies
    22
    Views
    2,985

    Re: Run Time Error

    Does the program have a package statement?
    If so you must consider it when using the java command.
    For simple program testing, comment out the package statement and try again.
Results 1 to 8 of 8