Re: rare problem with javac

2003-11-05 Thread Christopher Schultz
Javier,
I'm trying to compile my first servlet but Iýve
problems with javac. 

If I try to run javac without parameters I receive the
message:
Exception in thread "main"
java.lang.NoClassDefFoundError:
com/sun/tools/javac/Main
So, this happens if you invoke javac both with and without parameters? 
I'd say that's less than "rare".

Is %JAVA_HOME%\bin in your path?

Does %JAVA_HOME%\lib\tools.jar exist? If not, re-install your JDK, cause 
it's broken.

-chris

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


Re[2]: rare problem with javac

2003-11-05 Thread Javier
On 05/11/2003 at 13:21 Vladimer Shioshvili wrote:

>Javier,
>
>Check this out..
>
>http://forum.java.sun.com/thread.jsp?forum=32&thread=292032&tstart=0&trange
=15
>


Thanks a lot !!!







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



Re: rare problem with javac

2003-11-05 Thread Rhino
This mailing list is for people that are writing Java servlets that use the
Tomcat servlet containers. Are you using Tomcat or are you trying to write a
normal Java applet or application?

If you are writing a normal Java applet or application, you should look at
the Java FAQ by Peter van der Linden. I looked up your question in the FAQ.
If you follow this link

http://java.sun.com/people/linden/faq_a.html#Getting%20Started

and look at question 2 - Why doesn't my "Hello World!" program compile? -
you should get some good suggestions on fixing your problem. If that doesn't
help, try the comp.lang.java.programmer newsgroup on Usenet.

If you are using Tomcat, what version of Tomcat are you using and what
operating system are you using? What is the version of the operating system?
Which JSDK are you using? Also, are you using an IDE; if yes, which one?

Rhino


- Original Message - 
From: "Javier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 05, 2003 1:02 PM
Subject: rare problem with javac


>
> Hi
>
> I'm trying to compile my first servlet but Iýve
> problems with javac.
>
> If I try to run javac without parameters I receive the
> message:
>
> Exception in thread "main"
> java.lang.NoClassDefFoundError:
> com/sun/tools/javac/Main
>
>
> and I receive the same with
>
> javac -h
> javac -?
> javac -classpath . Algo.java
>
>
> ...etc
>
>
> I never seen something like this...andy idea ?
>
> 
>
> PD: I'm running java on W2K server
>
>
> __
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree
>
> -
> 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: rare problem with javac

2003-11-05 Thread V.Karthik Kumar
I could see what the problem is:

The  PATH is the ariable, in which the various
Directories are searched in order.

Hence, it is often beneficial to have the env.
variable set like:

PATH=%JAVA_HOME\bin;%PATH%;.

--- Vladimer Shioshvili <[EMAIL PROTECTED]> wrote:
> Javier,
> 
> Check this out..
> 
>
http://forum.java.sun.com/thread.jsp?forum=32&thread=292032&tstart=0&trange=15
> 
> Vlad
> At 01:02 PM 11/5/2003, you wrote:
> 
> >Hi
> >
> >I'm trying to compile my first servlet but Iýve
> >problems with javac.
> >
> >If I try to run javac without parameters I receive
> the
> >message:
> >
> >Exception in thread "main"
> >java.lang.NoClassDefFoundError:
> >com/sun/tools/javac/Main
> >
> >
> >and I receive the same with
> >
> >javac -h
> >javac -?
> >javac -classpath . Algo.java
> >
> >
> >...etc
> >
> >
> >I never seen something like this...andy idea ?
> >
> >
> >
> >PD: I'm running java on W2K server
> >
> >
> >__
> >Do you Yahoo!?
> >Protect your identity with Yahoo! Mail AddressGuard
> >http://antispam.yahoo.com/whatsnewfree
> >
>
>-
> >To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> Vladimer Shioshvili
> 
> QRC Division of Macro International Inc.
> 7315 Wisconsin Avenue, Suite 400W
> Bethesda, MD 20814
> 
> Phone: (301) 657 3077 ext. 155 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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



Re: rare problem with javac

2003-11-05 Thread Vladimer Shioshvili
Javier,

Check this out..

http://forum.java.sun.com/thread.jsp?forum=32&thread=292032&tstart=0&trange=15

Vlad
At 01:02 PM 11/5/2003, you wrote:
Hi

I'm trying to compile my first servlet but Iýve
problems with javac.
If I try to run javac without parameters I receive the
message:
Exception in thread "main"
java.lang.NoClassDefFoundError:
com/sun/tools/javac/Main
and I receive the same with

javac -h
javac -?
javac -classpath . Algo.java
...etc

I never seen something like this...andy idea ?



PD: I'm running java on W2K server

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Vladimer Shioshvili
QRC Division of Macro International Inc.
7315 Wisconsin Avenue, Suite 400W
Bethesda, MD 20814
Phone: (301) 657 3077 ext. 155 

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


Re: rare problem with javac

2003-11-05 Thread V.Karthik Kumar
Better  ...

If you already  have tomcat,  take the  JAR from
$TOMCAT_HOME/common/lib dir.

--- Jan Faerber <[EMAIL PROTECTED]>
wrote:
> Am Mittwoch, 5. November 2003 19:02 schrieb Javier:
> > Hi
> >
> > I'm trying to compile my first servlet but Iýve
> > problems with javac.
> >
> 
> 
> Hi - "Java Examples in a Nutshell" - David Flanagan
> - page 460 - in the 2nd Edition:
> 
> "Compiling Servlets
> 
> Your servlet conainer should come with a JAR file
> that contains the class 
> files for the Servlet API. It will probably be in a
> file named 
> "lib/servlets.jar". You need this JAR file to be
> able to compile the classes 
> in this chapter. [ remark ... Well - not only those
> in this book I guess - 
> Jan ... ] Either edit your _CLASSPATH_ environment
> variable to include the 
> file or place a copy of the file in the
> "lib/jre/ext/" directory of your Java 
> SDK, where the Java VM can find it automatically.
> Once you have done this, 
> you can compile servlet classes with "javac", just
> as you would compile other 
> Java classes. If you cannot find the Servlet API
> classes in your servlet 
> container distribution, you should be able to
> download them from Sun´s web 
> site ("http://java.sun.com/products/servlet/";). Be
> careful to download a 
> version that matches the specifications supported by
> your servlet container."
> 
> 
> 
> Hope it helps - Jan
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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



Re: rare problem with javac

2003-11-05 Thread Jan Faerber
Am Mittwoch, 5. November 2003 19:02 schrieb Javier:
> Hi
>
> I'm trying to compile my first servlet but Iýve
> problems with javac.
>


Hi - "Java Examples in a Nutshell" - David Flanagan
- page 460 - in the 2nd Edition:

"Compiling Servlets

Your servlet conainer should come with a JAR file that contains the class 
files for the Servlet API. It will probably be in a file named 
"lib/servlets.jar". You need this JAR file to be able to compile the classes 
in this chapter. [ remark ... Well - not only those in this book I guess - 
Jan ... ] Either edit your _CLASSPATH_ environment variable to include the 
file or place a copy of the file in the "lib/jre/ext/" directory of your Java 
SDK, where the Java VM can find it automatically. Once you have done this, 
you can compile servlet classes with "javac", just as you would compile other 
Java classes. If you cannot find the Servlet API classes in your servlet 
container distribution, you should be able to download them from Sun´s web 
site ("http://java.sun.com/products/servlet/";). Be careful to download a 
version that matches the specifications supported by your servlet container."



Hope it helps - Jan

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



rare problem with javac

2003-11-05 Thread Javier

Hi

I'm trying to compile my first servlet but Iýve
problems with javac. 

If I try to run javac without parameters I receive the
message:

Exception in thread "main"
java.lang.NoClassDefFoundError:
com/sun/tools/javac/Main


and I receive the same with 

javac -h
javac -?
javac -classpath . Algo.java


...etc


I never seen something like this...andy idea ?



PD: I'm running java on W2K server


__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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