This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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());
      }
}



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]