Lines Matching refs:jarFile
49 static void runTest(File jarFile, String expectedErrorMessage) {
51 "-jar", jarFile.getAbsolutePath());
64 File jarFile = new File("missingmainentry.jar");
65 createJar("cvf", jarFile.getName(), ".");
66 runTest(jarFile, "no main manifest attribute");
71 File jarFile = new File("extensionmainentry.jar");
72 createJar("Foo.class", jarFile, new File("Foo"), (String[])null);
73 runTest(jarFile, "Error: Could not find or load main class");
78 File jarFile = new File("misspelledmainentry.jar");
79 createJar("FooMIS", jarFile, new File("Foo"), (String[])null);
80 runTest(jarFile, "Error: Could not find or load main class");
85 File jarFile = new File("misspelledMainAttribute.jar");
94 createJar("-cmf", manifestFile.getName(), jarFile.getName());
95 runTest(jarFile, "no main manifest attribute");