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
LinuxJava

Avatar of undefined
Last Comment
mccarl

8/22/2022 - Mon
CEHJ

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

Is this true?

Probably not ;)
CPColin

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.
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
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
CPColin

So try a relative path and see if it works.
SOLUTION
CEHJ

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER CERTIFIED SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Anthony Lucia

ASKER
Thank you for the excellent comments
mccarl

You're welcome! :)
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.