File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes meaning of deprecated main? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "meaning of deprecated main?" Watch "meaning of deprecated main?" New topic
Author

meaning of deprecated main?

kwame Iwegbue
Ranch Hand

Joined: Sep 02, 2000
Posts: 197
pls what does this mean

500 Servlet Exception

Note: sun.tools.javac.Main has been deprecated.
...

I keep getting this is my stack trace.

Does it mean that the servlet container is using a different version of JSP/Servlet than the app was developed in?


Who dares, wins! (SAS motto)
Manhar Puri
Ranch Hand

Joined: Aug 23, 2005
Posts: 41
What version of jdk are you using? Try using an older version than u are currently using.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Which container are you using, is the most recent version?
Have you updated your JDK recently?
Do you have tools.jar added to your classpath?
kwame Iwegbue
Ranch Hand

Joined: Sep 02, 2000
Posts: 197
I am using both Tomcat 5.5 and Resin 2.1.17- which I know supports upto J2SE 1.4/Servlet 2.3. I'm developing with Eclipse 3.1 and WTP v1.0 pluggin- using J2SE 1.5 and servlet 2.4. But even when I switch to v1.4, i still get same message.

When I run the app using Tomcat- no error message, but with resin I'm getting 500 Exception...deprecated main.

Also, I haven't explicitly added tools.jar to classpath. do I have to?

pls help. I am totally stumped!!
[ June 09, 2006: Message edited by: kwame Iwegbue ]
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Are you sure this is the only message? The examples I have seen with this error have the warning and then the actual error. I think the deprecated message is a warning and not the actual problem.
kwame Iwegbue
Ranch Hand

Joined: Sep 02, 2000
Posts: 197
This is the full report:



This same application works just fine using Tomcat 5.5 on same JVM (same classpath settings)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: meaning of deprecated main?