NewBieAuto

Run Executable Jar File Problem?

10 posts in this topic

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!!!

Share this post


Link to post
Share on other sites

It show: 'java' is not recognized as an internal or extenral command, operable program or batch file???

Share this post


Link to post
Share on other sites

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 

1 person likes this

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Thanks Jos. When I ran with X64 version, It works normally. But how to make script run 64bit by default???

 

Share this post


Link to post
Share on other sites

Yeah. I have found out. Install SciTE full version and add #AutoIt3Wrapper_UseX64=Y. That's all :D

Share this post


Link to post
Share on other sites

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???

Share this post


Link to post
Share on other sites

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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Oke. Thanks for your help very much :D:D:D

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now