From: rossel at peranto.de (Andreas Rossel) Date: Mon, 18 Feb 2008 12:48:11 +0100 Subject: [Pljava-dev] User defined Function In-Reply-To: References: <001001c86f02$27e9ca70$a5c8a8c0@perantoarr> Message-ID: <002c01c87224$250ff110$a5c8a8c0@perantoarr> :~\-----Urspr?ngliche Nachricht----- :~\Von: Kris Jurka [mailto:books at ejurka.com] :~\Gesendet: Samstag, 16. Februar 2008 00:59 :~\ :~\On Thu, 14 Feb 2008, Andreas Rossel wrote: :~\ :~\> I found a workaround to my problem. If I put my method in a second class :~\> beside the class with the main-routine it works! :D :~\> :~\> Is this the way it should be? :~\> :~\ :~\No, that's not right. Perhaps your jar file isn't being created :~\correctly? Your original description stated that you needed to add a main :~\method to be able to create the jar in the first place which sounds :~\suspicious. Perhaps verifying it with "jar -tf myjarfile.jar" and :~\checking to see that everything is there would tell us something. :~\ You found the prime suspect! I tried to create the JAR without a main() by deleting the line: Main-Class: test out of my JAR-manifest. But doing so produced an error. Now I just deleted the classname and it works. Thanks a lot. Andreas