一个简单的JSP文件
我写一个很简单的jsp文件,为什么总是编译不了,各位高人指点一下啊!!不胜感激~~~
javac: invalid flag: D:\Program Files\JCreatorV3\May.jsp
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 used
-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
Process completed.
问题点数:50、回复次数:7Top
1 楼kingfish(工作很忙,很少来csdn...)回复于 2005-04-04 19:05:26 得分 10
用javac编译jsp?
jsp你放在web服务器的相应位置,启动时会由它自动编译的(转为servlet编译)Top
2 楼zhutouzip(醒了的鸟)回复于 2005-04-04 19:06:46 得分 10
javac怎么能用来编译jsp文件啊?
你要下载一个jsp,servlet容器,在浏览器中浏览jsp文件!
到www.apache.org上去下载一个tomcat!Top
3 楼steedhorse(晨星)回复于 2005-04-04 19:07:36 得分 5
JSP由JSP容器(如Tomcat)负责编译执行。Top
4 楼lxt322625(霞涛)回复于 2005-04-04 19:09:47 得分 10
还是去配置一下你的servlet容器吧 比如说tomcat 需要放在root文件夹下面Top
5 楼aqining(阿启)回复于 2005-04-04 19:10:34 得分 10
呵呵,蛮有想象力的。
其实JSP为什么不能用Java编译了?
他的过程无非是*.jsp==〉*.java==>*.class,当然了,还是用Web容器自动编译的好。
javac *.jsp我不会!Top
6 楼apple21(编姑娘的小花篮)回复于 2005-04-04 19:23:08 得分 5
javac怎么能用来编译jsp文件啊?
要在容器中才行Top
7 楼xfanghua(红尘摆渡人)回复于 2005-04-04 20:51:14 得分 0
哈哈
方法错了Top




