在命令行输入: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
-O Optimize; may hinder debugging or enlarge class file
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are u
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
description The requested resource (/webapps/myJSPs/Hours/myjsp.jsp) is not available.
Apache Tomcat/4.1.30
程序:<HTML>
<HEAD><TITLE>A Simple JSP</TITLE></HEAD>
<BODY>
<FONT COLOR="blue" FACE="Trebuchat">
Hello! The time is now <%= new java.util.Date() %>
</CENTER>
</FONT>
</BODY>
</HTML>