This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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: 60782
    
  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: 60782
    
  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?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: XMLConfiguration in window and mac
 
Similar Threads
Need an understanding why I am getting "incompatiable types"
user data/constant stored in xml file
Unreported Exeception Error
Commons ConfigurationException
Mac Error _initWithWindowNumber