I keep getting errors when I make my .class part of a package and try to run it from cmd.
.class
package
Here\'s the code that works after using jav
jav
Run the program from the parent directory of the com directory.
java com.HelloWorld