i tried to make a executable jar file.a program as follows
import java.io.*;
class studentmarks
{
String name;
double engmarks,phymarks,chemmarks;
double tot,avg;
public studentmarks(String s,double p,double e,double c)
{
name=s;
engmarks=e;
phymarks=p;
chemmarks=c;
}
void compute()
{
tot=engmarks+phymarks+chemmarks;
avg=tot/3;
}
void display()
{
System.out.println("nameis:"+name);
System.out.println("totalis:"+tot);
}
}
i saved it as marks.java file
then i compiled it into a class using command prompt
then i made a manifest file using command prompt main:marks
then i made a executable jar file using command prompt as follows
C:\mywork> jar cvfm marks.jar manifest.txt *.class
when i click on the jar file it does not open.i know something has terribly gone wrong
please can someone help me.i am just a begginer.
please.please
thank you