我已将tomcat 9放在我的macbook pro(El Capitan)上,当我执行时,它会完美地从终端运行: ./catalina.sh开始/停止
然而,当我尝试从Netbeans 8启动时,我收到以下错误: /Users/sigals/Documents/apache-tomcat-9.0.0.M3/bin/catalina.sh:line 334:127.0.0.1:找不到命令 /Users/sigals/Documents/apache-tomcat-9.0.0.M3/bin/catalina.sh:line 334:Sigals-MBP:找不到命令 用法:java [-options] class [args ...] (执行课程) 或java [-options] -jar jarfile [args ...] (执行jar文件) 选项包括: -d32使用32位数据模型(如果可用) -d64使用64位数据模型(如果可用) -server选择"服务器" VM 默认VM是服务器, 因为你在服务器级机器上运行。
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A : separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose:[class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
Warning: this feature is deprecated and will be removed
in a future release.
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -no-jre-restrict-search
Warning: this feature is deprecated and will be removed
in a future release.
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions with specified granularity
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions with specified granularity
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
show splash screen with specified image
有关详细信息,请参阅http://www.oracle.com/technetwork/java/javase/documentation/index.html。
我试图更改catalina启动脚本,但这并没有改变任何内容。
有没有人有任何想法?
提前致谢