SmartTomcat icon indicating copy to clipboard operation
SmartTomcat copied to clipboard

Use Custom JDK for tomcat launch, instead of project default?

Open ccorneli opened this issue 1 year ago • 1 comments

I would like to launch Tomcat using different JDK from the default project configuration but there doesn't seem to be a way to do that.
In my case I'm trying to run TC9 using JDK 1.8 when my project SDK is JDK21. (assuming the project is set to compile for JDK8 compatibility)

The plug-in doesn't seem to apply setenv.bat to force the JAVA_HOME, nor does it work to try to override that with ENV in the plugin config

I'm guessing it would need to be patch created here: https://github.com/zengkid/SmartTomcat/blob/cb4ea9e5b1aa21c177b1fea71962e8dc55d0531d/src/main/java/com/poratu/idea/plugins/tomcat/conf/TomcatCommandLineState.java#L145

ccorneli avatar Nov 29 '24 19:11 ccorneli

@ccorneli Try this https://plugins.jetbrains.com/plugin/24555-smart-tomcat-pro

image

yuezk avatar Nov 30 '24 09:11 yuezk