vancegroup / lua-voce

Lua binding to Voce
Boost Software License 1.0
2 stars 0 forks source link

Add location of jvm.dll to path #11

Open rpavlik opened 12 years ago

rpavlik commented 12 years ago

At runtime (when init is called), we should find the jre installation and the jvm file, and then add it to the PATH environment variable before calling Voce's init.

carlsonp commented 12 years ago

Do you think this would fix issue #4? If so, do you have suggestions on how to accomplish this? This would be setting PATH environment variables through Lua? I guess I'm still not sure how your SearchPath.h file fits into this.

rpavlik commented 12 years ago

SearchPath.h doesn't fit into this particular bug at all. Unfortunately "path" is just a very overloaded word. Yes, it might work.

rpavlik commented 12 years ago

See http://msdn.microsoft.com/en-us/library/7d83bc18(v=VS.90).aspx and http://msdn.microsoft.com/en-us/library/windows/desktop/ms682586(v=vs.85).aspx#search_order_for_desktop_applications

rpavlik commented 12 years ago

You may be able to use this, though I'd prefer the environment variable route: http://msdn.microsoft.com/en-us/library/ms686203

another link from our friendly google. http://stackoverflow.com/questions/518228/is-it-possible-to-add-a-directory-to-dll-search-path-from-a-batch-file-or-cmd-sc