> -----Original Message----- > From: Ganey, Todd [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, March 27, 2002 11:38 AM > To: 'Tomcat Users List' > Subject: RE: JSP compile error when switching JDK to 1.4.0 > > > Bingo!! While the only javac.exe on my machine is for jdk1.4.0 the > tools.jar was out of date. After copying tools.jar over from > the jdk1.4 to > the common/lib folder things worked smoothly. Thank you!! > > One last question though. Why does TomCat copy the file over > (during an > install) from the JDK instead of accessing the file where it is? Just > wondering.
In the past, one of the most frequent problems has been "class not found" for javac's Main class when compiling JSP's. This is one approach to make sure tools.jar is available. As with all approaches, each has its weakness. Cheers, Larry > > Again, thank you very much > > Todd > > -----Original Message----- > From: Larry Isaacs [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, March 27, 2002 7:11 AM > To: 'Tomcat Users List' > Subject: RE: JSP compile error when switching JDK to 1.4.0 > > > Based on discussions I have seen here, I believe your > error implies that javac from your 1.3.02 is being invoked > and it can't handle the new jar format found in rt.jar from > 1.4.0. Try to make sure the tools.jar is coming from 1.4.0. > > Cheers, > Larry > > > -----Original Message----- > > From: Ganey, Todd [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, March 26, 2002 5:54 PM > > To: '[EMAIL PROTECTED]' > > Subject: JSP compile error when switching JDK to 1.4.0 > > > > > > I know this has been posted before, but I either missed or > > there was no > > solution posted on how to correct the JSP compile error when > > you switch JDKs > > from (in my case) 1.3.02 to 1.4.0 in Jakarta TC 4.0.3 on a > > Windows 2000 or > > ME machine. > > > > after installing the new JDK, pointing references to the new > > JDK, and after > > removing (or not removing) the old JDK, starting Tomcat and > > then trying to > > access a JSP page (ex. the examples) > > > > I get this exception (only the first line shown) : > > > > org.apache.jasper.JasperException: Unable to compile class > > for JSPerror: > > Invalid class file format in > > C:\J2SDK1.4.0\JRE\lib\rt.jar(java/lang/Object.class). The > major.minor > > version '48.0' is too recent for this tool to understand. > > > > Now I have hunted the registry and done some searches through > > contents of > > the Tomcat files thinking something still needed to be > > switched over, but I > > have been unable to find the smoking gun. As of right now > > the only way I > > have found to fix this problem is to reinstall Tomcat (the > > typical Windows > > thing to do and very easy, thanks for a good installer), but > > I would prefer > > to know what is causing this and how I could fix it without a > > reinstall. > > > > Thank you, > > > > Todd Ganey > > > > > > -- > > To unsubscribe: > <mailto:tomcat-user-> [EMAIL PROTECTED]> > > For > additional commands: > <mailto:[EMAIL PROTECTED]> > > Troubles with the list: > <mailto:[EMAIL PROTECTED]> > > > > -- > To > unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > > > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
