hiteksoftware.com Forum Index hiteksoftware.com
User discussion forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Run task through visual basic code

 
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Command tasks and commandline
View previous topic :: View next topic  
Author Message
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Mon Aug 07, 2006 8:46 am    Post subject: Run task through visual basic code Reply with quote

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
View user's profile Send private message
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Mon Aug 07, 2006 8:46 am    Post subject: Reply with quote

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
View user's profile Send private message
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Mon Aug 07, 2006 8:49 am    Post subject: Reply with quote

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
View user's profile Send private message
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Mon Aug 07, 2006 8:49 am    Post subject: Reply with quote

use:
cd "n:\Program Files\Automize7"
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Command tasks and commandline All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group