calling a java class from vb

pparker78
pparker78 used Ask the Experts™
on
I need to call a java class from my visual basic app.  In addition I need to pass it a file name.  From the command line I would run it like this "java java.class < myfile.txt".  I tried using shell for this but I kept getting errors about the file not being found.  Any suggestions?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2012
Commented:
Try changing to that drive/folder first.

ChDir "c:\yourpathgoeshere"
Shell "addfullpathtojaveexehere\java java.class < myfile.txt".  

Anthony
Éric MoreauSenior .Net Consultant
Top Expert 2016

Commented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept acperkins 's comment as answer.
Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
emoreau
EE Cleanup Volunteer
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial