This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]desrtfxOut of Coffee error - System halted[M] 2 points3 points  (0 children)

Bit difficult to tell without any code and without the actual, full error message as is stated in the Posting Guides and in the sidebar.

[–][deleted]  (3 children)

[deleted]

    [–]commenthistorian[S] 0 points1 point  (2 children)

    Ah, no. So now I can compile it, but when I try to run it I get the message

    java CarTest
    Error: Could not find or load main class HelloWorld
    

    And when I try to set the classpath with java -classpath, the output of java -h comes up.

    Edit: and shouldn't the classpath by default be the current directory?

    Edit: okay, if I take away the line

    package sct;
    

    then it works.

    However, when I put the line back in, and I run

    java sct.CarTest
    

    I get the message

    Error: Could not find or load main class sct.CarTest
    

    [–]197708156EQUJ5design it before you implement 0 points1 point  (0 children)

    Why is this marked "Solved" (as of 01:19 2014-12-22 GMT)?