PDA

View Full Version : Problem in setting class path


sidiq
31st January 2007, 11:11 AM
Hello Friends,

I am new to Fedora. I am having doubt setting class path for my application specific .jar file. I have written Ant script that check out my entire project from the CVS to /root/Test1/eLearnBuildWebProject/eLearnWeb. Then it tired to compile all source file from /root/Test1/eLearnBuildWebProject/eLearnWeb/JavaSource. For compilation purpose I need to set .jar like sturts.jar and hibernate3.jar and spring. jar in my class path. My .jar file location is /root/Test1/eLearnBuildWebProject/eLearnWeb/WebContent/WEB-INF/lib. My question is how and where to set class path so that my application source file will compile?

I tried to set like

export CLASSPATH = $CLASSPATH: /root/Test1/eLearnBuildWebProject/eLearnWeb/WebContent/WEB-INF/lib/ hibernate3.jar: /root/Test1/eLearnBuildWebProject/eLearnWeb/WebContent/WEB-INF/lib/spring.jar in etc/profile

But complier does not recognize that class path. I got error in my console. So could some help me how to resolve this problem?


Regards,
Sidiq