1、jdk-3u 144-1 i nux-arm 6 4-vfp-ti fit ta r gzLinux x86164.65 LT0Sjdk-9u 144dinux-i586 .rpm179 44 MB4jdk-3u 144-iinuxd586.tar.gzLinux x64152.1 MBjdk-8u 144-linux-4.rpm17692 MS*jdk-8u144-linuXX64.tar.gzl.lac OS X225.6 LIB,dk-3u 144-Tacosx-64.dmgSolaris SPARC 64bit13967 MS*jdk-8u 144-solans-sparc-Hr9 t
2、arZSolaris SPARC 64-bit99.18 MB,dK-8u 144-sol aris-sp a rcv9 gzSolaris x5414051 MS*jdk8u 144-solarisx64.t3r.ZSolaris x6496.99 MBjdk*6u144solari3-x64.tar gz.Vindows190.94 MB8u144-win d ows -i5S6.exeWindows197 78 MB i dk-8 u 144-windo ws-x&4 exejdk-8u144-windows-xMexe找到下载的安装文件jdk-8u144-windows-x64.exe
3、 , 双击文件执行安装I Windows InstallerPreparing to in&talL.Cancel安装目录可以默认也可以自定义安装成功后配置环境变量,右击【我的电脑】 -【属性】-【高级】-【环境变量】萱科有知才簟扒的拄本信息Wrdoim阮丰Wnd5lO*3t.lEC1 ZIJ16 匚的杓r.tipn.保冈所1VlGOF3lDESr;a-j,Lzra em pC/.rocram L leGngjukl且(_1441 Cefnpe-cCAWIK DDW.rffl iaciri 砂君ccfflii&rbQC:W iMDOWSCcnfi g&ptRoQfcNvMBER_C-_OCES
4、WRi40$Windows NTpcdavacj aac arL5 此电脈 新加巻(D:) Java |c凰片 # A 名称曲*1 J| HelloWorld.javaJava 保存的图片 新力曙(F:)Wb One Driveimpart java, io.public class Helloorldpublic static void mainCString args) ” “System, out- println(y/Hello Wcirld也赛 新Ml卷(D:Java才烏名称 | HelloWoirldcl ass2 HelloWorld.javaMicrosoft Vindows
5、10. 0. 14393(c3 201 Microsoft Corpciratlono 保留所有权利。 UsersGyd:I) :cd javap:Javajavac EelloTarld. javaP-Javajava HelloYarldHello larldP:Jav*_Applet小应用程序此电脑 新加卷(D:ava人名称HelloWorldAp p let java此电庭 IHelloWorldAppletchss:Hel Io World Applet.javaimport java .applet.*, import j ava. awt. +.public class Hel1
6、口VorldApplet extends Applet public void paint(Graphics g)g drawString CHelloVorld! 10, 50);iiicrosott Windows iu. u* I4jyj(c) 2016 Microsoft Corporation 保留所有权利。UsersGyD:D: Javajavac HellolarldApplet. java用于浏览HTML文件,HTLM文件中可以嵌入Applet-Java语言编写的小应用程序矫即卷 a.htmlHell oWa rid A pp 1 et,j a vaHello World Ap
7、pletapplet codeHel1our1dApplet.匚1日日s width=20J height=300/applet)/body/html1 劉 J. 口 XIEB , NDOWSsystem32cmd.exe - Appletwiewer a.html小应用程序Microsoft Windows 10. 0. 14393(c) 2016 Microsoft Corporation 保留所有权刑HelioWorld!javac He11oWor1dApplet, javaAppletvi ewer a. htmlA已启动小应用程序。还有另一种方式运行是直接在浏览器中打开2、Ecli
8、pse 方式,建立 java 程序:创建Java工程“文件-新建”爲 New Java ProjectCreate a Java ProjectCreate a Java project in tine workspace or in an external locaticr.Pr&ject name;0 Use locatic-nLocation; F:Eclips&IftS 工程Browse.J RENeyv.Sglect(通 an execution environmentRE:OUgw a project specificRE:OUse default JRE Ccurrervtly
9、jdkl.S.-O-WProject layoutO Use project folder as root for sources and class file Create separate folders for source-s and class fileWorking 吊ll Add prqje-ct to working setsWorking sets; Back3ENew Java Cla5Java ClassCreate a new Java classySource folder:Package:策一ML程/皿算Y工程Browse.Browse,.,0Enclosing t
10、ype:Name:Modifiers;HelloWorld| public Opackage private protededabstract Q final staticSuperclass:Interfaces:java&n马,O 对亡ciWhich method stubs would you like to creale?厨 public static void mainfStringQ args)|l匚onstructors from superclass叼Inherited abstract methodsDo you want to add comments? (Configur
11、e templates and default value 卜亡) Generate commentsFinishZ *HdfoWorldjava 阕1package 莫一十工Ji;2101112public class HelloWorld public static void (T3in(String日rgs) / TODO Auto-generated method stub System +out. println( HelloWorld Java Application C:Progrann Fi I es J a vaj d kl .8.0_144bi n j a va w. exe 主是麦艺舅一牛卫里诗于:三)实验小结了解Java运行环境JDK JDK包含了完整的类文件;开发Java程序流程是编写源程序、 编译源编译源程序、运行程序; 掌握开发环境的安装与配置、环境变量设置、应用程序的编写|编译|运行过程;会初步使用eclipse开发工具;实验报告成绩(百分制) 实验指导教师签字:
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1