tags:

views:

1951

answers:

1

hi I am trying to do

java -jar jaxb-api-1.5.jar

I am getting the following error :

Failed to load Main-Class manifest attribute from jaxb-api-1.5.jar

I am running it in jdk1.4 env.

Why this is happening and how can it be recitified ?

What i am trying to do is generate the classes from xsd using jaxb xjc command in jdk1.4 env. If there is other way then please let me know Any pointer will help Thank

+1  A: 

I downloaded this jaxb-api-1.5.jar and its MANIFEST.MF does not contain any Main-Class attribute in deed. I think this jar is not intended to be executed via java -jar call.

There are some resouces on the JAXB site. You can download the latest stable version from here. It contains shell scripts / batch programs to do what you need.

kd304
can you please tell me which version is supported for jdk1.4 .Thanks
harshit