Re: Java Class is not compiling

2004-07-28 Thread Schalk Neethling
Sayeed
Try changing:
set CLASSPATH=C:\Apache\Tomcat\common\lib\servlet.jar
TO
set CLASSPATH=C:\Apache\Tomcat\common\lib\servlet-api.jar
shiv juluru wrote:
ok sayeed,
just open ur command prompt and give
cmd>set 
classpath=%classpath%;C:\Apache\Tomcat\common\lib\servlet.jar;C:\j2sdk1.4.2_04\lib\tools.jar;C:\j2sdk1.4.2_04\dt.jar;C:\j2sdk1.4.2_04\jre\lib\rt.jar;.
now compile ur java file (ex: javac sayeed)
if it works,it's may be the problem with classpath that u have given.
Sayeed <[EMAIL PROTECTED]> wrote:
dear sir and Shivjuluru
these are my Paths:
set JAVA_HOME=C:\j2sdk1.4.2_04
set CATALINA_HOME=C:\APACHE\TOMCAT
set CLASSPATH=C:\Apache\Tomcat\common\lib\servlet.jar
but still when I compile my servlet file (sayeed) it give the same erros:
C:\Apache\Tomcat\webapps\ch03\WEB-INF\calsses\com\wrox\projsp\ch03\myfirstwe
bapp> javac sayeed.java
sayeed.java:5: package javax.servlet.http does not exist
import javax.servlet.http.HttpServlet;
^
sayeed.java:6: package javax.servlet.http does not exist
import javax.servlet.http.HttpServletRequest;
- Original Message -
From: "shiv juluru" 
To: "Tomcat Users List" 
Sent: Wednesday, July 28, 2004 12:12 PM
Subject: Re: Java Class is not compiling

 

give servlet.jar path to ur classpath ,that jar file may be in
   

tomcat_root/common/lib folder
 

Sayeed wrote:Sir
I am new to Tomcat.
I am now making my first Servlet and trying to creat a class (sayeed).
It give me errors as under :
---
Also another thing what is the PACKAGE which have to write in first line
   

of
 

my servlet(sayeed):
package com.wrox.projsp.ch03.myfirstwebapp;
Can anyone please help me in detail. I have however downloaded Javax
directory from sun.java.com- where this directory i have to put? i am
   

using
 

j2sdk1.4.2.
Thanx in advance.
Saeed
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
 

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
This message contains information that is considered to be sensitive or confidential 
and may not be forwarded or disclosed to any other party without the permission of the 
sender. If you received this message in error, please notify me immediately so that I 
can correct and delete the original email. Thank you.

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


Re: Java Class is not compiling

2004-07-28 Thread shiv juluru
ok sayeed,
just open ur command prompt and give
cmd>set 
classpath=%classpath%;C:\Apache\Tomcat\common\lib\servlet.jar;C:\j2sdk1.4.2_04\lib\tools.jar;C:\j2sdk1.4.2_04\dt.jar;C:\j2sdk1.4.2_04\jre\lib\rt.jar;.
now compile ur java file (ex: javac sayeed)
if it works,it's may be the problem with classpath that u have given.

Sayeed <[EMAIL PROTECTED]> wrote:
dear sir and Shivjuluru

these are my Paths:

set JAVA_HOME=C:\j2sdk1.4.2_04
set CATALINA_HOME=C:\APACHE\TOMCAT
set CLASSPATH=C:\Apache\Tomcat\common\lib\servlet.jar

but still when I compile my servlet file (sayeed) it give the same erros:

C:\Apache\Tomcat\webapps\ch03\WEB-INF\calsses\com\wrox\projsp\ch03\myfirstwe
bapp> javac sayeed.java

sayeed.java:5: package javax.servlet.http does not exist
import javax.servlet.http.HttpServlet;
^
sayeed.java:6: package javax.servlet.http does not exist
import javax.servlet.http.HttpServletRequest;


- Original Message -
From: "shiv juluru" 
To: "Tomcat Users List" 
Sent: Wednesday, July 28, 2004 12:12 PM
Subject: Re: Java Class is not compiling


> give servlet.jar path to ur classpath ,that jar file may be in
tomcat_root/common/lib folder
>
> Sayeed wrote:Sir
> I am new to Tomcat.
> I am now making my first Servlet and trying to creat a class (sayeed).
> It give me errors as under :
>
> ---
> Also another thing what is the PACKAGE which have to write in first line
of
> my servlet(sayeed):
>
> package com.wrox.projsp.ch03.myfirstwebapp;
>
> Can anyone please help me in detail. I have however downloaded Javax
> directory from sun.java.com- where this directory i have to put? i am
using
> j2sdk1.4.2.
>
> Thanx in advance.
>
> Saeed
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> -
> Do you Yahoo!?
> Yahoo! Mail - 50x more storage than other providers!


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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Java Class is not compiling

2004-07-28 Thread Sayeed
dear sir and Shivjuluru

these are my Paths:

set JAVA_HOME=C:\j2sdk1.4.2_04
set CATALINA_HOME=C:\APACHE\TOMCAT
set CLASSPATH=C:\Apache\Tomcat\common\lib\servlet.jar

but still when I compile my servlet file (sayeed) it give the same erros:

C:\Apache\Tomcat\webapps\ch03\WEB-INF\calsses\com\wrox\projsp\ch03\myfirstwe
bapp> javac sayeed.java

sayeed.java:5: package javax.servlet.http does not exist
 import javax.servlet.http.HttpServlet;
 ^
 sayeed.java:6: package javax.servlet.http does not exist
 import javax.servlet.http.HttpServletRequest;


- Original Message -
From: "shiv juluru" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 28, 2004 12:12 PM
Subject: Re: Java Class is not compiling


> give servlet.jar path to ur classpath ,that jar file may be in
tomcat_root/common/lib folder
>
> Sayeed <[EMAIL PROTECTED]> wrote:Sir
> I am new to Tomcat.
> I am now making my first Servlet and trying to creat a class (sayeed).
> It give me errors as under :
>
> ---
> Also another thing what is the PACKAGE which have to write in first line
of
> my servlet(sayeed):
>
> package com.wrox.projsp.ch03.myfirstwebapp;
>
> Can anyone please help me in detail. I have however downloaded Javax
> directory from sun.java.com- where this directory i have to put? i am
using
> j2sdk1.4.2.
>
> Thanx in advance.
>
> Saeed
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> -
> Do you Yahoo!?
> Yahoo! Mail - 50x more storage than other providers!


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



Re: Java Class is not compiling

2004-07-28 Thread shiv juluru
give servlet.jar path to ur classpath ,that jar file may be in tomcat_root/common/lib 
folder

Sayeed <[EMAIL PROTECTED]> wrote:Sir
I am new to Tomcat.
I am now making my first Servlet and trying to creat a class (sayeed).
It give me errors as under :

C:\Apache\Tomcat\webapps\ch03\myfirstwebapp>javac sayeed.java
sayeed.java:5: package javax.servlet.http does not exist
import javax.servlet.http.HttpServlet;
^
sayeed.java:6: package javax.servlet.http does not exist
import javax.servlet.http.HttpServletRequest;

---
Also another thing what is the PACKAGE which have to write in first line of
my servlet(sayeed):

package com.wrox.projsp.ch03.myfirstwebapp;

Can anyone please help me in detail. I have however downloaded Javax
directory from sun.java.com- where this directory i have to put? i am using
j2sdk1.4.2.

Thanx in advance.

Saeed


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




-
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

RE: Java Class is not compiling

2004-07-27 Thread Shapira, Yoav

Hi,
Yeah, I second Mr. Caldarale's advice.  Don't get j2ee.jar on your
classpath.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, July 27, 2004 9:44 AM
>To: Tomcat Users List
>Subject: RE: Java Class is not compiling
>
>> From: Schalk Neethling [mailto:[EMAIL PROTECTED]
>> Subject: Re: Java Class is not compiling
>>
>> Download J2EE from the following URL:
>> http://java.sun.com/j2ee/1.4/download.html#sdk
>>
>> Aris Javier wrote:
>>
>> >You should download j2sdkee version or the enterprise version of
>> >java..
>
>Actually, that's not a good idea.  That puts multiple copies of the
>necessary jars on your system, along with a second copy of Tomcat, plus
the
>Sun app server.  This can easily cause class loader conflicts when
you're
>trying to run the desired Tomcat, and can cause runtime problems if the
>downloaded J2EE SDK is not the same level as that provided with the
Tomcat
>release.
>
>All the necessary jars are in the Tomcat download you already have.
All
>you need to do is set the -classpath parameter on your javac statement
to
>include them.  The javax classes should be in:
>   C:\Apache\Tomcat\common\lib\servlet-api.jar
>judging from how you were trying to compile your program.
>
>You definitely need to become more familiar with Java in general before
>trying to tackle servlets.
>
> - Chuck
>
>
>THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
PROPRIETARY
>MATERIAL and is thus for use only by the intended recipient. If you
>received this in error, please contact the sender and delete the e-mail
and
>its attachments from all computers.
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Java Class is not compiling

2004-07-27 Thread Caldarale, Charles R
> From: Schalk Neethling [mailto:[EMAIL PROTECTED]
> Subject: Re: Java Class is not compiling
> 
> Download J2EE from the following URL:
> http://java.sun.com/j2ee/1.4/download.html#sdk
> 
> Aris Javier wrote:
> 
> >You should download j2sdkee version or the enterprise version of
> >java.. 

Actually, that's not a good idea.  That puts multiple copies of the necessary jars on 
your system, along with a second copy of Tomcat, plus the Sun app server.  This can 
easily cause class loader conflicts when you're trying to run the desired Tomcat, and 
can cause runtime problems if the downloaded J2EE SDK is not the same level as that 
provided with the Tomcat release.

All the necessary jars are in the Tomcat download you already have.  All you need to 
do is set the -classpath parameter on your javac statement to include them.  The javax 
classes should be in:
C:\Apache\Tomcat\common\lib\servlet-api.jar
judging from how you were trying to compile your program.

You definitely need to become more familiar with Java in general before trying to 
tackle servlets.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and 
is thus for use only by the intended recipient. If you received this in error, please 
contact the sender and delete the e-mail and its attachments from all computers.

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



Re: Java Class is not compiling

2004-07-27 Thread Schalk Neethling
Download J2EE from the following URL:
http://java.sun.com/j2ee/1.4/download.html#sdk
Aris Javier wrote:
You should download j2sdkee version or the enterprise version of
java.. 

=)
-Original Message-
From: Nitschke Michael [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 27, 2004 3:30 PM
To: Tomcat Users List
Subject: RE: Java Class is not compiling

It seams you are new to Java too.
The error messages say that the compiler could not find the jar file
javax.jar, or servlet.jar depends on your java version. The package
statement at the first line is necessary to group java classes in
domains that have the same functionality or fit tematiclly together.
Like 
com.company.database  // all database relevant classes
com.company.gui		// all gui relevant classes.

Furthermore i would recommend that you read a javabook or take the java
trial at java.sun.com, it imparts the basics of java and some higher
approaches.
mfg
Michael Nitschke
-Original Message-
From: Sayeed [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 27, 2004 9:19 AM
To: Tomcat Users List
Subject: Java Class is not compiling

Sir
I am new to Tomcat.
I am now making my first Servlet and trying to creat a class (sayeed).
It give me errors as under :
C:\Apache\Tomcat\webapps\ch03\myfirstwebapp>javac sayeed.java
sayeed.java:5: package javax.servlet.http does not exist
import javax.servlet.http.HttpServlet;
 ^
sayeed.java:6: package javax.servlet.http does not exist
import javax.servlet.http.HttpServletRequest;
---
Also another thing what is the PACKAGE which have to write in first line
of my servlet(sayeed):
package com.wrox.projsp.ch03.myfirstwebapp;
Can anyone please help me in detail. I have however downloaded Javax
directory from sun.java.com- where this directory i have to put? i am
using j2sdk1.4.2.
Thanx in advance.
Saeed
-
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]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
This message contains information that is considered to be sensitive or confidential 
and may not be forwarded or disclosed to any other party without the permission of the 
sender. If you received this message in error, please notify me immediately so that I 
can correct and delete the original email. Thank you.

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


RE: Java Class is not compiling

2004-07-27 Thread Aris Javier
You should download j2sdkee version or the enterprise version of
java.. 

=)

-Original Message-
From: Nitschke Michael [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 27, 2004 3:30 PM
To: Tomcat Users List
Subject: RE: Java Class is not compiling


It seams you are new to Java too.
The error messages say that the compiler could not find the jar file
javax.jar, or servlet.jar depends on your java version. The package
statement at the first line is necessary to group java classes in
domains that have the same functionality or fit tematiclly together.
Like 
com.company.database  // all database relevant classes
com.company.gui // all gui relevant classes.

Furthermore i would recommend that you read a javabook or take the java
trial at java.sun.com, it imparts the basics of java and some higher
approaches.

mfg
Michael Nitschke
-Original Message-
From: Sayeed [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 27, 2004 9:19 AM
To: Tomcat Users List
Subject: Java Class is not compiling

Sir
I am new to Tomcat.
I am now making my first Servlet and trying to creat a class (sayeed).
It give me errors as under :

C:\Apache\Tomcat\webapps\ch03\myfirstwebapp>javac sayeed.java
sayeed.java:5: package javax.servlet.http does not exist
import javax.servlet.http.HttpServlet;
  ^
sayeed.java:6: package javax.servlet.http does not exist
import javax.servlet.http.HttpServletRequest;

---
Also another thing what is the PACKAGE which have to write in first line
of my servlet(sayeed):

package com.wrox.projsp.ch03.myfirstwebapp;

Can anyone please help me in detail. I have however downloaded Javax
directory from sun.java.com- where this directory i have to put? i am
using j2sdk1.4.2.

Thanx in advance.

Saeed


-
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]


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



RE: Java Class is not compiling

2004-07-27 Thread Nitschke Michael
It seams you are new to Java too.
The error messages say that the compiler could not find the jar file
javax.jar, or servlet.jar depends on your java version.
The package statement at the first line is necessary to group java
classes in domains that have the same functionality or fit tematiclly
together.
Like 
com.company.database  // all database relevant classes
com.company.gui // all gui relevant classes.

Furthermore i would recommend that you read a javabook or take the java
trial at java.sun.com, it imparts the basics of java and some higher
approaches.

mfg
Michael Nitschke
-Original Message-
From: Sayeed [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 27, 2004 9:19 AM
To: Tomcat Users List
Subject: Java Class is not compiling

Sir
I am new to Tomcat.
I am now making my first Servlet and trying to creat a class (sayeed).
It give me errors as under :

C:\Apache\Tomcat\webapps\ch03\myfirstwebapp>javac sayeed.java
sayeed.java:5: package javax.servlet.http does not exist
import javax.servlet.http.HttpServlet;
  ^
sayeed.java:6: package javax.servlet.http does not exist
import javax.servlet.http.HttpServletRequest;

---
Also another thing what is the PACKAGE which have to write in first line
of
my servlet(sayeed):

package com.wrox.projsp.ch03.myfirstwebapp;

Can anyone please help me in detail. I have however downloaded Javax
directory from sun.java.com- where this directory i have to put? i am
using
j2sdk1.4.2.

Thanx in advance.

Saeed


-
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]