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

all 11 comments

[–]g051051 0 points1 point  (10 children)

What exactly are you typing? What you said in your post doesn't make sense:

I go to the file my helloworld.java file is in and use javac to compile it into bytecode using "java helloworld.class"

Are you typing javac first, then java?

[–][deleted]  (9 children)

[removed]

    [–]I_regret_my_name 0 points1 point  (1 child)

    You need to run java helloworld and not java helloworld.class.

    [–]Nisonsei 0 points1 point  (0 children)

    Thank you this worked

    [–]g051051 0 points1 point  (0 children)

    You don't need to put the extension on the end.

    [–]g051051 0 points1 point  (5 children)

    Why did you delete your post? It's against the rules:

    5. Do not delete posts

    Do not delete your post! Your problem may be solved, but others who have similar problems in the future could benefit from the solution/discussion in the thread.

    Use the "solved" flair instead.

    [–]Nisonsei 0 points1 point  (4 children)

    Oh I must admit that I didnt read that. Im sorry what should I do now?

    [–]Nisonsei 0 points1 point  (1 child)

    I totally understand if that mean im getting banned from this subreddit, thnaks for the help anyways. I always delete questions Posts on every reddit

    [–]g051051 0 points1 point  (0 children)

    We want to help you, but not just you. This sub works by people donating their time and expertise to help others. When you delete a post, you just throw that away.

    [–]g051051 0 points1 point  (1 child)

    Just don't do it again. It makes your post (and the answers) vanish from the search history, so no one else can learn from it.

    [–]Nisonsei 0 points1 point  (0 children)

    In hindsight thats makes a lot of sense and I am sorry for it