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
Suppose you did cd C:/projects and HelloWorld.class is in C:/projects/com, then just type:
cd C:/projects
HelloWorld.class
C:/projects/com
java com.HelloWorld