This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Mac OS and the fly likes XMLConfiguration in window and mac Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "XMLConfiguration in window and mac" Watch "XMLConfiguration in window and mac" New topic
Author

XMLConfiguration in window and mac

bryan lim
Ranch Hand

Joined: Dec 26, 2008
Posts: 140

hi all,



i shifted my java code from window to mac. and the below statement gives error when it is in mac. does anybody know what should be the correct path when put in a mac os?

the error msg is java.lang.NoClassDefFoundError.

regards
bryan
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60046
    
  65

Your post is remarkably lacking in details. For example, what library is XMLConfiguration defined within? It's not part of standard Java.

Please read this and take it to heart.

The most likely cause of these types of errors is failing to put the jar file in the classpath correctly.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
bryan lim
Ranch Hand

Joined: Dec 26, 2008
Posts: 140
sorry for the confusion. i refers to XMLConfiguration from apache common configuration here


could it be that the "configuration.xml" should be written differently in mac?

thanks!!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60046
    
  65

bryan lim wrote:could it be that the "configuration.xml" should be written differently in mac?

How could that affect a Class Not Found exception?

Where did you put the jar file?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XMLConfiguration in window and mac
 
Similar Threads
Mac Error _initWithWindowNumber
Commons ConfigurationException
user data/constant stored in xml file
Unreported Exeception Error
Need an understanding why I am getting "incompatiable types"