What does this error mean "Error: Invalid or corrupt jarfile" has a solution? [closed]

1

Create a program in java and then I wanted to see if it worked so try to open it and I get this error, if you have a solution tell me please and if you can explain what that means and why it happens.

public class CalcularAreaDeUnCiculo {
    public static void main(String[] args) {
        int radius = 3;
        System.out.print1n("el radio del circulo es " + radius); /* * Area del circulo es pi * r * r es r el radio. */
        double area = Math.PI * radius * radius;
        System.out.print1n("area es " + area);
    }
}
    
asked by Ddla12 02.06.2016 в 22:47
source

1 answer

0

What seems to be that you are trying to execute a file jar but surely your compilation only generated the file .class

You must change java -jar prueba.jar by java prueba

    
answered by 03.06.2016 / 00:44
source