I first tried to run my jar file by java -jar test2.jar and got the following error "Failure to load main class Manifest attribute from test2.jar"
after googling stack overflow i came up with a solution saying i needed a manefest file with the nsme of the starting class.
I tried the following
jar cfm app.jar man.txt Now nothing happens, after I type the line the curser just goes to the next line man file looks like Main-Class: cStart
my cstart looks like
public class cStart {
public static void main (String[] args) {
Scanner scanner = new Scanner(System.in);
cRiunTest test;
test=new cRiunTest();
test.run();
if (true)
return;
}
}