aspose file tools*
The moose likes Beginning Java and the fly likes Problem with Locale.getISOCountries() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Problem with Locale.getISOCountries()" Watch "Problem with Locale.getISOCountries()" New topic
Author

Problem with Locale.getISOCountries()

Manuel Rivero
Greenhorn

Joined: Mar 16, 2009
Posts: 2
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
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

You're using GNU Java? It's well-known for being incomplete. Try downloading a standard Java implementation from Oracle instead.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38353
    
  23
And welcome to the Ranch
Manuel Rivero
Greenhorn

Joined: Mar 16, 2009
Posts: 2
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with Locale.getISOCountries()