zengkid / SmartTomcat

The Tomcat plugin for Intellij IDEA
Apache License 2.0
126 stars 55 forks source link

How to add external folder to CLASSPATH? #43

Closed zizifn closed 4 years ago

zizifn commented 4 years ago

My project needs an external folder as classpath, normal I would add setenv.bat in tomcat\bin and start tomcat by using catalina.bat. But it seems I can't do this by using SmartTomcat.

zengkid commented 4 years ago

My project needs an external folder as classpath, normal I would add setenv.bat in tomcat\bin and start tomcat by using catalina.bat. But it seems I can't do this by using SmartTomcat.

you can put the external folder or jars into Dependencies in project (webapp mudule). image

zizifn commented 4 years ago

My project needs an external folder as classpath, normal I would add setenv.bat in tomcat\bin and start tomcat by using catalina.bat. But it seems I can't do this by using SmartTomcat.

you can put the external folder or jars into Dependencies in project (webapp mudule). image

Thanks for the quick reply, but which item should same as eclipse tomcat user entries(Add folders).

image

zengkid commented 4 years ago

@zizifn if you can't put the folder into project dependencies, you can pack the classpath folder to a jar file, and then put jars into tomcat_home\lib. folder is still not supporting yet, but you still can add into web project/module dependencies.

zengkid commented 4 years ago

@zizifn you can put the folder in tomcat_home\lib, and then rename to xxx.jar folder to cheat the system

zizifn commented 4 years ago

@zizifn you can put the folder in tomcat_home\lib, and then rename to xxx.jar folder to cheat the system

Thanks, I fixed this by add folder in tomcat_home\conf\catalina.properties, i will try your solution when I got time..

shared.loader="C:/**","C:/**"