Topic: 我的hello world |
Print this page |
1.我的hello world | Copy to clipboard |
Posted by: dmcz Posted on: 2004-09-02 13:31 javac后提示: test.java:1: class HelloWorld is public, should be declared in a file named helloworld.java public class HelloWorld { ^ 1 error 请教各位老师出什么错了啊? |
2.Re:我的hello world [Re: dmcz] | Copy to clipboard |
Posted by: nothing Posted on: 2004-09-02 13:37 文件名用: HelloWorld.java |
3.Re:我的hello world [Re: dmcz] | Copy to clipboard |
Posted by: dmcz Posted on: 2004-09-02 14:07 谢谢您nothing老师! 您就是我的第一课老师. |
4.Re:我的hello world [Re: dmcz] | Copy to clipboard |
Posted by: nothing Posted on: 2004-09-02 15:05 dmcz wrote: |
5.Re:我的hello world [Re: dmcz] | Copy to clipboard |
Posted by: dmcz Posted on: 2004-09-02 16:07 老师!你还在吗? nothing老师烦请您再帮我解释一下这个问题 java HelloWorld时 Exceptioninthread"main"java.lang.NoClassDefFoundError:HelloWorld 根据我在网上查到的资料说是因为没有加变量"."(dot),可我在PATH中加了呀? C:\j2sdk1.4.2_05\bin;.;C:\j2sdk1.4.2_05\lib;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\KAV6 这怎么回事呢? |
6.Re:我的hello world [Re: dmcz] | Copy to clipboard |
Posted by: nothing Posted on: 2004-09-02 16:20 . 该加在 classpath中 |
7.Re:我的hello world [Re: dmcz] | Copy to clipboard |
Posted by: dmcz Posted on: 2004-09-02 16:33 多么令人激动的一刻啊!真可惜贴不出来.多想和大家一起分享这具有重要意义的一刻! 来吧nothing老师,干一杯!让明天见证历史! |
8.Re:我的hello world [Re: dmcz] | Copy to clipboard |
Posted by: nothing Posted on: 2004-09-02 16:46 dmcz wrote: |
9.Re:我的hello world [Re: dmcz] | Copy to clipboard |
Posted by: bluedest Posted on: 2004-09-02 16:59 这哥们 的好学精神值得学习 继续努力 |
10.Re:我的hello world [Re: dmcz] | Copy to clipboard |
Posted by: why Posted on: 2004-09-02 19:06 >> C:\j2sdk1.4.2_05\bin;.;C:\j2sdk1.4.2_05\lib 为什么那样多大侠喜欢在 PATH 或 CLASSPATH 上加入像 C:\j2sdk1.4.2_05\lib 的咚咚? 请问是哪本书指示的? |
11.Re:我的hello world [Re: dmcz] | Copy to clipboard |
Posted by: booolee Posted on: 2004-09-03 10:18 很多人搞不清楚状况,所以觉得可以的path都给加上了,哈哈!! 希望楼主在Helloworld之后,继续推出好的“作品”,加油吧,书籍才是你最好的老师! |
12.Re:我的hello world [Re: why] | Copy to clipboard |
Posted by: href Posted on: 2004-09-03 10:20 why wrote: 不过有书上讲到在CLASSPATH环境变量中加dt.jar, tools.jar 不知用意再哪里 |
13.Re:我的hello world [Re: href] | Copy to clipboard |
Posted by: why Posted on: 2004-09-03 10:27 href wrote: I only know that they are for SDK only. Since you asked, let's take a look at the Java documentation on the matter: http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/jdkfiles.html c:\j2sdk1.4.2\lib Files used by the development tools. These include tools.jar, which contains non-core classes for support of the tools and utilities in the SDK. Also includes dt.jar, the DesignTime archive of BeanInfo files that tell interactive development environments (IDE's) how to display the Java components and how to let the developer customize them for the application. |
14.Re:我的hello world [Re: dmcz] | Copy to clipboard |
Posted by: dmcz Posted on: 2004-09-03 15:35 我是从VC++转过来的学生,初步了解一下JAVA,感觉没什么特殊,JAVA能做到的VC++可以做的更好,不知道为什么JAVA会风靡?!! |
15.Re:我的hello world [Re: dmcz] | Copy to clipboard |
Posted by: decun Posted on: 2004-09-03 20:36 dmcz wrote: 个人感觉是JAVA的有些机制 让他比C++要安全一些 |
16.Re:我的hello world [Re: dmcz] | Copy to clipboard |
Posted by: why Posted on: 2004-09-03 20:40 请开新话题讨论和比较 Java 和 C++/VC++ 就此关版 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |