简体   繁体   English

如何在Linux中设置servlet-api.jar文件的类路径

[英]How to set class path for servlet-api.jar file in linux

I want to compile the servlet in the Linux System. 我想在Linux系统中编译servlet。 For that I need to set the classpath for servlet-api.jar. 为此,我需要为servlet-api.jar设置类路径。 How to do that? 怎么做?

Thanks 谢谢

Same way as any other OS: use the javac.exe -classpath argument. 与任何其他操作系统相同的方式:使用javac.exe -classpath参数。

Or learn how to compile using Ant. 或学习如何使用Ant进行编译。

Or use an IDE that helps you. 或使用可以为您提供帮助的IDE。

This page describes how to set classpath in solaris or linux. 本页描述如何在solaris或linux中设置类路径。 Also try this . 也试试这个

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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