Hi,

 2. Can I deploy and run an *application built with Java 8,* on *Tomcat
    9.0.111* running on *Java 25*? If compatibility issues exist, could
    you please advise on how to address them?

Yes. N/A.

Caution: Compatibility issues could occur, but this depends on your application:

In Java 11 the Java EE and CORBA modules were removed from the JDK itself. If you use for example JAX-WS or the activation framework you now have to add external libraries to your application.
For details see https://openjdk.org/jeps/320

Java 17 now strongly encapsulates JDK internals. If you for example access parts of it via reflection this isn't possible anymore. Additionally the security manager is now deprecated and marked for removal, and beginning with Java 24 permanently disabled. It still exists in Java 25, but all methods in it throw a SecurityException.

So, yes, issues can arise. Try compiling your application against Java 25 to check whether there are problems, and try running it to see whether there are runtime issues...


Apart from that you should have a look at openjdk.org to find out what was changed, added, deprecated etc. in which Java version:
* https://openjdk.org/projects/jdk9
  for Java 9
* https://openjdk.org/projects/jdk/<version>/
  for Java >= 10


Apart from the above you should check your dependencies for possible and necessary updates/upgrades. AFAIR pdfbox 2.x has a reference to some classes from JAXB and doesn't work out-of-the-box with Java 11+...



HTH

Thorsten

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to