Hi Tobias, On Fri, Feb 08, 2008 at 09:34:06AM +0100, Tobias Krais wrote: > > ------------------------- > > Main-Class: com.sun.star.lib.loader.Loader > > > > Name: com/sun/star/lib/loader/Locader.class > > Application-Class: nl.reeven.van.test.ooo.MyOOoBootstrapper > > > > Application-Name: nl/reeven/van/test/ooo/MyOOoBootstrapper.class > > > > ------------------------- > > The error message disappears when I remove the blank lines. Can you tell me > > how > > you create the jar file? > > Sure. I use Eclipse. I created manually the manifest and use the Eclipse > jar packager. Thats it and the output works. > > Your mail does not tell me if you can successfully create jars. If not, > try using my manifest file, just changing the Application-Class.
Well, I use NetBeans 6.0 and it's kinda hard to change the default manifest file that is being generated by NetBeans. So what I have done so far is to let NetBeans create the jar, then unpack it, copy over all the com and win classes from the SDK, put in a custom manifest file and recreate the jar. This all works fine when I don't have blank lines in the custom manifest file. Whenever I put blank lines in the manifest file and try to create the jar, I get the error message I sent yesterday: java.io.IOException: invalid manifest format In this case, no jar is created. If I create a jar file without blank lines in the manifest file, the creation of the jar is successful but I get the runtime error Exception in thread "main" java.lang.IllegalArgumentException: The name of the class to be loaded must be either specified in the Main-Class attribute of the com/sun/star/lib/loader/Loader.class entry of the manifest file or as a command line argument. and my app won't run. I am using OOo 2.3.1 with JDK 1.6.0 on Debian Lenny (testing). Greets, Wouter -- People: "If she weighs the same as a Duck, she's made of wood!" Sir Bedevere: "And therefore...?" --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
