你文件名肯定是HelloWorld.java.txt
让你的windows显示扩展名,再改名字
让你的windows显示扩展名,再改名字
解决方案 »
- java求一个数的立方根,不使用库函数
- 多线程socket问题
- applet求助
- java有关静态类
- java 的jsp不能request.getParameter("alist");
- jdk1.6.0 应该与什么版本的jacob的配合才能正常使用.我使用jacob的时候出现Can't get object clsid from progid错误!
- 大家有什么好的文档管理工具?比如变来变去的需求文档?
- 请问用RandomAccessFile类的readline()方法读取一个文本文件的一行后,里面有中文,所以得到的字符串就成了乱码?请问怎么转换啊?
- 线性表问题
- 关于calendar的用法,有代码
- 修改有数字签名的jar文件中的内容,是否会使原来的数字签名失效?
- oracle AQ(java)
键入javac显示
C:\>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 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
-target <release> Generate class files for specific VM version
应该算配置成功吧可是怎么不能编译呢??????????????????????????
你在c:\jdk1.3.1_09\bin下
执行dir
看看有没有HelloWorld.java
驱动器 C 中的卷没有标签。
卷的序列号是 0E49-11DF C:\jdk1.3.1_09\bin 的目录2003-10-08 08:53 <DIR> .
2003-10-08 08:53 <DIR> ..
2003-08-04 15:53 360 HtmlConverter.bat
2003-08-04 15:53 20,600 appletviewer.exe
2003-08-04 15:53 24,678 dt_shmem.dll
2003-08-04 15:53 20,584 dt_socket.dll
2003-08-04 15:53 20,598 extcheck.exe
2003-08-04 15:53 20,600 idlj.exe
2003-08-04 15:53 20,581 jar.exe
2003-08-04 15:53 20,602 jarsigner.exe
2003-08-04 15:53 20,574 java.exe
2003-08-04 15:53 20,595 javac.exe
2003-08-04 15:53 20,595 javadoc.exe
2003-08-04 15:53 20,595 javah.exe
2003-08-04 15:53 20,591 javap.exe
2003-08-04 15:53 20,576 javaw.exe
2003-08-04 15:53 20,604 jdb.exe
2003-08-04 15:53 94,302 jdwp.dll
2003-08-04 15:53 20,598 keytool.exe
2003-08-04 15:53 20,612 native2ascii.exe
2003-08-04 15:53 20,580 oldjava.exe
2003-08-04 15:53 20,597 oldjavac.exe
2003-08-04 15:53 20,582 oldjavaw.exe
2003-08-04 15:53 20,596 oldjdb.exe
2003-08-04 15:53 20,604 policytool.exe
2003-08-04 15:53 20,586 rmic.exe
2003-08-04 15:53 20,592 rmid.exe
2003-08-04 15:53 20,604 rmiregistry.exe
2003-08-04 15:53 20,603 serialver.exe
2003-08-04 15:53 20,619 tnameserv.exe
2003-08-04 15:53 20,590 unregbean.exe
2003-10-08 09:23 110 HelloWorld.java
30 个文件 654,908 字节
2 个目录 7,100,579,840 可用字节
HelloWorld.java:5: ';' expected
system.out println("HelloWorld");
^
HelloWorld.java:5: cannot resolve symbol
symbol : class out
location: package system
system.out println("HelloWorld");
^
2 errors
要大写s
=>System.out.println("HelloWorld")