I created the manifes.mf file. which contains
my directory structure is:
suncertify>bin //has all classes
suncertify>code //has the source files
suncertify>manifest.mf // the manifest file
C:\dev>jar cmf suncertify/manifest.mf runme.jar suncertify*
when I run it I got class not found error.
C:\dev>java -jar runme.jar
Exception in thread "main" java.lang.NoClassDefFoundError: Runme
Runme.class is in the default package:
When you submit your assignment, each part (client and server) must be executable using a command of this exact form:
java -jar <path_and_filename> [<mode>]
I understand form that I must have an executable jar.
My instruction doesn't state anything about .class files, but how can I execute the jar without calss files? Also, how about stubs , I genereate the stubs using rmic compiler, and I leave in the bin directory.
I tried to add the full path of the main class file, and it didn't work.
I tried to add the class name in the manifest using:
and still didn't work.
It works only if I generate the jar file while I am in the bin directory, I don't know what else to do.