Click to See Complete Forum and Search --> : Open external application


inmar32
January 13th, 2010, 02:57 PM
hey

i am tring to open an external application with this line :

Runtime.getRuntime().exec("rundll32 SHELL32.DLL,ShellExec_RunDLL \""+ "c:\\x.doc"+"\"");

in windows xp the application "word" opens , but in windows 7 its not opens.

anyone knows how to open externals in windows 7 ?


thank you

inmar

ProgramThis
January 13th, 2010, 03:09 PM
Most likely when you upgraded to windows 7 you got the 64 bit version, whereas your xp is still running the 32 bit version. The rundll32 and SHELL32.DLL probably either do not exist in the version of windows 7 that you have (probably unlikely, but), or their locations are not on the classpath, the classpath probably has the reference to the newer 64 bit versions.