centos7安装jdk8
来源:互联网 发布:风月知相思 在线阅读 编辑:程序博客网 时间:2024/06/06 09:32
1. 首先下载rpm包
[root@localhost java]# curl -L "http://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-x64.rpm" -H "Cookie: oraclelicense=accept-securebackup-cookie" -H "Connection: keep-alive" -O2. 安装jdk
[root@localhost java]# rpm -i jdk-8u144-linux-x64.rpm
3. 检验是否安装成功,如果出现下面的命令选项说明安装成功
[root@localhost java]$ javacUsage: javac <options> <source files>where possible options include: -g Generate all debugging info -g:none Generate no debugging info -g:{lines,vars,source} Generate only some debugging info -nowarn Generate no warnings -verbose Output messages about what the compiler is doing -deprecation Output source locations where deprecated APIs are used -classpath <path> Specify where to find user class files and annotation processors -cp <path> Specify where to find user class files and annotation processors -sourcepath <path> Specify where to find input source files -bootclasspath <path> Override location of bootstrap class files -extdirs <dirs> Override location of installed extensions -endorseddirs <dirs> Override location of endorsed standards path -proc:{none,only} Control whether annotation processing and/or compilation is done. -processor <class1>[,<class2>,<class3>...] Names of the annotation processors to run; bypasses default discovery process -processorpath <path> Specify where to find annotation processors -parameters Generate metadata for reflection on method parameters -d <directory> Specify where to place generated class files -s <directory> Specify where to place generated source files -h <directory> Specify where to place generated native header files -implicit:{none,class} Specify whether or not to generate class files for implicitly referenced files -encoding <encoding> Specify character encoding used by source files -source <release> Provide source compatibility with specified release -target <release> Generate class files for specific VM version -profile <profile> Check that API used is available in the specified profile -version Version information -help Print a synopsis of standard options -Akey[=value] Options to pass to annotation processors -X Print a synopsis of nonstandard options -J<flag> Pass <flag> directly to the runtime system -Werror Terminate compilation if warnings occur @<filename> Read options and filenames from file4. 编写hello world
class Hello{ public static void main(String[] args){ System.out.println("hello world!"); }}
[root@localhost java]$ javac Hello.java[root@localhost java]$ java Hellohello world!
阅读全文
0 0
- Centos7 JDK8安装配置
- Centos7 安装 JDK8
- centos7 安装 jdk8
- centos7 下安装jdk8
- Centos7安装配置JDK8
- CentOS7安装JDK8
- Centos7 JDK8安装配置
- centos7 安装jdk8
- centos7安装jdk8
- Centos7.0安装jdk8
- centos7安装JDK8
- centos7安装jdk8
- centos7安装jdk8
- Centos7下安装JDK8
- centos7安装jdk8
- JDK8,CentOS7安装
- centos7 rpm 安装JDK8
- CentOS7 安装与配置JDK8
- 理解es6中的暂时性死区
- 软引用,弱引用的区别
- 【增强版】《Java面试笔试题全面含答案中篇》涉及java/数据库/框架/系统/设计模式相关-中篇
- linux学习---shell编程
- java+python
- centos7安装jdk8
- OpenCV-用imageROI来增加某范围的像素
- Linux下通过管道文件传输信息
- Filter对象的部署与运行
- Git 代码的提交与取消
- 多线程(二)
- masonry.js瀑布流布局,用ajax加载更多后定位重叠,定位不准
- H5 Canvas移动端的自定义画板
- C++容器数组课后题(部分)