Jump to content
NewBieAuto

Run Executable Jar File Problem?

Recommended Posts

NewBieAuto
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
Jos

You are at least missing a space after /c.
Change /c to /k to see the error when that doesn't solve it.

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
NewBieAuto

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
Jos

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 

  • Like 1

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
NewBieAuto

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
NewBieAuto

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
NewBieAuto

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
Jos

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
NewBieAuto

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

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.