MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
videophool
Post subject: JAXB/JAXBBuilder in Eclipse  PostPosted: Aug 19, 2011 - 09:51 PM



Joined: Aug 19, 2011
Posts: 4

I am trying to get JAXBBuIlder working in MyEclipse. My goal is to have a project with XML schemas(s) that will auto build the JAXB java classes anytime a schema is modified. The general instructions for installing JAXBBuilder say to copy the files form zip into <EclipseDir>/plugins. First, there was no 'plugins' folder' in my Eclipse directory, so I created one, and then copied the files. However, JAXBBuilder does not seem to work as it should. Any advice, or installation instructions would be greatly appreciated.

I am using:
MyEclipse Enterprise Workbench
Version: 8.5
Build id: 8.5-20100319
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Aug 22, 2011 - 03:59 AM



Joined: Nov 11, 2010
Posts: 2191

videophool ,

You need to copy the folder to C:\Program Files\Genuitec\MyEclipse\dropins and restart MyEclipse.
Please refer to
http://www.myeclipseide.com/PNphpBB2-viewtopic-t-24247-highlight-jaxb.html

Also please check if the version of JAXB plugin is compatible with the base Eclipse 3.5.

Let me know how this works for you.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
videophool
Post subject: Installed but not working  PostPosted: Aug 22, 2011 - 09:23 PM



Joined: Aug 19, 2011
Posts: 4

I am now seeing the error:

Description Resource Path Location Type
java.io.IOException: Cannot run program "C:\tools\jaxb-ri-20110601\bin\xjc.bat": CreateProcess error=193, %1 is not a valid Win32 application schema /ETSchemas Unknown JAXB Generation Problem

The jaxbpath is
C:\tools\jaxb-ri-20110601\bin\xjc.bat
 
 View user's profile Send private message  
Reply with quote Back to top
videophool
Post subject: Hmmm. Seems to work now  PostPosted: Aug 22, 2011 - 11:51 PM



Joined: Aug 19, 2011
Posts: 4

I Created a new project, and it seems to work properly. Upon further investigation, I see that the project defaults to 'Castor' as the Active Code Generator. By changing to JAXB 2.0, I get the error shown above. Castor seems to work OK, and so I will move on. That said, I appreciate any feedback that can help me to fully understand JAXB.
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Aug 23, 2011 - 06:32 AM



Joined: Nov 11, 2010
Posts: 2191

videophool ,

Glad that it is working.

Take a look at this tutorial for complete understanding of JAXB :
http://jaxb.java.net/tutorial/

I suggest you cross post JAXB specific issues to JAXB forums for better support.

Hope this helps.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
videophool
Post subject: All problems solved  PostPosted: Aug 23, 2011 - 06:36 AM



Joined: Aug 19, 2011
Posts: 4

I also got the JAXB working. The jaxb install includes a tool xjc.bat which generates classes from xsd, and I was pointing to this file. However, Eclipse needs to be pointed to xjc.exe which is in the jdk/bin folder. Everything is now working perfectly in Eclipse, and I am working on the Ant/Ivy side. Thanks.
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Aug 23, 2011 - 09:15 AM



Joined: Nov 11, 2010
Posts: 2191

videophool ,

Glad that it is working.
Do let us know if you have any other issues.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits