Link to home
Start Free TrialLog in
Avatar of Anthony Lucia
Anthony Lucia

asked on

Java and Linux and relative paths

I had previously asked a similar question, but I need to ask it again more clearly, as I am having problems understanding.

I read the following concerning passing parameters to java:

In Linux, do not use absolute path....... in some setups passing -Djavax.net.ssl.keyStore=/home/account/.keystore to Java VM does not work. ......

Open in new window


from this site:

http://activemq.apache.org/how-do-i-use-ssl.html

So apparently, in some setups running Java on Linux, you can not pass an absolute path to Java with the -D option.

Is this true?

What setups are those

Is there an easy way to tell if my setup will accept an absolute path or if I am required to pass a relative path ?

Thanks
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

you can not pass an absolute path to Java with the -D option.

Is this true?

Probably not ;)
Is there an easy way to tell if my setup will accept an absolute path or if I am required to pass a relative path ?

The easiest way is just to try it and see what happens. It doesn't make sense to me that Linux would be special in this regard.
Avatar of Anthony Lucia
Anthony Lucia

ASKER

My problem is this is the first time I am using certificates, and I have some unknowns about what I am doing, so it would be good to rule the -D absolute path option out
So try a relative path and see if it works.
SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you for the excellent comments
You're welcome! :)