I've just created a jar file. Part of my app is to send an email. I do this by using the following:
String cmd = new String;
cmd = "cmd.exe" ;
cmd = "/C" ;
cmd = "mail_args.pl";
cmd = strToEmail;
cmd = strFromEmail;
cmd = strSubject;
cmd = strEmailBody;
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec(cmd);
This is fine when I run the app not as a jar file but when I do I get the following error:
'mail_args.pl' is not recognized as an internal or external command, operable program or batch file.
mail_args.pl is in the jar file.
Also in the app I have icons on the Title bar of the JFrame/JInternalFrames but when running the jar they dont
Anyone got any ideas?
Anyone have any ideas?