• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to create JAXB Context from File System

 
Ranch Hand
Posts: 1252
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi I was writing an unmarshaller for JAXB, but for that first I need to create a JAXB Context.

Here is the sample code I am using

Now if I am trying to run this Main class from c:\temp\doc\testproject and my JAXB Objects are somewhere else, how can I create a JAXB Context for that packge.
If I am doing the same code at the same folder where JAXB objects are kept then it's working fine but with different folder it's not working.Please check at line 28 and 29.

Please let me know if you didn't understand the issue exactly.

Thanks
Ankur
 
Shaan Shar
Ranch Hand
Posts: 1252
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any update/insight on this issue!!!
reply
    Bookmark Topic Watch Topic
  • New Topic