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 Java in General and the fly likes ResourceBundle 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 » Java » Java in General
Bookmark "ResourceBundle" Watch "ResourceBundle" New topic
Author

ResourceBundle

Costa Lamona
Greenhorn

Joined: Sep 17, 2006
Posts: 29
Hi

I used some code to test ResourceBundle on my machine, it works fine. but when My patenter used the same code on his machine, it did not work...

I think this might be common JDK version problem, how to fix this?



Thanks
Kuladip Yadav
Ranch Hand

Joined: Jul 30, 2008
Posts: 162

Will you pz explain what happened with that code on your partner machine ?
Is it throwing exception or what ?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19656
    
  18

Kuldeep,

will you please UseRealWords?

Thanks.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Costa Lamona
Greenhorn

Joined: Sep 17, 2006
Posts: 29
Hi

I totally forgot to tell about that, because I asked this question after the evidence a week, Sorry

Exception in thread "main" java.util.MissingResourceException: Can't find bundle for base name properites.myprop, locale en_US

Is there any chances that the file is exist but can't be read, because we are very sure it is the same file on my machine and it is the correct path on his machine.

Thanks
Kuladip Yadav
Ranch Hand

Joined: Jul 30, 2008
Posts: 162

Can you check bundle name ?

your code use apctool.resources and
Exceptions points to properites.myprop








Exception in thread "main" java.util.MissingResourceException: Can't find bundle for base name properites.myprop, locale en_US
Kuladip Yadav
Ranch Hand

Joined: Jul 30, 2008
Posts: 162

Originally posted by Rob Prime:
Kuldeep,

will you please UseRealWords?

Thanks.



I am sorry about that.
Thank you for your suggestion.
In future I will take care of it.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: ResourceBundle
 
Similar Threads
Including property file in the jar
ResourceBundle use
Can I use literals for the captions inside the source?
Resource Bundle 3 values property file
how can i read from properties every thing start with foo.* ?