java - how can I run javaw in windows XP cmd? -



java - how can I run javaw in windows XP cmd? -

i made programme using java.

i export java project runnable jar file.

i tested in windows 7 32bit.

it runs perfectly.

however, when tested in windows xp 32bit(i'm not sure it's sp version. maybe sp2 or sp3)

it shows error message "cannot access c:\my.jar"

i did googling, , found that

windows 7 , xp have different function load javaw

however... don't know exact way run javaw in windows xp

how can run it?

here code "cannot access" error

public void runapplication() { seek { runtime.getruntime().exec("javaw -jar " + program_path + "/client.jar"); } grab (ioexception ioe) { ioe.printstacktrace(); } }

and here code.

if run this, windows xp doens't show anything. no error, no application.

public void runapplication() { seek { runtime.getruntime().exec("start javaw -jar " + program_path + "/client.jar"); } grab (ioexception ioe) { ioe.printstacktrace(); } }

java windows cmd windows-xp javaw

Comments

Popular posts from this blog

java Multi query from Mysql using netbeans -

c# - DotNetZip fails with "stream does not support seek operations" -

c++ - StartServiceCtrlDispatcher don't can access 1063 error -