Lists: | pljava-dev |
---|
From: | rossel at peranto(dot)de (Andreas Rossel) |
---|---|
To: | |
Subject: | [Pljava-dev] User defined Function |
Date: | 2008-02-14 12:07:21 |
Message-ID: | 001001c86f02e9ca70$a5c8a8c0@perantoarr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pljava-dev |
Hi again,
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?
Regards,
Andreas
From: | books at ejurka(dot)com (Kris Jurka) |
---|---|
To: | |
Subject: | [Pljava-dev] User defined Function |
Date: | 2008-02-15 23:58:39 |
Message-ID: | Pine.BSO.4.64.0802151851520.15289@leary.csoft.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pljava-dev |
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.
Kris Jurka
From: | rossel at peranto(dot)de (Andreas Rossel) |
---|---|
To: | |
Subject: | [Pljava-dev] User defined Function |
Date: | 2008-02-18 11:48:11 |
Message-ID: | 002c01c872240ff110$a5c8a8c0@perantoarr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pljava-dev |
:~\-----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