简体   繁体   中英

Using other JVM languages with Tomcat servlet container

如何在Apache Tomcat中使用其他JVM语言(例如Scala)?

In the case of scala, you should be able to just include scala-library.jar in /WEB-INF/lib . This is because scala is compiled to bytecode.

As sblundy states, there's no special tricks involved here beyond adding the scala library, either to the app server's common classpath or to your applications classpath.

As with most "Java" web servers, Tomcat works with classfiles and bytescode, not with Java source. classfiles and bytecode are exactly what scalac generates...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM