This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XMLConfiguration in window and mac

 
bryan lim
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
bryan lim
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic