mykelalvis / pojosr

Automatically exported from code.google.com/p/pojosr
0 stars 0 forks source link

Add main-class to manifest.mf #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If you run java -jar pojosr.jar then it fails to find the main class, despite 
this being a known implementation. You can mix java -jar and -cp to add 
additional bundles if you want.

Add:

Main-Class: de.kalpatec.pojosr.framework.PojoSR

to the manifest.mf in order to achieve this

Original issue reported on code.google.com by alex.ble...@gmail.com on 4 Apr 2011 at 6:40

GoogleCodeExporter commented 9 years ago
I didn't know that one can mix java -jar and -cp. I was under the impression 
one can't (hence, didn't add the Main-Class).

I just did a quick test on my mac (java 1.5 and 1.6) and it doesn't seem to be 
the case. I added the Main-Class and start with -jar but it doesn't add 
anything i put on the classpath with -cp. 

I'll add a Main-Class right now regardless but if you know how to make it work 
so that i can add bundles with -cp that would be cool. 

Thanks.

Original comment by karlpauls on 4 Apr 2011 at 10:32

GoogleCodeExporter commented 9 years ago
Done. Please close if it works for you.

Original comment by karlpauls on 4 Apr 2011 at 10:35