• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jdbc mysql problem

 
Marco Martinez
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys
i just used the connector/j of mysql for a driver. The driver loads and connects perfectly. But as i run my application, it return this error:
Exception in thread "main" java.util.MissingResourceException: Cant find bundle for base name SelectResource, locale en_US
at java.util.ResourceBundle.throwMissing Exception(ResourceBundle.java:804)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:773)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:511)
at Select.main(Select.java:10)
the error it says points to this line in Select.java in my main method:
ResourceBundle bundle = ResourceBundle.getBundle("SelectResource");
hope you could enlighten me with this guys. Thanks.
 
Chris Hall
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This doesn't sound like a jdbc or mysql problem at all. From what you describe, I would say your code is using a property file name 'SelectResource.properties' which much be put on the classpath. This should solve your problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic