I tried many examples of code where i do basically
String[] IDs = java.util.TimeZone.getAvailableIDs();
and it doesn’t work.
I’ve also tried another frame of example code, i.e. this and it returns:
at sun.util.calendar.ZoneInfoFile.getZoneIDs(ZoneInfoFile.java:785)
at sun.util.calendar.ZoneInfo.getAvailableIDs(ZoneInfo.java:560)
at java.util.TimeZone.getAvailableIDs(TimeZone.java:508)
at TimeZoneDemo.main(uu.java:6)
I tried also to reinstall the JRE and JDK, but the error persists. So what’s the point?
When I try to do String[] eg = {"one","two"}; it works.
You’ll find the same problem here:
http://www.eclipse.org/forums/index.php/m/532341/
https://jira.atlassian.com/browse/FE-2662
https://bugs.java.com/bugdatabase/view_bug?bug_id=6529213
SUGGESTION:
Download and run the latest tzupdater tool, and see if it resolves the problem: