Hi,

I am submitting a JAR file for the TEST question, and getting a compilation error -

2
/bin/bash: line 5: mkdir: command not found
/bin/bash: line 6: META-INF/MANIFEST.MF: No such file or directory
/bin/bash: line 7: META-INF/MANIFEST.MF: No such file or directory
/bin/bash: line 8: META-INF/MANIFEST.MF: No such file or directory
	zip warning: name not matched: META-INF
zip error: Nothing to do! (try: zip -r tested.zip . -i META-INF)

jar tf Main.jar | grep META-INF/MANIFEST.MF

returns META-INF/MANIFEST.MF, so I don't understand the compilation error.

For reference, I have attached the JAR file I am trying to submit. Also, this is how I created it.

jar cfm Main.jar manifest Main.class

where the manifest file contains

Main-Class: Main

.

Edit: It seems I cannot attach the JAR file. This is the JAVA code I used for creating the JAR.
[bbone=java,531]import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
public static void main (String[] args) throws Exception {
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
String s;
while (!(s=r.readLine()).startsWith("42")) System.out.println(s);
}
}
[/bbone]

Suggested Topics

Want to read more? Browse other topics in JAVA based languages or view latest topics.