-Dstartup.directory="%OLDPWD%"
Once it was available, we added it to our path provider!
Tx so much, Gregorz, I missed the answer to the previous post.
B
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a jar file which I start with a bat file and java normally has the path of where the executable got started from is available for use.
For example: assume I have a build setup like this
C:\myproduct\bin\newapp.bat
C:\myproduct\bin\newapp.exe
but if I start the newapp.exe from anywhere else, I am looking for the path of where I started it from. eg,
C>newapp
and newapp is on the path. I want to be able to find that dir in the app, rather that just the location of the exe.
Is there a way to do that or something I can set in env variables to identify where you started the app from?
Many Thanks
Barry
And the answer is use
-Dstartup.directory="%OLDPWD%"
Once it was available, we added it to our path provider!
Tx so much, Gregorz, I missed the answer to the previous post.
B
OK :)