Italiano
Instant Developer Foundation Documentation
  • Release notes
  • Version 22.5.8700
  • New features

JAVA: Tomcat 9

JDK8 copy link

Description

Instant Developer 22.5 can now also compile for Tomcat9 (with JDK8).

Instant Developer can be configured to use a specific version of Tomcat through the IDE parameter:


New IDE configuration parameter.
The new parameter has 3 possible values:
  • Automatic: indicates that Instant Developer, upon the first compilation, will automatically try to find out which version of Tomcat is used. This information will then be stored in memory for subsequent compilations.
  • 9: Indicates that Instant Developer must compile for Tomcat 9 (JDK8). Therefore, it will not use the IJLIB.jar file located in the CURRENT\Template\Servlet\web\lib folder, but instead the ijlib8.jar file located in the CURRENT\Lib folder.
  • 10 or later: Instant Developer compiles for version 10 of Tomcat or one of the later versions.

The default value is Automatic.

Features involved

Compiling web applications in Java with Instant Developer.

Notes

  • If the value of the new parameter is Automatic, Instant Developer automatically calculates the version of Tomcat used. To do so, it makes these attempts:
    • Launches the "[TOMCATDIR ]\bin\catalina.bat version" command and reads its output;
    • if the previous operation fails, it launches the "[JDKPATH]\bin\java.exe -classpath [TOMCATDIR]\lib\catalina.jar org.apache.catalina.util.ServerInfo" command and reads its output;
    • if the previous operation fails, it attempts to read the [TOMCATDIR]\RELEASE-NOTES file;
    • if the previous operation fails, it attempts to read the [TOMCATDIR]\webapps\docs\RELEASE-NOTES.txt file;
  • Click here to see which versions of JDK are required by the versions of Tomcat. Instant Developer 22.5 supports Tomcat 9 and later (with JDK8 and JDK17 respectively)
  • Version 10 of Tomcat has changed the namespace of the HTTP classes (from "javax.*" to "jakarta.*"). In Java template sources (in the CURRENT\Template\Servlet\src folder) there is a reference to "jakarta" but Instant Developer replaces it automatically if compiling for Tomcat9. Therefore, if you want to personalize the file, we still recommend that you copy the standard template file (where it says "jakarta") even if the application will be run on Tomcat9 (which would require "javax"). Instant Developer will adapt the sources automatically for Tomcat9 and the custom directory will already be ready if you move to Tomcat10 later.

Changed on: 15/12/2022 / From version: 22.5.8700

Is this article helpful?

Thank you for your feedback!

Need more help?

Check out the forum