3 public class ResourceBundleTest
5 public static void main(String args
[])
8 ResourceBundle messageRB
=
9 ResourceBundle
.getBundle("sun.tools.javac.resources.javac");
11 String bundle
= (String
)messageRB
.getObject("main.usage");
13 throw new Exception("javac.main.usage resource is null");
15 System
.out
.println("PASSED: Resource javac.main.usage existed");
16 } catch (Exception e
) {
17 System
.out
.println("FAILED: " + e
);