am trying to run some jar files within a .bat file in a .Net environment.

G

Guest

Hi all
Hope this is the right Forum..This is my first post.

Here's my predicament.
I am trying to run some jar files within a .bat file in a .Net environment
I have the JRE installed and everything is fine there
The bat file works as intended when run double-clicked but when invoked from within .Net .
it doesnt give me an error but doesnt seem to be doing anything either

Any and all help appreciated!!

Thanks in Advance
Harold
(e-mail address removed)
 
H

Herfried K. Wagner [MVP]

* =?Utf-8?B?SGFyb2xk?= said:
Hope this is the right Forum..This is my first post..

Here's my predicament..
I am trying to run some jar files within a .bat file in a .Net environment.
I have the JRE installed and everything is fine there.
The bat file works as intended when run double-clicked but when invoked from within .Net ..
it doesnt give me an error but doesnt seem to be doing anything either!

How do you invoke the batch file?

Opening a file:

\\\
Imports System.Diagnostics

..
..
..
Dim psi As New ProcessStartInfo()
psi.UseShellExecute = True
psi.FileName = "C:\bla.html"
Process.Start(psi)
..
..
..
///

Starting an application:

If you want to start an application, you can simply call
'System.Diagnostics.Process.Start("C:\bla.exe")' or in VB.NET
'Shell("C:\bla.exe")'.
 
H

Harold S

Hi Herfried,
I am using it as below....
Imports System.Diagnostics
Dim psi As New ProcessStartInfo()
psi.UseShellExecute = True
psi.FileName = "C:\bla.bat"
Process.Start(psi)

I can invoke a simple copy and general dos commands from the .bat file
but the bat file has

java -classpath
../;./lib/xxxxToken.jar;./lib/jce1_2_1.jar;./lib/jsse.jar;./lib/KeyToolsPro_j
ce1-2-1_1of2_signed.jar;./lib/KeyToolsPro_jdk1-2.jar;./lib/local_policy.jar;
../lib/sunjce_provider.jar;./lib/US_xxxx.jar
com.wellsfargo.ebpp.sslPost.xxxxTokenCreator 1>xxxxTokenCreator.txt
2>xxxxTokenCreator.err

I can run this by double clicking on it ..but when invoked through .Net
doesn't throw me an error..but does not produce the txt file either..

Thanks much
Harold
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top