View previous topic :: View next topic |
Author |
Message |
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Mon Aug 07, 2006 8:46 am Post subject: Run task through visual basic code |
|
|
This is a user email support request:
I used the "Command Line" generator to create a dos command line. When I execute it I get the following message "Could not find the main class"
What do I need to do and will I be able to execute this command line through my Visual Basic 6.0 code. |
|
Back to top |
|
 |
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Mon Aug 07, 2006 8:46 am Post subject: |
|
|
You need to set the correct working directory for the command. If you have already done so, send us your commandline and working directory used. |
|
Back to top |
|
 |
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Mon Aug 07, 2006 8:49 am Post subject: |
|
|
I changed the working directory
cd "n:\Program Files\Automize7\jre\bin\"
set PATH = "....;n:\Program Files\Automize7\jre\bin\"
"n:\Program Files\Automize7\jre\bin\javaw.exe" -cp .;bin;help;activation.jar;bsh.jar;hitek7.jar;jakoro.jar;jh.jar;lax.jar;mail.jar;maverick-all.jar;net.jar com.hitek.engine.core.RunTask Test
And I still get the same error message!!!!!!!!!!!! |
|
Back to top |
|
 |
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Mon Aug 07, 2006 8:49 am Post subject: |
|
|
use:
cd "n:\Program Files\Automize7" |
|
Back to top |
|
 |
|