LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-18-2010, 01:21 PM   #1
java
LQ Newbie
 
Registered: Apr 2008
Distribution: fedora 13
Posts: 25

Rep: Reputation: Disabled
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.

Last edited by java; 08-18-2010 at 01:25 PM.
 
Old 08-18-2010, 01:27 PM   #2
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
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.
 
Old 08-19-2010, 10:06 AM   #3
java
LQ Newbie
 
Registered: Apr 2008
Distribution: fedora 13
Posts: 25

Original Poster
Rep: Reputation: Disabled
I'm still getting the same error messages

Quote:
Originally Posted by Kenny_Strawn View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lib/module/build and set kernel path error while configuring madwifi inara72 Linux - General 1 07-26-2010 07:25 AM
set up java_home path in /home/user/.bashrc but use path in /usr/lib/java vitalstrike82 Slackware 4 01-13-2009 11:25 PM
how to set include path sibtay Linux - Newbie 3 12-07-2004 07:42 AM
G++: How to set the include path lavachequirit Programming 5 10-20-2004 08:56 AM
how to set include path for fortran srkherad Linux - General 1 01-07-2003 11:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration