|
Home > Archive > Unix Programming > January 2004 > Please help with path problem
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Please help with path problem
|
|
|
| Hi,
i am getting problem in compiling my servlets, i get following errors
*******************************
home.java:18: cannot resolve symbol
symbol : class HttpServlet
location: class home
public class home extends HttpServlet {
^
home.java:24: cannot resolve symbol
symbol : class HttpServletRequest
location: class home
public void doGet (HttpServletRequest request,
^
home.java:25: cannot resolve symbol
symbol : class HttpServletResponse
location: class home
HttpServletResponse response) throws ServletException, IOException
^
home.java:25: cannot resolve symbol
symbol : class ServletException
location: class home
HttpServletResponse response) throws ServletException, IOException
^
home.java:29: package oracle.jdbc.driver does not exist
DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
^
8 errors
*******************************
It seems that the problem is in path but dont know where is the problem.
below is my path file. can anyone check it please , i spent too much
time but didnt know where problem is .someone suggested to put
$CATALINA_HOME/common/lib/servlet.jar
$ORACLE_HOME/jdbc/lib/classes12.zip
in CLASSPATH but dont know exactly how to do that. can anyone help.
Thank you so much.
MY PATH FILE
========================================
=======
set mail=$HOME/Mail/mbox
set prompt="<\!> $USER at `hostname`: "
setenv ORACLE_BASE /opt/oracle
setenv ORACLE_HOME $ORACLE_BASE/product/9.2.0
setenv ORACLE_DOC $ORACLE_HOME/doc
setenv ORACLE_SID SUNORCL
setenv ORACLE_TERM vt100
setenv TWO_TASK SUNORCL.CS.SWT.EDU
setenv JAVA_HOME /usr/local/j2sdk1.4.1_02
setenv CATALINA_HOME /usr/local/jakarta-tomcat-4.1.29
setenv J2EE_HOME /usr/local/j2sdkee1.3.1
set path=(. /usr/local/bin $JAVA_HOME/bin/sparcv9 $JAVA_HOME/bin
$J2EE_HOME/bin $ORACLE_HOME/bin /usr/games/bin /usr/gnu/bin
/usr/local/sbin /usr/local/etc /usr/local/bin /usr/local/bin/netpbm
/usr/local/bin/mail-utils /usr/local/bin/chinese /usr/local/bin/mail
/usr/local/bin/X11 /usr/tex/bin/sparc-sun-solaris2.9 /usr/tex/bin
/usr/local/teTeX/bin/sparc-sun-solaris2.9 /sbin /usr/sbin /usr/ucb /etc
/usr/etc /bin /usr/bin /usr/bin/X11 /usr/tex/lib/latex2htmldir
/usr/ccs/bin)
#
#
#
set history=40 alias h 'history' #alias finger '/usr/local/bin/finger'
alias rm 'rm -i'
alias dfk 'df -k'
setenv LD_LIBRARY_PATH
..:/usr/local/lib:$ORACLE_HOME/lib32:$ORACLE_HOME/lib:$CATALINA_HOME/classes:/usr/local/apache2/lib
setenv CLASSPATH
| |
| Mark R.Bannister 2004-01-23, 5:14 pm |
| mhk <cccssss@dddsssl.com> wrote in message news:<3FC59AB2.8000105@dddsssl.com>...quote:
> Hi,
>
> i am getting problem in compiling my servlets, i get following errors
> *******************************
> home.java:18: cannot resolve symbol
> symbol : class HttpServlet
> location: class home
> public class home extends HttpServlet {
> ^
> home.java:24: cannot resolve symbol
> symbol : class HttpServletRequest
> location: class home
> public void doGet (HttpServletRequest request,
> ^
> home.java:25: cannot resolve symbol
> symbol : class HttpServletResponse
> location: class home
> HttpServletResponse response) throws ServletException, IOException
> ^
> home.java:25: cannot resolve symbol
> symbol : class ServletException
> location: class home
> HttpServletResponse response) throws ServletException, IOException
> ^
> home.java:29: package oracle.jdbc.driver does not exist
> DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
> ^
> 8 errors
>
> *******************************
>
> It seems that the problem is in path but dont know where is the problem.
> below is my path file. can anyone check it please , i spent too much
> time but didnt know where problem is .someone suggested to put
>
> $CATALINA_HOME/common/lib/servlet.jar
> $ORACLE_HOME/jdbc/lib/classes12.zip
>
> in CLASSPATH but dont know exactly how to do that. can anyone help.
>
> Thank you so much.
>
> MY PATH FILE
> ========================================
=======
> set mail=$HOME/Mail/mbox
> set prompt="<\!> $USER at `hostname`: "
>
> setenv ORACLE_BASE /opt/oracle
> setenv ORACLE_HOME $ORACLE_BASE/product/9.2.0
> setenv ORACLE_DOC $ORACLE_HOME/doc
> setenv ORACLE_SID SUNORCL
> setenv ORACLE_TERM vt100
> setenv TWO_TASK SUNORCL.CS.SWT.EDU
>
> setenv JAVA_HOME /usr/local/j2sdk1.4.1_02
> setenv CATALINA_HOME /usr/local/jakarta-tomcat-4.1.29
> setenv J2EE_HOME /usr/local/j2sdkee1.3.1
>
> set path=(. /usr/local/bin $JAVA_HOME/bin/sparcv9 $JAVA_HOME/bin
> $J2EE_HOME/bin $ORACLE_HOME/bin /usr/games/bin /usr/gnu/bin
> /usr/local/sbin /usr/local/etc /usr/local/bin /usr/local/bin/netpbm
> /usr/local/bin/mail-utils /usr/local/bin/chinese /usr/local/bin/mail
> /usr/local/bin/X11 /usr/tex/bin/sparc-sun-solaris2.9 /usr/tex/bin
> /usr/local/teTeX/bin/sparc-sun-solaris2.9 /sbin /usr/sbin /usr/ucb /etc
> /usr/etc /bin /usr/bin /usr/bin/X11 /usr/tex/lib/latex2htmldir
> /usr/ccs/bin)
> #
> #
> #
> set history=40 alias h 'history' #alias finger '/usr/local/bin/finger'
> alias rm 'rm -i'
> alias dfk 'df -k'
>
> setenv LD_LIBRARY_PATH
> .:/usr/local/lib:$ORACLE_HOME/lib32:$ORACLE_HOME/lib:$CATALINA_HOME/classes:/usr/local/apache2/lib
>
> setenv CLASSPATH
http://jakarta.apache.org/tomcat/to...ader-howto.html
|
|
|
|
|