ср, 4 сент. 2024 г. в 02:33, <charliedidon...@gmail.com>: > > I am migrating a Spring MVC app from 4.x to 6.x so I am going from Tomcat > 9.1 Java 8 to Tomcat 10.1 Java 17. > > I noticed that in the migration steps on the Tomcat site that there is a > tool to help with the javax to Jakarta package conversions > > > > I have downloaded the migration tool from Github > https://github.com/apache/tomcat-jakartaee-migration > > I currently have 2 versions of Java on my machine. Java 8 (Oracle) and Java > 17 (Open JDK) > > > > And am trying to build it and am getting the following error in Eclipse when > running maven verify. > > It appears to be using my Java 8 JRE to run the maven build even though I > have JRE_HOME set to below > > JRE_HOME=C:\Program Files\OpenLogic\jdk-17.0.12.7-hotspot > > [...] > > > Output from Maven verify is below >
How do you start Maven? Is it "mvn verify" in a Windows Console, or in some other way (e.g. from within an IDE)? On Windows "mvn" executes "mvn.cmd" batch script, and that script works with JAVA_HOME (and knows nothing about JRE_HOME). If you run from within an IDE, the Java Runtime used for Maven is configured in launch configuration for Maven (within the IDE), and environment variables do not matter at all. Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org