User Profile

Collapse

Profile Sidebar

Collapse
Daveyyy
Daveyyy
Last Activity: Sep 12 '07, 07:39 PM
Joined: Sep 11 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Daveyyy
    replied to Unknown compiler error with Java.
    in Java
    Ok, so problem solved.

    Apparently when I run the program i.e. java -cp . Welcome

    I need to actually use Welcome.class or it automatically trys to run the .java file. This is odd to me because noone else is doing this. But.. if I simply use Welcome.class it runs just fine.

    I appreciate all the help received.

    Dave
    See more | Go to post

    Leave a comment:


  • Daveyyy
    replied to Unknown compiler error with Java.
    in Java
    Well running it that way the error doesn't pop up instantly. It idles for a few seconds, then pops up.

    The way I was running(which is how I am instructed) is:

    java Welcome

    java -cp . Welcome gives me the same error..

    Some guy has mentioned that apparently the command line is attempting to run the .java file instead of the .class file? Does that sound right?
    See more | Go to post

    Leave a comment:


  • Daveyyy
    replied to Unknown compiler error with Java.
    in Java
    Hi again.

    I'm sorry that my descriptions on this forum are vague.. I am not used to help forum mannerisms what so ever. My apologies =)

    So I should mention once again that it compiles(I put compiler error, but it is actually running the program when the issue pops up)

    I am running JDK SE build 06 with Update 2.

    With Windows XP Pro SP2

    Everything that I can see.. and that my...
    See more | Go to post

    Leave a comment:


  • Daveyyy
    replied to Unknown compiler error with Java.
    in Java
    Sorry but I forgot I had changed that before I posted. That isn't the problem. With the class named "main" the same issue comes up.
    I compile using the command prompt, as this is the way instructed in class.
    i.e. "javac Welcome.java" would be the line I use.

    However another thing I had neglected to mention was that it in fact does compile. It is when I attempt to run the program that the issue arises....
    See more | Go to post

    Leave a comment:


  • Daveyyy
    started a topic Unknown compiler error with Java.
    in Java

    Unknown compiler error with Java.

    Hi!

    I am not new to java by any means. But there is an error code which I have had described as a corrupt installation.

    I am a student and everyone else in the class seems to have had no issues with their install.

    Here is the code:

    // Program Name: Welcome
    // Program Description: A simple program that prints a welcome statement to the console.
    // Author: ???
    // Date:...
    See more | Go to post
No activity results to display
Show More
Working...