tomcat_home环境变量设置一下,java_home设置一下
解决方案 »
- 日语操作系统下的反斜杠显示问题
- javaweb部署水晶报表解决方案
- 哪位大侠告诉我这两个有什么区别,为是么写相同了就不好用了
- some problem with CLOB
- 请问Eclipse快捷键有时候不起作用了?
- 谁能给我一个中文字符转换的程序
- 关于系统配置的问题
- 今天心血来潮想学JSP,想问大家一个问题。
- 离线浏览器可以不可以将jsp+数据库支持的网页包括数据都抓下来?
- 登录页面登录成功后如何让其他页面访问到用户名,我把用户名放入session但读取时为null?希望大家能给点建议啊
- 请教一个登陆窗口连接数据库的问题,谢谢!
- 高分急求,tomcat 5.0和apache2.0的整合而为以及虚拟目录的设置,并现金答谢.
java_home=C:\j2sdk1.4.2_03
classpath=C:\j2sdk1.4.2_03\lib\tools.jar;C:\j2sdk1.4.2_03\lib\dt.jar;C:\j2sdk1.4.2_03\binpath=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;D:\cimit12\bin;D:\cimit12\var\eusys;D:\cimit12\var\usys;D:\cimit12\var\moldbase3d\dll;D:\cimit12\var\ims\imspost;C:\j2sdk1.4.2_03
弹出对话框
提示:
using java development kit found in C:\j2sdk1.4.2_03\bin
但是也能安装,高手看看是什么问题?
急救呀!
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
......
但是就是搞不明白!
另外有的版本的Tomcat就是不好用,你不妨换个版本试试。
'javac' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
在C:\j2sdk1.4.2_03\bin目录下运行javac 提示:Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are us
ed
-classpath <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-help Print a synopsis of standard options
重启了tomcat,还是同样错误。
我的tomcat以前是好好的,我只不是又装了一下mysql,就坏了!
后了再怎样重装tomcat 和 jdk 都有同样错误!
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
......所以我想是环境变量的设置问题,但是就是解决不了!
我把tomcat卸载了,重新安装了,
弹出对话框
提示:
using java development kit found in C:\j2sdk1.4.2_03\bin
但是也能安装,高手看看是什么问题?
急救呀!
###########################################################
又怀疑是jdk问题上,真不知道问题出在那里,jdk我也重装了两次了!
path=C:\j2sdk1.4.2_03\bin
重启tomcat 还是同样的错误!
回复人: dragon18(dragon) ( ) 信誉:100 2004-02-03 09:41:00 得分:0
还设置了:
classpath=C:\j2sdk1.4.2_03\lib\tools.jar;C:\j2sdk1.4.2_03\lib\dt.jar;C:\j2sdk1.4.2_03\binpath=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;D:\cimit12\bin;D:\cimit12\var\eusys;D:\cimit12\var\usys;D:\cimit12\var\moldbase3d\dll;D:\cimit12\var\ims\imspost;C:\j2sdk1.4.2_03
这里面难道没有吗?把你的classpath和path再贴一下,而且不要不停的卸载和重装tomcat和
jdk,用java -version看看你的jdk版本,说明你的tomcat 版本
运行tomcat 时,出现:C:\j2sdk1.4.2_03\bin\bin下找不着java.exe
所以才设置path=C:\j2sdk1.4.2_03
jdk 版本为:
C:\>cd C:\j2sdk1.4.2_03C:\j2sdk1.4.2_03>java -version
java version "1.4.2_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)C:\j2sdk1.4.2_03>tomcat 在文件夹:C:\Program Files\Apache Group\Tomcat 4.1 下
安装时,我默认安装的,应该是4.1的吧!
回复人: wssg(^_^) ( ) 信誉:99 试试把tools.jar拷贝到common\lib目录##
这位兄弟,我没有在jdk安装目录下搜索到common目录,
不知怎么回事!!!
tools.jar在jdk目录
common\lib在tomcat目录