r/javahelp • • Apr 02 '16

help?

I am new trying to learn java programming i started watching "thenew****" Tutorials, everything was fine untill i reached the second video where i reach the command prompt part to load my code. When i want to put ex " java Hello.java" It says Error: Could not find or load main class. DOnt even know if i have the right java or version anyway this is it . jre1.8.0_45 . Hope i get helped.

0 Upvotes

13 comments sorted by

View all comments

1

u/Philboyd_Studge Apr 02 '16

post your code

1

u/superAA_ Apr 03 '16

class apples{ public static void main(String args[]){ System.out.println("HelloHP"); } }