Sign in to follow this  
Followers 0
WTS

run a batch command > call java

2 posts in this topic

#1 ·  Posted (edited)

hello once again..

The basic idea of what i'm trying to do is, instead of launching a java application with batch, I want to do it with autoit that way i have more control.. but unfortunetly it doesn't do anthing. the batch displays a splash screen which launches the program,but the cmd window i want to be hidden

[batch]

java gui.Splash

[Autoit]

;#notrayicon
run(@comspec & 'java gui.splash ', '' ,@sw_hide)
Edited by WTS

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Run(@ComSpec & " /C " & 'javaw.exe gui.splash', @ScriptDir, @SW_HIDE)

Run(@ComSpec & " /C " & 'javaw '& @ScriptDir & '\gui\Splash.class','' , @SW_HIDE)

Run('cmd java gui.Splash', '', @SW_SHOW)

#include <process.au3>

_RunDOS('javaw.exe gui.splash')

how to avoid this error?

Could not find main class. Program will now exit

Edited by WTS

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
Sign in to follow this  
Followers 0