Re: Classpath Question

2003-03-21 Thread Richard Jones
Thank you for your help: I have traked the error to the catalina.log file and itis a 
classnot found exception. I have made the changes but still am getting the error. I 
have included my setenv.bat file to see if there are any errors that are obvious to 
every but me. 

Any help would again be really appreciated.


/---setenv.bat--/
set JAVA_HOME=C:\j2sdk1.4.0-rc\jre
set JWSDP_HOME=c:\jwsdp-1_0_01
set 
CLASSPATH=%JWSDP_HOME%\common\endorsed\dom.jar;%JWSDP_HOME%\common\endorsed\sax.jar;%JWSDP_HOME%\common\endorsed\xalan.jar;%JWSDP_HOME%\common\endorsed\xsltc.jar;%JWSDP_HOME%\common\lib\jaxrpc-api.jar;%JWSDP_HOME%\common\lib\activation.jar;%JWSDP_HOME%\common\lib\commons-collections.jar;%JWSDP_HOME%\common\lib\providerutil.jar;%JWSDP_HOME%\common\lib\saaj-api.jar;%JWSDP_HOME%\common\lib\saaj-ri.jar;%JWSDP_HOME%\common\lib\soap.jar;%JWSDP_HOME%\common\lib\servlet.jar;%JWSDP_HOME%\common\lib\naming-resources.jar;%JWSDP_HOME%\common\lib\naming-common.jar;%JWSDP_HOME%\common\lib\naming-factory.jar;%JWSDP_HOME%\common\lib\jsse.jar;%JWSDP_HOME%\common\lib\dom4j.jar;%JWSDP_HOME%\common\lib\jaas.jar;%JWSDP_HOME%\common\lib\jaxrpc-ri.jar;%JWSDP_HOME%\common\lib\mail.jar;c:\topme\xerces\xerces.jar;c:\topme\castor\castor-0.9.4.1.jar;c:\TOPS\classes;c:\oracle9\jdbc\lib\classes12.jar;c:\oracle9\jdbc\lib\nls_charset12.jar;c:\oracle9\jdbc\lib\ocrs12.jar;c:\oracle9\jdbc\lib\ojdbc14.jar;c:\oracle9\jdbc\lib\classes12dms.jar;c:\oracle9\jdbc\lib\classes12dms_g.jar;c:\oracle9\jdbc\lib\ojdbc14_g.jar;c:\TOPS\classes\jep\jep210.jar;c:\TOPS\classes\HTTPClient.zip;.;
set PATH=%JAVA_HOME%\bin;%JWSDP_HOME%\bin;%PATH%

-- 
___
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Classpath Question

2003-03-20 Thread gilad . buzi

I ran against the same problem and found a solution I'm more or less happy
with (perhaps someone with more experience can correct me if my solution is
crazy.)
If you ABSOLUTELY cannot move your classes into %TOMCAT_HOME%
\common\classes directory, there is another option:

In your %TOMCAT_HOME%\bin\setclasspath.bat file, you can redefine the
CLASSPATH variable to include all the important tomcat .jar files plus your
classpath.  This bypasses the bootstrapper.
I.e.:
.
.
set TOMCAT_HOME=c:\tomcat
set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%TOMCAT_HOME%
\common\lib\activation.jar;%TOMCAT_HOME%\common\lib\mail.jar;
%TOMCAT_HOME%\common\lib\ant.jar;%TOMCAT_HOME%
\common\lib\commons-collections.jar;%TOMCAT_HOME%
\common\lib\commons-dbcp.jar;%TOMCAT_HOME%
\common\lib\commons-logging-api.jar;%TOMCAT_HOME%
\common\lib\commons-pool.jar;%TOMCAT_HOME%
\common\lib\jasper-compiler.jar;%TOMCAT_HOME%
\common\lib\jasper-runtime.jar;%TOMCAT_HOME%
\common\lib\jdbc2_0-stdext.jar;%TOMCAT_HOME%
\common\lib\jndi.jar;%TOMCAT_HOME%\common\lib\jta.jar;%TOMCAT_HOME%
\common\lib\mail.jar;%TOMCAT_HOME%
\common\lib\naming-common.jar;%TOMCAT_HOME%
\common\lib\naming-factory.jar;%TOMCAT_HOME%
\common\lib\naming-resources.jar;%TOMCAT_HOME%
\common\lib\servlet.jar;%YOUR_CLASSPATH%
.

Please, if someone thinks this is nuts, let me know.  I wish there was a
more elegant way to do this, but for now this is the only thing I could
think of.

/gilad


 Gilad Buzi 
 RD Engineer · CONCATEL


 [EMAIL PROTECTED]
 c/Sardenya, 229-237 Atic. 2a · 
 08013 Barcelona Spain  
 tel. +34.93.244.88.77 · fax
 +34.93.244.88.78   

  www.concatel.com  






   
  
Richard   
  
JonesPara:   [EMAIL PROTECTED]
 
richardjones@cc:  
  
email.comAsunto:  Classpath Question  
  
   
  
20/03/2003 
  
17:54  
  
Por favor, 
  
responda a 
  
Tomcat Users  
  
List  
  
   
  
   
  



Hi,

I am using tomcat version 4 as a web service provider. I have 10 web
services for my application and they all seem to compile properly. the
issue is when I go to run the application I get a java.rmi.ServerException
error with a missing port.

I am nearly 95% sure that it is a problem with the CLASSPATH in that I dont
declare where the class paths are for each application. How do I do this:
An example of where the java classes are is C:\tops\classes. I cant move
the classes as it is an application in itself and is connected to an oracle
database.

Please I need the following information?

1 Can this be done at all? Or is my boss nuts?

2 How do I do it?

Regards

Richard Newbie Jones
--
___
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Classpath Question

2003-03-20 Thread Micael
A problem with the classpath should indicate a classpath related exception, 
which essentially is an inability to find a class.  Why do you think that 
hte java.rmi.ServerException fits into this pattern?  If you don't declare 
where the class paths [sic] are for each application how do you expect the 
JVM to find the classes?  You sure that is what you mean?

At 04:54 PM 3/20/03 +, you wrote:
Hi,

I am using tomcat version 4 as a web service provider. I have 10 web 
services for my application and they all seem to compile properly. the 
issue is when I go to run the application I get a java.rmi.ServerException 
error with a missing port.

I am nearly 95% sure that it is a problem with the CLASSPATH in that I 
dont declare where the class paths are for each application. How do I do 
this: An example of where the java classes are is C:\tops\classes. I cant 
move the classes as it is an application in itself and is connected to an 
oracle database.

Please I need the following information?

1 Can this be done at all? Or is my boss nuts?

2 How do I do it?

Regards

Richard Newbie Jones
--
___
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: classpath question

2002-07-25 Thread Shapira, Yoav

Hi,
You should not have the webapps directory on your classpath.  That is
the structure you deploy into.  You should have a src tree somewhere
else that's in your classpath for compilation.  Please refer to 
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html
(specifically, the Deployment Organization and Source Organization
sections) for complete details.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Billy V. Kantartzis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 8:14 AM
To: [EMAIL PROTECTED]
Subject: classpath question

shoud i add the web app directory in my classpath ?
i have a application deployed as follows

webapps
|
|dms
| |
| |- jsp
|-classes
|dms
| |
| -beans
|-servlets
|-
|-

inorder to access files in the classes dms.* pakage do i have to
declare it
in the class path ?

thanks in advanced


Billy V. Kantartzis (Msc Ect),
University Of Essex,
wivenhoe park ,
co4 3sq
Clochester,
Essex,Uk
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: classpath question

2002-07-25 Thread Billy V. Kantartzis


that is what ithought too. Thanks for your quick reply all of you
best Billy
---Original Message---

From: Tomcat Users List
Date: ÐÝìðôç, 25 Éïýëéïò 2002 02:24:44 ìì
To: Tomcat Users List
Subject: RE: classpath question

Hi,
You should not have the webapps directory on your classpath. That is
the structure you deploy into. You should have a src tree somewhere
else that's in your classpath for compilation. Please refer to
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html
(specifically, the Deployment Organization and Source Organization
sections) for complete details.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Billy V. Kantartzis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 8:14 AM
To: [EMAIL PROTECTED]
Subject: classpath question

shoud i add the web app directory in my classpath ?
i have a application deployed as follows

webapps
|
|dms
| |
| |- jsp
|-classes
|dms
| |
| -beans
|-servlets
|-
|-

inorder to access files in the classes dms.* pakage do i have to
declare it
in the class path ?

thanks in advanced


Billy V. Kantartzis (Msc Ect),
University Of Essex,
wivenhoe park ,
co4 3sq
Clochester,
Essex,Uk
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]


--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
org

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: classpath question

2002-07-25 Thread Billy V. Kantartzis


that is what ithought too. Thanks for your quick reply all of you
best Billy
---Original Message---

From: Tomcat Users List
Date: P]lptg, 25 Io}kior 2002 02:24:44 ll
To: Tomcat Users List
Subject: RE: classpath question

Hi,
You should not have the webapps directory on your classpath. That is
the structure you deploy into. You should have a src tree somewhere
else that's in your classpath for compilation. Please refer to
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html
(specifically, the Deployment Organization and Source Organization
sections) for complete details.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Billy V. Kantartzis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 8:14 AM
To: [EMAIL PROTECTED]
Subject: classpath question

shoud i add the web app directory in my classpath ?
i have a application deployed as follows

webapps
|
|dms
| |
| |- jsp
|-classes
|dms
| |
| -beans
|-servlets
|-
|-

inorder to access files in the classes dms.* pakage do i have to
declare it
in the class path ?

thanks in advanced


Billy V. Kantartzis (Msc Ect),
University Of Essex,
wivenhoe park ,
co4 3sq
Clochester,
Essex,Uk
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]


--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
org

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: classpath question

2002-07-25 Thread Billy V. Kantartzis


that is what ithought too. Thanks for your quick reply all of you
best Billy
---Original Message---

From: Tomcat Users List
Date: P]lptg, 25 Io}kior 2002 02:24:44 ll
To: Tomcat Users List
Subject: RE: classpath question

Hi,
You should not have the webapps directory on your classpath. That is
the structure you deploy into. You should have a src tree somewhere
else that's in your classpath for compilation. Please refer to
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html
(specifically, the Deployment Organization and Source Organization
sections) for complete details.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Billy V. Kantartzis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 8:14 AM
To: [EMAIL PROTECTED]
Subject: classpath question

shoud i add the web app directory in my classpath ?
i have a application deployed as follows

webapps
|
|dms
| |
| |- jsp
|-classes
|dms
| |
| -beans
|-servlets
|-
|-

inorder to access files in the classes dms.* pakage do i have to
declare it
in the class path ?

thanks in advanced


Billy V. Kantartzis (Msc Ect),
University Of Essex,
wivenhoe park ,
co4 3sq
Clochester,
Essex,Uk
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]


--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
org

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: classpath question

2002-07-25 Thread Billy V. Kantartzis


that is what ithought too. Thanks for your quick reply all of you
best Billy
---Original Message---

From: Tomcat Users List
Date: P]lptg, 25 Io}kior 2002 02:24:44 ll
To: Tomcat Users List
Subject: RE: classpath question

Hi,
You should not have the webapps directory on your classpath. That is
the structure you deploy into. You should have a src tree somewhere
else that's in your classpath for compilation. Please refer to
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html
(specifically, the Deployment Organization and Source Organization
sections) for complete details.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Billy V. Kantartzis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 8:14 AM
To: [EMAIL PROTECTED]
Subject: classpath question

shoud i add the web app directory in my classpath ?
i have a application deployed as follows

webapps
|
|dms
| |
| |- jsp
|-classes
|dms
| |
| -beans
|-servlets
|-
|-

inorder to access files in the classes dms.* pakage do i have to
declare it
in the class path ?

thanks in advanced


Billy V. Kantartzis (Msc Ect),
University Of Essex,
wivenhoe park ,
co4 3sq
Clochester,
Essex,Uk
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]


--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
org

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Classpath Question

2001-05-11 Thread JULIEN,TIMOTHY (HP-NewJersey,ex2)

the call: System.getProperty(java.class.path)
only returns your System class path - 
the jars in /lib and the classes in /classes are dynamically loaded by a
ClassLoader in Tomcat - they do not become a part of your System class path.

Tim Julien
HP Middleware

-Original Message-
From: Dalia, Keith A - TOS-DITT1 [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 11, 2001 1:56 PM
To: '[EMAIL PROTECTED]'
Subject: Classpath Question


I have a question about how the dynamic class path is set based upon  the
.war file.  I know that whatever classpath is set prior to tomcat startup is
appended to the classpath in the startup.bat.  Furthermore, whatever .jar
files that reside in tomcat_home\lib are also dynamically added to the
classpath and tomcat_home\classes is also put on the classpath.  I have
verifed this by call a
System.getProperty(java.class.path) from a servlet.  What I don't fully
understand is how the contents of the .war files \lib path are seen by
tomcat since they don't appear when I call
System.getProperty(java.class.path).  I would really appreicate a bit of
clarity on this.


TIA, Keith



RE: Classpath Question

2001-05-11 Thread William Kaufman

Tomcat has its own ClassLoader implementations (in 3.2,
org.apache.tomcat.loader.*) which can pull the classes from the webapps
directory.  Look up java.lang.ClassLoader for more info.


-- Bill K.


 -Original Message-
 From: Dalia, Keith A - TOS-DITT1 [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 11, 2001 10:56 AM
 To: '[EMAIL PROTECTED]'
 Subject: Classpath Question
 
 
 I have a question about how the dynamic class path is set 
 based upon  the
 .war file.  I know that whatever classpath is set prior to 
 tomcat startup is
 appended to the classpath in the startup.bat.  Furthermore, 
 whatever .jar
 files that reside in tomcat_home\lib are also dynamically added to the
 classpath and tomcat_home\classes is also put on the 
 classpath.  I have
 verifed this by call a
 System.getProperty(java.class.path) from a servlet.  What I 
 don't fully
 understand is how the contents of the .war files \lib path are seen by
 tomcat since they don't appear when I call
 System.getProperty(java.class.path).  I would really 
 appreicate a bit of
 clarity on this.
 
 
 TIA, Keith
 



Re: classpath question

2001-04-11 Thread Kenneth Westelinck

No.

From: Chris Bailey [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: classpath question
Date: 11 Apr 2001 11:00:00 -0700

[System: Linux, Tomcat 3.2.1, Apache 1.3.19, mod_jk]

I have a web app that uses several jar files.  I have these in a lib
directory that has a symlink in my WEB-INF dir.  However, they don't
seem to get picked up.  It only seems to work if I put them in
TOMCAT_HOME/lib.  Do I need to do some other configuration?

--
Chris Bailey[EMAIL PROTECTED]
Wego Systemshttp://www.wego.com


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: classpath question

2001-03-20 Thread Craig R. McClanahan



On Tue, 20 Mar 2001, Mark W. Webb wrote:

 I have placed a prop.properties file in the WEB_INF/lib directory of my 
 tomcat context.  The servlet keep throwing an Exception saying that it cannot 
 find the ResourceBundle.  Where should I place this file?  From what I have 
 read, the prop.properties file should go into the WEB-INF/lib directory.  
 Where exactly should this file go??
 

I would suggest you place it in WEB-INF/classes instead.  If you want it
in WEB-INF/lib, you will need to put it inside a JAR file instead.

 
 thanks for the help in advance
 

Craig McClanahan





Re: ClassPath question?

2001-02-02 Thread André Alves

In the CLASSPATH is necessary put the name of the archive, as follow:
/usr/local/tomcat/lib/servlet.jar

--- Jian Zhang [EMAIL PROTECTED] escreveu:  Hello;
 
 Can anyone help with this compile error msg:
 
 javac HelloWorld.java
 
 HelloWorld.java:1: Package javax.servlet not found in import.
 import javax.servlet.*;
^
 I have included the servlet.jar in my classpath:
 
 printenv CLASSPATH
 /usr/local/jdk1.2.2/lib:/usr/local/tomcat/lib:/usr/local/ant/lib
 
 and servlet.jar is in the folder /usr/local/tomcat/lib
 
 what have I missed?
 
 Thanks in advance
 
 jian
 

-
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
  


__
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: ClassPath question?

2001-02-02 Thread Christopher Kirk
As far as classpaths are concerned, you can think of a jar file as a
directory (not a file). That is, unlike files (.class files especially) you
must explicitly specify the jar file on the class path.

That is, to pick up the servlet jar file, specify the following path. You
will have to do a similar thing for each of the other jar files too.

/usr/local/tomcat/lib/servlet.jar


- Ck

Brainbench MVP Java2.


 -Original Message-
 From: Jian Zhang [mailto:[EMAIL PROTECTED]]
 Sent: 02 February 2001 11:23
 To: '[EMAIL PROTECTED]'
 Subject: ClassPath question?
 
 
 Hello;
 
 Can anyone help with this compile error msg:
 
 javac HelloWorld.java
 
 HelloWorld.java:1: Package javax.servlet not found in import.
 import javax.servlet.*;
^
 I have included the servlet.jar in my classpath:
 
 printenv CLASSPATH
 /usr/local/jdk1.2.2/lib:/usr/local/tomcat/lib:/usr/local/ant/lib
 
 and servlet.jar is in the folder /usr/local/tomcat/lib
 
 what have I missed?
 
 Thanks in advance
 
 jian
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


RE: ClassPath question?

2001-02-02 Thread Jian Zhang
Thanks. I just tried "/usr/local/tomcat/lib/servlet.jar" and it worked.

I noticed that the first line HelloWorld.java file is 
"import java.io.*"
But it did not create any problem on compiling given previous classpath.

Does it mean java libs have some difference from each other?


jian


 As far as classpaths are concerned, you can think of a jar file as a
 directory (not a file). That is, unlike files (.class files 
 especially) you
 must explicitly specify the jar file on the class path.
 
 That is, to pick up the servlet jar file, specify the 
 following path. You
 will have to do a similar thing for each of the other jar files too.
 
 /usr/local/tomcat/lib/servlet.jar
 
 
 - Ck
 
 Brainbench MVP Java2.
 
 
  -Original Message-
  From: Jian Zhang [mailto:[EMAIL PROTECTED]]
  Sent: 02 February 2001 11:23
  To: '[EMAIL PROTECTED]'
  Subject: ClassPath question?
  
  
  Hello;
  
  Can anyone help with this compile error msg:
  
  javac HelloWorld.java
  
  HelloWorld.java:1: Package javax.servlet not found in import.
  import javax.servlet.*;
 ^
  I have included the servlet.jar in my classpath:
  
  printenv CLASSPATH
  /usr/local/jdk1.2.2/lib:/usr/local/tomcat/lib:/usr/local/ant/lib
  
  and servlet.jar is in the folder /usr/local/tomcat/lib
  
  what have I missed?
  
  Thanks in advance
  
  jian
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


RE: ClassPath question?

2001-02-02 Thread Christopher Kirk
_Normally_ the core java libraries are inserted onto the classpath for you,
hence
you may not always have to setup a classpath.

javax.* is not part of the core libraries, its name actually stands for 
'java extensions'. Over time some of these extensions, such as swing (javax.
swing)  
have made it into the normal distribution but others such as servlets have
not.

If you want to see what is or is not in the core distribution, go into the
libs
directory of the JVM installation of the JRE and open up rt.jar.. in there
you 
will find java.io, java.util etc etc.

- CK

Brainbench MVP Java2.

 -Original Message-
 From: Jian Zhang [mailto:[EMAIL PROTECTED]]
 Sent: 02 February 2001 11:51
 To: '[EMAIL PROTECTED]'
 Subject: RE: ClassPath question?
 
 
 Thanks. I just tried "/usr/local/tomcat/lib/servlet.jar" and 
 it worked.
 
 I noticed that the first line HelloWorld.java file is 
 "import java.io.*"
 But it did not create any problem on compiling given previous 
 classpath.
 
 Does it mean java libs have some difference from each other?
 
 
 jian
 
 
  As far as classpaths are concerned, you can think of a jar file as a
  directory (not a file). That is, unlike files (.class files 
  especially) you
  must explicitly specify the jar file on the class path.
  
  That is, to pick up the servlet jar file, specify the 
  following path. You
  will have to do a similar thing for each of the other jar files too.
  
  /usr/local/tomcat/lib/servlet.jar
  
  
  - Ck
  
  Brainbench MVP Java2.
  
  
   -Original Message-
   From: Jian Zhang [mailto:[EMAIL PROTECTED]]
   Sent: 02 February 2001 11:23
   To: '[EMAIL PROTECTED]'
   Subject: ClassPath question?
   
   
   Hello;
   
   Can anyone help with this compile error msg:
   
   javac HelloWorld.java
   
   HelloWorld.java:1: Package javax.servlet not found in import.
   import javax.servlet.*;
  ^
   I have included the servlet.jar in my classpath:
   
   printenv CLASSPATH
   /usr/local/jdk1.2.2/lib:/usr/local/tomcat/lib:/usr/local/ant/lib
   
   and servlet.jar is in the folder /usr/local/tomcat/lib
   
   what have I missed?
   
   Thanks in advance
   
   jian
   
   
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, email: 
 [EMAIL PROTECTED]
   
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]