免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 963 | 回复: 0
打印 上一主题 下一主题

Java来由,快速入门 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-05-14 18:43 |只看该作者 |倒序浏览
Sun Microsystems created the Java language and ships a free JDK for its Solaris operating system and also for Linux and Microsoft Windows platforms.
get the JDK and not the Java Runtime Environment. The JRE enables you to run existing Java programs, but not to write and compile your own.
You need a Java compiler to use JavaServer Pages.
The Sun JDK is not the only Java programming environment you can use. gcj, for example, is a Java compiler released under the GNU general public license. A number of companies sell Java IDEs (integrated development environments), and high-quality open-source IDEs are also available. 比如说IBM等鼎力支持的eclipse
A simple test to see whether you've setup java environment is to write yourself a "hello world" program:
public class hw
    {
    public static void main(String[] args)
        {
        System.out.println("Hello World");
        }
    }
Save it with the same name as the public class and the .java extension: hw.java. Compile it with:
javac hw.java
Once you have compiled a Java program, you must still run it. Java programs are not compiled into native machine language, so they cannot be executed directly by the system. Instead, they are run by another program known as the Java interpreter.
java hw
If Hello World appears on the screen, it's OK.
另外关于一些软件、书籍的下载地址,请看左边的“我的链接”!
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/2355/showart_112618.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP