This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
problems with exec("rundll32.exe shell32.dll...")
- From: Andrew dot Ferguson at arm dot com
- To: <java at gcc dot gnu dot org>
- Date: Tue, 20 May 2003 12:36:15 +0100
- Subject: problems with exec("rundll32.exe shell32.dll...")
hi,
I'm having trouble getting the code below to execute once compiled with
gcj (~3.3 I think). Running under straight java works fine, but the
produced .exe says
Error in shell32.dll
Missing entry: "ShellExec_RunDLL"
any help would be really appreciated,
thanks,
asjf
import java.io.*;
public class GCJTest {
public static void main(String [] arg) throws Exception {
Runtime.getRuntime().exec("rundll32.exe shell32.dll
ShellExec_RunDLL "+new File(arg[0]).getAbsolutePath());
}
}