This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills: The software developer's life manual and have John Sonmez on-line!
See this thread for details.
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XMLConfiguration in window and mac

 
bryan lim
Ranch Hand
Posts: 140
  • 0
  • 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: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • 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
  • 0
  • 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: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • 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