Java SE series:1. environment configure and Hello world! [We use compiler and packager to create an application!]
2016-04-09 20:02
686 查看
1. cli (command line interface) and gui (graphic user interface) use javahome path, search classpath
2. java editions: j2ee(java 2 enterprise edition), j2se(java 2 standard edition), j2me(java 2 micro edition), after java5.0, rename to javaee, javase, javame
but j2me is not oridinally not used any more.
3. history: sun was takenover by Oracle. Oracle architect: java, oracle, linux, Oracle has a serie of software.
4.java features: mark: cross-platform based on JVM on different OSs, like, windows JVM, linux jvm, mac mvm.
5.jdk and jre: (jdk: compiler:javac.exe, packager:jar.exe, same with VS compiler and packager)java development kit, and java runtime environment(jre: java virtual machine and java class libraries.)
6. java6.0 platform
7. download jdk and and jre: goto www.oracle.com and java.sun.com to download java developer, and download jdk and jre, we use javaSE, standard edition.
oridinally, jre package size is smaller than jdk! sdk(software developer kit)
8. javafx: is a script programming language, like flex, but we do not need it.
9. use java cli. goto javac.exe, we have the DOS commands to operate files and other command line tools. type 'help' to get more info
10. configure environment variables. add javac.exe path to windows environment variables Path, call javac -version to see java version, we create a JAVA_HOME variable, then we replace relevant chars in java path with JAVA_HOME eg:
JAVA_HOME: E:\JAVA\ PATH: %JAVA_HOME%\BIN, but JAVA_HOME is a system. variable, use portable harddisk, create temporary environment variable:
but we can use DOS set command and set the variables, open cmd, if we just type set, we see all environment variables. type help set to get info about set command.
type set path, set our own PATH: set path=""", if we want to delete the variable, just type set path= ; now, we can set temporary path manually, just set path to our javac.exe physical path, we can use javac now! set path='our own local path';%path%, this means we just added a path, but not destroying the previous usables.
11. compile process: .java->(javac.exe compliled) .class-> result.
12.hello world: javac 123.java; , class Demo{ public static void main(String[] args) creates Demo.class, called by JVM, one main. ,then type java Demo to run our program!
12. classpath: we need to set a class path, we can execute any java files, jvm will first look into java classpath for executables, if classpath is set, jvm will look into classpath and current path for things. ';' will also add current dir to search scope: set classpath='optional' set classpath=.;c:\myclasspath
Home Work:
to add!
2. java editions: j2ee(java 2 enterprise edition), j2se(java 2 standard edition), j2me(java 2 micro edition), after java5.0, rename to javaee, javase, javame
but j2me is not oridinally not used any more.
3. history: sun was takenover by Oracle. Oracle architect: java, oracle, linux, Oracle has a serie of software.
4.java features: mark: cross-platform based on JVM on different OSs, like, windows JVM, linux jvm, mac mvm.
5.jdk and jre: (jdk: compiler:javac.exe, packager:jar.exe, same with VS compiler and packager)java development kit, and java runtime environment(jre: java virtual machine and java class libraries.)
6. java6.0 platform
7. download jdk and and jre: goto www.oracle.com and java.sun.com to download java developer, and download jdk and jre, we use javaSE, standard edition.
oridinally, jre package size is smaller than jdk! sdk(software developer kit)
8. javafx: is a script programming language, like flex, but we do not need it.
9. use java cli. goto javac.exe, we have the DOS commands to operate files and other command line tools. type 'help' to get more info
10. configure environment variables. add javac.exe path to windows environment variables Path, call javac -version to see java version, we create a JAVA_HOME variable, then we replace relevant chars in java path with JAVA_HOME eg:
JAVA_HOME: E:\JAVA\ PATH: %JAVA_HOME%\BIN, but JAVA_HOME is a system. variable, use portable harddisk, create temporary environment variable:
but we can use DOS set command and set the variables, open cmd, if we just type set, we see all environment variables. type help set to get info about set command.
type set path, set our own PATH: set path=""", if we want to delete the variable, just type set path= ; now, we can set temporary path manually, just set path to our javac.exe physical path, we can use javac now! set path='our own local path';%path%, this means we just added a path, but not destroying the previous usables.
11. compile process: .java->(javac.exe compliled) .class-> result.
12.hello world: javac 123.java; , class Demo{ public static void main(String[] args) creates Demo.class, called by JVM, one main. ,then type java Demo to run our program!
12. classpath: we need to set a class path, we can execute any java files, jvm will first look into java classpath for executables, if classpath is set, jvm will look into classpath and current path for things. ';' will also add current dir to search scope: set classpath='optional' set classpath=.;c:\myclasspath
Home Work:
to add!
相关文章推荐
- [Android] 控件的动态显示和自动消失效果
- Whu oj 1604 - Play Apple
- [Android] 设计模式-策略模式
- 《Android 开发艺术探索》读书笔记二 Activity的启动模式(launchMode)
- [Android] AIDL浅析
- unity3d Billboard(物体始终面相摄像机)
- net.sf.json.JSONException: 'object' is an array. Use JSONArray instead
- 【Android学习】View点击事件的分发机制(一)
- iOS如何上传代码到Github
- Android选择器类库,包括日期时间选择器、单项选择器、地址选择器、颜色选择器、文件目录选择器、数字选择器、星座选择器等
- 结对编程--基于android平台的黄金点游戏
- 一行命令统计iOS工程代码总行数
- 《Android 开发艺术探索》读书笔记一 Activity的生命周期
- ios多线程之NSThread总结
- Android View.setOnclickListener(),View.onTouchEvent(),View.setOnTouchListener()关系源码分析
- Objective-C 深入理解 +load 和 +initialize
- SwiftyUserDefaults对NSUserDefaults的封装扩展
- Android中的代理模式
- 深入理解 Objective-C 的方法调用流程
- iOS性能优化—— Instruments