classpath, .jar, and import statements
I am trying to figure out how to take my .class files, put them in a .jar file, and then
import the package into a .java file.
So far, I have been able to create the .jar file, but I am seriously stuck now.
My directory looks like this:
According to info here:
Setting the class path
Classpath (Java) - Wikipedia, the free encyclopedia
I should be able to run the HelloWorld file from the command prompt . . .
however here is all I get:
I am getting nothing but the same message, no matter what I do,
ad infinitum . . . Error: Could not find or load main class apk.pkg.HelloWorld
As you can see in the command prompt image, >java HelloWorld works fine and prints out "This is a test".
Where do I go from here???
Windows 7, Java SE Runtime Environment 1.7.0_25 64-bit.
Re: classpath, .jar, and import statements
Post the contents of the screen's here instead of images. The Find/Search commands and the Select and Copy command don't work with images.
On windows: To copy the contents of the command prompt window:
Click on Icon in upper left corner
Select 'Select All' - The selection will show
Click in upper left again
Select Edit and click 'Copy'