I have two files in two folders, in a folder named tmp on my desktop: /tmp/packagea/ClassA.java and /tmp/packageb/ClassB.java.
When I compile:
$ javac package/ClassA.java packageb/ClassB.java
I get no errors but when I run:
$
java packageb.ClassB
I get "Error: Could not find or load main class package.ClassA"
When I look in the folders there are no class files, just the .java files
Anybody know why the .class files are not being created or if they are, where they might be? I've searched and nothing.
P.S. I'm new so I apologize if I did this wrong...