Classpath issue with java -jar

Posted by portoalet on Stack Overflow See other posts from Stack Overflow or by portoalet
Published on 2010-03-13T02:47:19Z Indexed on 2010/03/13 2:57 UTC
Read the original article Hit count: 476

Filed under:
|
|

Hi,

I have an executable jar Client.jar that requires jndi.properties file. Since the jndi properties is not part of the Client.jar, and java -jar ignores the -classpath argument,

How can I execute the jar and let it know where the jndi.properties is?

Thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about jar