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
Try to use absolute directory or put your HelloWorld.class into ..\last_directory\com
1. java -cp .......\last_directory com.HelloWorld 2. java -cp .......\last_directory HelloWorld(with created com)