You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Brett M. Bergquist" <br...@mail.com> on 2001/12/06 20:20:04 UTC

Re: IE 6 upgrade and java plug-in causing problems (reset without attachement)

>From the command line, type "java -version".  To find out which java you would run, I've included a ".bat" file for NT that will
tell you.  Have "which.bat" on your path and type "which java.exe".


Here is the batch file inline.  Just cut and paste it and save it to a file called which.bat.

---------- CUT HERE ---------------
@echo off
:: Parameter error checking:
if "%1"=="" goto Syntax
echo %1 | find /v ":" | find /v "\" | find /v "*" | find /v "?" | find /v "," | find /v ";" | find /v "/"  | find "%1" > nul
if errorlevel 1 goto Syntax

:: Actual program is only one line:
for %%a in (.;%pathext%) do for %%b in (%1%%a) do ( echo %%~f$PATH:b | find /i "%1" )
goto End

:Syntax
:: Help screen:

echo WHICH, Version 1.20
echo UNIX-like WHICH utility for NT
echo Written by Rob van der Woude
echo.
echo Usage:  WHICH  program_name
echo.
echo You may specify program_name with or without
echo extension, but without a drive or path.
echo Spaces or wildcards aren't allowed either.

:End

---------- CUT HERE --------------

----- Original Message -----
From: Steve Bearss <st...@rogers.com>
To: Tomcat <to...@jakarta.apache.org>
Sent: Thursday, December 06, 2001 11:28 AM
Subject: IE 6 upgrade and java plug-in causing problems


> Hello All,
>
> I recently upgraded to IE 6 and I was prompted to install the latest java plug-in as well.  Now my Tomcat is not running.  All my
java development is on a separate partition, which includes the jdk and tomcat.  I'm not sure what IE did (it is on another
partition) to this setup and I tried to update my JAVA_HOME variable, still no luck.  Is there any way to determine which version of
java is currently running (I seem to have a few copies now) and where it is located?  After that I should be able to re-configure
JAVA_HOME and all is good?
>
> Thanks,
> s
>

---
Brett Bergquist
email: brettb@mail.com


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: IE 6 upgrade and java plug-in causing problems (resetwithoutattachement)

Posted by Steve Bearss <st...@rogers.com>.
thanks for your help.  you have cleared up a number of things for me.  first
of all, i uninstalled the plug-in from my c:  i then re-installed it to my
d: partition (where i have all my java, sdk, tomcat, etc.) and more
specifically into my sdk (D:\SDK\jre). the plug in works fine now and my jsp
pages are running fine.  the install of the java plug in for ie 6 was sent
right to my c: and i was not able to install it into the necessary directory
(D:\SDK\jre) as you have helped me figure out.

thanks again for your time,
Steve

----- Original Message -----
From: "Brett M. Bergquist" <br...@mail.com>
To: "Steve Bearss" <st...@rogers.com>
Sent: Thursday, December 06, 2001 4:04 PM
Subject: Re: IE 6 upgrade and java plug-in causing problems
(resetwithoutattachement)


> It could be a couple of things.  First, its looking for "tools.jar".  This
normally comes with the JDK and not the JRE.  From your
> output is looks like your trying to use the JRE version.  If you've not
done so, you need to download and install the JDK and then
> set JAVA_HOME to this installation directory.  Previously, Sun did not
allow this jar file to be redistributed (license
> restrictions), thus it does not come with Tomcat, but it is contains the
Java compiler and is thus needed for JSP pages.  Recently,
> Sun has changes its redistribution restrictions and this jar file can now
be redistributed.
>
> Another thing that you might want to know.  Using a space in the directory
where "java" is located is probably not going to work.
> If you install the JDK into "c:\program files", you should set JAVA_HOME
using the 8.3 name of this directory.   On NT to find the
> short form of the name, you can use "dir /x" which will display both the
short and long form of the name.  I'm not sure about Win98
> and I don't have a machine to check it on.  You could also right click on
"c:\program files" in explorer, select "properties" and
> note the name shown their.  In any case it's probably "progra~1".  So you
want to set JAVA_HOME to "c:\progra~1\..." where "..." is
> the directory where you install the JDK.
>
> Hope this helps.
>
> ----- Original Message -----
> From: Steve Bearss <st...@rogers.com>
> To: Brett M. Bergquist <br...@mail.com>
> Sent: Thursday, December 06, 2001 3:41 PM
> Subject: Re: IE 6 upgrade and java plug-in causing problems
(resetwithoutattachement)
>
>
> > can you see why i am getting an error 500 with my .jsp page?
> >
> >
> > ----- Original Message -----
> > From: "Brett M. Bergquist" <br...@mail.com>
> > To: "Steve Bearss" <st...@rogers.com>
> > Sent: Thursday, December 06, 2001 3:27 PM
> > Subject: Re: IE 6 upgrade and java plug-in causing problems (reset
> > withoutattachement)
> >
> >
> > > Your right, it's for NT.  I'm not sure that it can be made to work
with
> > Win98.  Then again, this might be the good reason to upgrade
> > > :)
> > >
> > > ----- Original Message -----
> > > From: Steve Bearss <st...@rogers.com>
> > > To: <br...@mail.com>
> > > Sent: Thursday, December 06, 2001 3:22 PM
> > > Subject: Re: IE 6 upgrade and java plug-in causing problems (reset
> > withoutattachement)
> > >
> > >
> > > > thanks brett, but i am running win98 and i don't think that .bat
file
> > works
> > > > with it.
> > > >
> > > > the following were my results from your instructions:
> > > > C:\>java -version
> > > > java version "1.3.1_01"
> > > > Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01a)
> > > > Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)
> > > >
> > > >
> > > > and then using your which utility that is on the root of c:
> > > > C:\>which java.exe
> > > > FOR cannot be nested
> > > > C:\>
> > > >
> > > >
> > > > however i found the copy of java that is currently running at:
> > > >
> > > > C:\Program Files\JavaSoft\JRE\1.3.1_01
> > > >
> > > > and tried to set my JAVA_HOME variable to this and it still didn't
work
> > for
> > > > Tomcat.  i keep getting the following error for my .jsp page:
> > > >
> > > > Error: 500
> > > > Location: /helloworld.jsp
> > > > Internal Servlet Error:
> > > >
> > > > java.lang.NoClassDefFoundError: sun/tools/javac/Main
> > > >  at org.apache.jasper.compiler.SunJavaCompiler.compile(Unknown
Source)
> > > >  at org.apache.tomcat.facade.JasperLiaison.javac(Unknown Source)
> > > >  at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown
> > Source)
> > > >  at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown
Source)
> > > >  at org.apache.tomcat.core.ContextManager.processRequest(Unknown
Source)
> > > >  at org.apache.tomcat.core.ContextManager.internalService(Unknown
> > Source)
> > > >  at org.apache.tomcat.core.ContextManager.service(Unknown Source)
> > > >  at
> > > >
> >
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown
> > > > Source)
> > > >  at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
> > > >  at
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
> > > > Source)
> > > >  at java.lang.Thread.run(Unknown Source)
> > > >
> > > > and it was definitely working before.
> > > >
> > > > any ideas?
> > > >
> > > > thanks for your help,
> > > > steve
> > > >
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Brett M. Bergquist" <br...@mail.com>
> > > > To: "Tomcat Users List" <to...@jakarta.apache.org>
> > > > Sent: Thursday, December 06, 2001 2:20 PM
> > > > Subject: Re: IE 6 upgrade and java plug-in causing problems (reset
> > without
> > > > attachement)
> > > >
> > > >
> > > > > From the command line, type "java -version".  To find out which
java
> > you
> > > > would run, I've included a ".bat" file for NT that will
> > > > > tell you.  Have "which.bat" on your path and type "which
java.exe".
> > > > >
> > > > >
> > > > > Here is the batch file inline.  Just cut and paste it and save it
to a
> > > > file called which.bat.
> > > > >
> > > > > ---------- CUT HERE ---------------
> > > > > @echo off
> > > > > :: Parameter error checking:
> > > > > if "%1"=="" goto Syntax
> > > > > echo %1 | find /v ":" | find /v "\" | find /v "*" | find /v "?" |
find
> > /v
> > > > "," | find /v ";" | find /v "/"  | find "%1" > nul
> > > > > if errorlevel 1 goto Syntax
> > > > >
> > > > > :: Actual program is only one line:
> > > > > for %%a in (.;%pathext%) do for %%b in (%1%%a) do ( echo
%%~f$PATH:b |
> > > > find /i "%1" )
> > > > > goto End
> > > > >
> > > > > :Syntax
> > > > > :: Help screen:
> > > > >
> > > > > echo WHICH, Version 1.20
> > > > > echo UNIX-like WHICH utility for NT
> > > > > echo Written by Rob van der Woude
> > > > > echo.
> > > > > echo Usage:  WHICH  program_name
> > > > > echo.
> > > > > echo You may specify program_name with or without
> > > > > echo extension, but without a drive or path.
> > > > > echo Spaces or wildcards aren't allowed either.
> > > > >
> > > > > :End
> > > > >
> > > > > ---------- CUT HERE --------------
> > > > >
> > > > > ----- Original Message -----
> > > > > From: Steve Bearss <st...@rogers.com>
> > > > > To: Tomcat <to...@jakarta.apache.org>
> > > > > Sent: Thursday, December 06, 2001 11:28 AM
> > > > > Subject: IE 6 upgrade and java plug-in causing problems
> > > > >
> > > > >
> > > > > > Hello All,
> > > > > >
> > > > > > I recently upgraded to IE 6 and I was prompted to install the
latest
> > > > java plug-in as well.  Now my Tomcat is not running.  All my
> > > > > java development is on a separate partition, which includes the
jdk
> > and
> > > > tomcat.  I'm not sure what IE did (it is on another
> > > > > partition) to this setup and I tried to update my JAVA_HOME
variable,
> > > > still no luck.  Is there any way to determine which version of
> > > > > java is currently running (I seem to have a few copies now) and
where
> > it
> > > > is located?  After that I should be able to re-configure
> > > > > JAVA_HOME and all is good?
> > > > > >
> > > > > > Thanks,
> > > > > > s
> > > > > >
> > > > >
> > > > > ---
> > > > > Brett Bergquist
> > > > > email: brettb@mail.com
> > > > >
> > > > >
> > > > > --
> > > > > To unsubscribe:
<ma...@jakarta.apache.org>
> > > > > For additional commands:
<ma...@jakarta.apache.org>
> > > > > Troubles with the list:
<ma...@jakarta.apache.org>
> > > > >
> > > >
> > >
> >
>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>