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
Create a folder named com under Java folder and put the HelloWorld.java into com folder. Then run again javac and java.
com
HelloWorld.java
javac
java