NewBieAuto Posted May 29, 2016 Posted May 29, 2016 run(@comspec & " /c" & "java -jar JSPDict.jar", @ScriptDir & '\Dic Tool\SPDict 7.6.4' ) When I use this code, the command prompt window appear in a sec, and disapear so I dont know where is the error. But If I run on cmd prompt, the jar file run well. Could anyone help me!!!
Developers Jos Posted May 29, 2016 Developers Posted May 29, 2016 You are at least missing a space after /c. Change /c to /k to see the error when that doesn't solve it. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
NewBieAuto Posted May 29, 2016 Author Posted May 29, 2016 It show: 'java' is not recognized as an internal or extenral command, operable program or batch file???
Developers Jos Posted May 29, 2016 Developers Posted May 29, 2016 so, does the shown command work when ran from the CMD window? Make sure you use the same version (x86 or x64) as you do for AUtoIt3. Jos NewBieAuto 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
NewBieAuto Posted May 29, 2016 Author Posted May 29, 2016 Thanks Jos. When I ran with X64 version, It works normally. But how to make script run 64bit by default???
NewBieAuto Posted May 29, 2016 Author Posted May 29, 2016 Yeah. I have found out. Install SciTE full version and add #AutoIt3Wrapper_UseX64=Y. That's all
Developers Jos Posted May 29, 2016 Developers Posted May 29, 2016 Correct ...was just typing that answer when your post popped up. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
NewBieAuto Posted May 29, 2016 Author Posted May 29, 2016 But there's a problem. It works normally when I run from SciTE and press F5. But if I run from Window (double click), it run in 32bit versin???
Developers Jos Posted May 29, 2016 Developers Posted May 29, 2016 Correct... that is the standard autoit3 link and will use the standard installed version. Just compile the script from SciTE and a x64 program will be created which can be ran from windows with a double click. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now