Java SE series:1. environment configure and Hello world! [We use compiler and packager to create an application!]
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!
Java SE series:1. environment configure and Hello world! [We use compiler and packager to create an application!]的更多相关文章
- Java SE series:2. enhance your java basis! [doc chm: jdk6api Chinese reference]
1. javaee(Web) and Android 2. how to use eclipse and break point debuging in eclipse, as to java web ...
- Java SE之XML<二>XML DOM与SAX解析
[文档整理系列] Java SE之XML<二>XML DOM与SAX解析 XML编程:CRUD(Create Read Update Delete) XML解析的两种常见方式: DOM(D ...
- Using Headless Mode in the Java SE Platform--转
原文地址: By Artem Ananiev and Alla Redko, June 2006 Articles Index This article explains how to use ...
- ubuntu配置 Java SE 1.6
今天编译android 4.0时提示如下错误: You are attempting to build with the incorrect version of java. Your versi ...
- Java SE 简介 & 环境变量的配置
Java SE 简介 & 环境变量的配置 一.Java 技术的三个方向 Java 技术分为三个方向 javaSE( Java Platform Standard Edition 标准版)用来开 ...
- Ubuntu 14.04 配置 Java SE
首先下载Java SE,下载地址:http://www.oracle.com/technetwork/java/javase/downloads/index.html: 下载后把压缩包拷贝到自定义的目 ...
- Java SE Eclipse中引入第三方jar及class
使用eclipse开发Java SE 总免不了需要引入第三方的jar或者calss文件.这里给大家说一下如何在eclipse中引入第三方jar或者calss文件. 让我们先了解一下eclipse项目中 ...
- java的几个版本以及jre,jdk等概念——【转载】JDK、Java SE、Java EE、Java ME我该选
我们平时使用的一些软件,有一部分需要Java环境的支持,但是SUN那么多的产品,让人眼花缭乱的版本号,前看后看都差不多的缩写,让我们选择起来的时候常常望而却步,只好跟着感觉走.所以下面我要介绍的就是那 ...
- Linux 下安裝 Java SE Development Kit(JDK)並配置環境變量
下載頁面:http://www.oracle.com/technetwork/java/javase/archive-139210.html 打開“Java SE 7”,再打開“Java SE Dev ...
随机推荐
- 微信公众账号开发教程(三) 实例入门:机器人(附源码) ——转自http://www.cnblogs.com/yank/p/3409308.html
一.功能介绍 通过微信公众平台实现在线客服机器人功能.主要的功能包括:简单对话.查询天气等服务. 这里只是提供比较简单的功能,重在通过此实例来说明公众平台的具体研发过程.只是一个简单DEMO,如果需要 ...
- Windows 下 Nginx + PHP + Xdebug + PHPStorm 调试环境配置
前期条件:安装好 Nginx.PHP.PHPStorm,使得可以正常访问 一.为 PHP 安装 Xdebug 到 Xdebug 的官网(http://xdebug.org/download.php)下 ...
- Js(javaScript)的闭包原理
问题?什么是js(javaScript)的闭包原理,有什么作用? 一.定义 官方解释:闭包是一个拥有许多变量和绑定了这些变量的环境的表达式(通常是一个函数),因而这些变量也是该表达式的一部分. 小编 ...
- BulletedList使用及详解
BulletedList是一个让你轻松在页面上显示项目符号和编号格式(Bulledted List)的控件.对于ASP.NET 1.x里要动态显示Bulledted List时,要么自己利用HTML的 ...
- HBase的几种调优(GC策略,flush,compact,split)
一:GC的调优 1.jvm的内存 新生代:存活时间较短,一般存储刚生成的一些对象 老年代:存活时间较长,主要存储在应用程序中生命周期较长的对象 永久代:一般存储meta和class的信息 2.GC策略 ...
- 网页中的超链接<a>标签
格式: <a href="目标网址" title="鼠标滑过显示的文本">链接显示的文本</a> 注意:为文本加入<a>标签 ...
- sqlserver 中server 函数GETDATE(),DEFAULT用法
alter table Persons add datenow date DEFAULT GETDATE() null, datetimenow datetime DEFAULT GETDATE()n ...
- Swift-10--错误处理
如何优雅地抛出错误-- 抛出错误使用throw关键字. 某个错误被抛出时,那个地方的某部分代码必要要负责处理这个错误,比如纠正这个问题.尝试另外一种方式.或是给用户提示这个错误. ***4种处理错误的 ...
- SpringMVC 406 accept请求错误,没有加入将json序列化的包
在spring中使用@responsebody发现请求报406错误 jar包中缺少json序列化的相关的包!
- Spring第12篇—— Spring对Hibernate的SessionFactory的集成功能
由于Spring和Hibernate处于不同的层次,Spring关心的是业务逻辑之间的组合关系,Spring提供了对他们的强大的管理能力, 而Hibernate完成了OR的映射,使开发人员不用再去关心 ...