yes, i think so, it is ecj that did the compilation not the jre/jdk...

max version u can go with tomcat6 is java8, see

            } else if(opt.equals("1.7")) {
                settings.put(CompilerOptions.OPTION_Source,
                             CompilerOptions.VERSION_1_7);
            } else if(opt.equals("1.8")) {
                settings.put(CompilerOptions.OPTION_Source,
                             "1.8"); // CompilerOptions.VERSION_1_8
            } else {
                log.warn("Unknown source VM " + opt + " ignored.");
                settings.put(CompilerOptions.OPTION_Source,
                        CompilerOptions.VERSION_1_5);
            }

i suggest you really consider upgrade tomcat.

my path was tomcat6 - > tomcat8 -> tomcat10

On Mon, Jun 13, 2022 at 6:21 PM Pavan Kumar Tiruvaipati
<ptiruvaip...@gmail.com> wrote:
>
> Hi,
>
> Does ecj 4.6.1 support jsp compilation without JDK ? We would like to
> replace JDK with JRE.
>
>
> Regards,
> Pavan
>
> On Mon, Jun 13, 2022 at 3:46 PM Jason Wee <peich...@gmail.com> wrote:
>
> > yes, i used to use tomcat version 6.0.29 then upgraded to 6.0.53
> > eventually jsp cannot compile to java 8 spec, so i have to upgrade ecj
> > to version 4.6.1 and using jdk8u74. But these were all I can recalled.
> >
> > hth
> >
> > On Mon, Jun 13, 2022 at 5:48 PM Pavan Kumar Tiruvaipati
> > <ptiruvaip...@gmail.com> wrote:
> > >
> > > Hi,
> > >
> > > Our application is running on Tomcat 6.0.45.
> > >
> > >
> > > *Operation System* - Linux & Windows
> > >
> > > Due to security reasons, we are replacing JDK 1.8 with JRE 1.8.
> > >
> > > We understand that Tomcat is bundled with Eclipse JDT compiler -
> > > ecj-4.3.1.jar.
> > >
> > > It will take care of dynamic compilation of JSP pages (Correct me if I'm
> > > wrong)
> > >
> > > But It's unable to recompile JSP pages without JDK.
> > >
> > >
> > > Does Tomcat 6.0.45 or any higher version require JDK to compile JSP
> > pages ?
> > >
> > > Please let us know if you need any more information.
> > >
> > >
> > > Regards,
> > >
> > > Pavan
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: users-h...@tomcat.apache.org
> >
> >

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to