I need to jar a package application Here is what I have: 1) directory structure of c:\dmsi\campaignbuilder\<here are the class files> 2) my package name is: dmsi.campaignbuilder 3) I have subdirectories of: c:\dmsi\campaignbuilder\images\<image files are here> 4) I have created a text file name startclass.txt with the following: Main-Class: CampaignBuilder How do I create the jar for this application, from which directory do I create it, and how do I run it. Any help would be great. thanks, Dean
I still get an error trying to run it. I get "Exception in thread "Main" java.lang.ClassFormatError: dmsi/campaignbuilder/CampaignBuilder$1 (Bad magic number)............and whole bunch of classloader errors. Any ideas, what I might have done wrong? Thanks, Dean
I run it by having all of the compile class files in the following directory: C:\dmsi\campaignbuilder\ The exact command I use in for c:\ I type c:\jdk1.3.1_02\bin\java dmsi.campaignbuilder.CampaignBuilder To run the jar file, I have been typing c:\jdk1.3.1_02\bin\java -jar dmsi.jar The jar file exists and looks good, I am running it from the c: Any ideas. Thanks,
ok, I did the above and got rid of the magic number error, I had muliple jar files. Now I am getting the error: java.lang.NoClassDefFoundError: dmsi.campaignbuilder.CampaignBuilder Any ideas anyone? Thanks, Dean