LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to set include tomcat lib in my fedora 13 path (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-set-include-tomcat-lib-in-my-fedora-13-path-827056/)

java 08-18-2010 01:21 PM

how to set include tomcat lib in my fedora 13 path
 
Hi guys,
i am having problems getting my fedora 13 system to recognise my apache tomcat lib which contains lots of jar files needed to compile servlets and jsp based java programs; i have set the classpath env variable : ## export CLASSPATH
export CLASSPATH="/usr/local/apache-tomcat-6.0.16/lib"
in etc/profile and ~.bash_profile file but still i get package javax.servlet.jsp does not exist. On windows i dont seem to have this problem after setting the classpath. I also have these included in etc/profile and ~.bash_profile:
## export JAVA_HOME
export JAVA_HOME="/usr/java/jdk1.6.0_21"

## export CATALINA_HOME
export CATALINA_HOME="/usr/local/apache-tomcat-6.0.16"

i'll be glad if you guys can give me a helping hand.

Kenny_Strawn 08-18-2010 01:27 PM

Linux's variables are different than M$'s. As such, here's the variable you have to set:

Code:

export PKG_CONFIG_PATH=/usr/local/apache-tomcat-6.0.16/lib:$PKG_CONFIG_PATH #please put a colon between '/usr/local/apache-tomcat-6.0.16/lib' and '$PKG_CONFIG_PATH'/
Please let me know if you're still getting errors.

java 08-19-2010 10:06 AM

I'm still getting the same error messages
 
Quote:

Originally Posted by Kenny_Strawn (Post 4070482)
Linux's variables are different than M$'s. As such, here's the variable you have to set:

Code:

export PKG_CONFIG_PATH=/usr/local/apache-tomcat-6.0.16/lib:$PKG_CONFIG_PATH #please put a colon between '/usr/local/apache-tomcat-6.0.16/lib' and '$PKG_CONFIG_PATH'/
Please let me know if you're still getting errors.

Hi Kenny,
I simply cut and paste this: export PKG_CONFIG_PATH=/usr/local/apache-tomcat-6.0.16/lib:$PKG_CONFIG_PATH into my etc/profile and ~/.bash_profile and still i get the same error messages like package javax.faces.model does not exist
import javax.faces.model.SelectItem; but if i specify the jar file with -cp on the command line it compiles; i have a total of 33 jar files in the lib folder and it will be cumbersome having to specify ever individual jar file on the command line every time i want to compile a java file. Hope to hear from you soon.
Regards Yomi


All times are GMT -5. The time now is 01:48 AM.