按照网上的步骤,在mac上安装tomcat后,写个简单的测试类报错:错误 找不到或无法加载主类 Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java (0x10d19c4c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home…
1.直接解压apache-tomcat-7.0.69.tar.gz 存放在/home目录下 根据需要自定义tomcat名称 mv apache-tomcat-7.0.69 Tomcat7 2.解压cronolog-1.6.2.tar.gz tar -zxvf cronolog-1.6.2.tar.gz ./configure 如果此步骤报错则根据提示对应解决,一般情况下是系统没有安装gcc make make install 3.编辑Tomcat7/bin/catalina.sh vim ca…