View Full Version : java using log4j
badperson
March 3rd, 2009, 04:25 PM
Hi,
I have the latest version of log4j from the repositories, but I was getting classpath problems...That means I need to add it to my bashrc, right?
bp
digital_x
March 3rd, 2009, 08:05 PM
This depends. I assume you are tyring to use it from a standalone app. If so you will need to add it to your classpath. You can use the -classpath jvm argument, or you can set the CLASSPATH environment variable. I wouldn't suggest setting this in your .bashrc since you may run something else that requires a different version and you could have a version clash.
badperson
March 5th, 2009, 12:48 AM
thanks,
so that needs to be added to /etc/environment?
do I add CLASSPATH = /path/to/jar?
bp
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.