Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cant run app from bat after upgrade to Win 7 1

Status
Not open for further replies.

theniteowl

Programmer
May 24, 2005
1,975
US
I was just upgraded to Win 7 at work.
I have an application that resides on a server that is run from a bat file that sets up the JAVA environment variables and then executes the app.

Since upgrading to Win 7 when I run the bat file it launches a quick dos window to execute the bat when then launches another in which an error appears stating “Exception in thread “main” java.lang.UnsatisfiedLinkError: no VpiJava in java.library.path”

The bat file is in the same folder as the vpijava file referenced.
If I remotely log into the server where this app resides I can run the same bat file and it works normally.
When I try to run it by accessing the share from my own computer it fails with the above error. It almost seems permission related but my ID has full control on the folders in question.
When I remote to the server I can log in with the same ID I use when I try from my own PC and it works while on server but not from my own machine.

Is perhaps Windows 7 applying some restrictions on executing files on remote shares? Or somehow alterning the paths set in the DOS environment? I have setup a path for that folder in my windows environment variables but that did not help.

Thoughts?
Thanks.

At my age I still learn something new every day, but I forget two others.
 
Does it behave any differently if you right-click and 'run as administrator'?
 
No difference. I of course get asked for admin credentials but the result is the same.
I am also an administrator on my own device and my domain ID is in a security group with full access to the location on the server where the files reside.

I tried setting all of the bat file SET commands as environment variables on my own device and confirmed that they show in a dos window so everything should be set but somehow it fails.


At my age I still learn something new every day, but I forget two others.
 
I had tried those options without success but there was something in the link that caught my attention and that is that on Windows boxes the dll listed in the error is not necessarily the one with the issue but sometimes it is a dependent dll.
Sure enough even though the application was made to be run remotely from the server it has a dependency on a dll that gets installed on the server but needs to be on the local machine or in the path the application is executed from. When I located the missing dll on the server I copied it to the folder on the share and now everything runs.

At my age I still learn something new every day, but I forget two others.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top