Skip to main content

Problem with BDJO Utility

1 reply [Last post]
darkmoon_uk
Offline
Joined: 2007-09-12

Hi,

I think this will be a simple question to answer for someone with the knowledge:
I am trying to run the BDJO utility on the example 00000.xml file provided with the cookbook. I compiled the utility to a jar with Eclipse, and ran it using the following command line:

java -jar bdjo.jar 00000.xml 00000.bdjo

I am getting the message:

Exception in thread "main" javax.xml.bind.JAXBException: "com.hdcookbook.tools.b
djo" doesnt contain ObjectFactory.class or jaxb.index
at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFact
ory.java:147)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:133)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:299)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)
at com.hdcookbook.tools.bdjo.BDJOReader.readXML(BDJOReader.java:122)
at com.hdcookbook.tools.bdjo.Converter.xmlToBDJO(Converter.java:118)
at com.hdcookbook.tools.bdjo.Converter.main(Converter.java:167)

I'm very grateful to anyone that can get me unstuck!

Thanks, Chris

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
A. Sundararajan

Hi,

What is the JDK version you are using? The output of "java -fullversion"
would be useful.

Thanks,
-Sundar

bd-j-dev@mobileandembedded.org wrote:
> Hi,
>
> I think this will be a simple question to answer for someone with the knowledge:
> I am trying to run the BDJO utility on the example 00000.xml file provided with the cookbook. I compiled the utility to a jar with Eclipse, and ran it using the following command line:
>
> [i]java -jar bdjo.jar 00000.xml 00000.bdjo[/i]
>
> I am getting the message:
>
> Exception in thread "main" javax.xml.bind.JAXBException: "com.hdcookbook.tools.b
> djo" doesnt contain ObjectFactory.class or jaxb.index
> at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFact
> ory.java:147)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:133)
> at javax.xml.bind.ContextFinder.find(ContextFinder.java:299)
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)
> at com.hdcookbook.tools.bdjo.BDJOReader.readXML(BDJOReader.java:122)
> at com.hdcookbook.tools.bdjo.Converter.xmlToBDJO(Converter.java:118)
> at com.hdcookbook.tools.bdjo.Converter.main(Converter.java:167)
>
> I'm very grateful to anyone that can get me unstuck!
>
> Thanks, Chris
> [Message sent by forum member 'darkmoon_uk' (darkmoon_uk)]
>
> http://forums.java.net/jive/thread.jspa?messageID=268957
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: bd-j-dev-unsubscribe@hdcookbook.dev.java.net
> For additional commands, e-mail: bd-j-dev-help@hdcookbook.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: bd-j-dev-unsubscribe@hdcookbook.dev.java.net
For additional commands, e-mail: bd-j-dev-help@hdcookbook.dev.java.net