Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with Locale.getISOCountries()  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I'm trying to run this code in order to see how Locale.getISOCountries() works:



When I run it, I get:


I've printed System.out.println(countries.length); and it's 0.

That's not what I expected...

What might be the problem?

I'm working on Ubuntu 8.10 using:


Thanks in advance.

Best regards,
M
 
Sheriff
Posts: 23510
47
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're using GNU Java? It's well-known for being incomplete. Try downloading a standard Java implementation from Oracle instead.
 
Marshal
Posts: 59124
180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to the Ranch
 
Manuel Rivero
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Yes, I was using Gnu Java. I installed the last version of the JDK from Sun/Oracle and now works fine.

Thank you very much for the advise and the welcoming.

Best regards,
M
 
BWA HA HA HA HA HA HA! Tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!