- 浏览: 4918126 次
- 性别:
- 来自: 上海
文章分类
- 全部博客 (743)
- JAVA (44)
- JAVA 乔乐共享 (145)
- js (132)
- database (26)
- jQuery (46)
- velocity (16)
- Ubuntu (14)
- Grails (2)
- Groovy (6)
- xml (2)
- Spring (11)
- mysql (24)
- sqlserver (6)
- oracle (9)
- cmd (8)
- CSS (17)
- Linux (2)
- sqlite (4)
- php (11)
- json (2)
- laravel (2)
- html (3)
- 闲聊 (3)
- git (13)
- nodejs (25)
- angularjs (17)
- npm (8)
- bootstrap (4)
- mongodb (5)
- React (32)
- Crack (7)
- b (0)
- ES6 (2)
- webpack (3)
- Babel (1)
- Koa (1)
最新评论
-
taoshengyijiuzt:
感谢大佬!!!
JetBrains最新激活服务器(长期更新ing) -
masuweng:
激活码可以用
JetBrains最新激活服务器(长期更新ing) -
dusdong:
都失效了
JetBrains最新激活服务器(长期更新ing) -
追风筝的孩纸Zz:
dddddddddddddddd
js获取网页屏幕可见区域高度 -
自己811005:
88350bcf69dcfbda7f8a76a589d9054 ...
Js设置前端允许跨域请求后端API:Access-Control-Allow-Credentials
http://www.wikihow.com/Install-Java-on-Linux
Manual Non-RPM Method
This is the generic method that also works with GNU/Linux clones that do not support RPM. It does not require administrator rights and allows installing multiple Java versions on the same computer.
-
11. Download the JDK.[1].
- Click on the "Download" link under Java Platform (JDK) 7u4.
- Accept the license and continue.
-
2Select the right download. Under the "Product/File Description" you should pick your corresponding Linux option. For example, if you're running Linux x86 (32-bit), you need to choose the corresponding “*.tar.gz” version.
-
3Download the file as a .gz. Save it to your GNU/Linux machine.
-
4Switch to the directory where you saved the file. You do not need to be a root and only must have the write access to the folder where you wish to install Java. If your administrator is not supportive, you may need to place Java into your home folder or (even better) on some shared network location
-
5Uncompress the file. For example, you could do this in your home folder. Uncompressing will create a folder called “jdk1.7.0_04”. Java is now installed.
- The installed Java jre is rather independent and can be easily moved into another place just by copying all its files.
- You can install multiple different jre's this way: they coexist together and can be used if some software requires the older version to run.
-
6Launch Java. The Java executable you need to launch is located in a subfolder, called "bin." This way of installation will not configure a default Java command for you — you must do this manually or always include the full path in your startup script.
Manual RPM Method
This seems like a "more civilized" way to install Java because it allows the installer to check the dependencies on some system libraries that may be missing. However, it does not support versioning easily and may fail even in some systems that do support RPMs. (Though the current Java installations are rather self-dependent and the required minimal requirements are usually satisfied anyway.)
-
1Download the JDK.[2].
- Click on the "Download" link under Java Platform (JDK) 7u4.
- Accept the license and continue.
-
2Select the right download. Under the "Product/File Description" you should pick your corresponding Linux option. For example, if you're running Linux x86 (32-bit), you need to choose the corresponding “*.rpm” version, for example “jdk-7u4-linux-i586.rpm”.
-
3Download the .rpm file. Save it to your GNU/Linux machine.
-
4Log in as root and switch to the directory where you saved the file. Or, become root by running su and entering the super-user password.
-
5Install the rpm file by executing 'rpm -ivh filename.rpm', where filename is the name of your .rpm file. (Such as jdk-7u4-linux-i586.rpm).
- You may receive a message telling that program “rpm” is not installed.
- If that is the case the program “rpm” is not installed. You need to install it writing: sudo apt-get install rpm. Enter your password, and you're finished.
-
6Create symbolic links. If you want to be able to execute this version of Java interpretor or compiler from any directory on your GNU/Linux system, you will have to create a few symbolic links:
- sudo ln -s -v jdk1.7.0_04/bin/java /usr/bin/java
- sudo ln -s -v jdk1.7.0_04/bin/javac /usr/bin/javac
- Note that by installing using this method there could be dependencies that fail. It is better to use the package installer that handles all dependencies for you, since you will not be able to use Java correctly until the dependencies are resolved.
Ubuntu Method Using a GUI Package Manager
-
1Open a package manager. You can use Synaptic or Adept Manager.
-
2Install Open JDK. Java JDK and JRE are not available for installation through GUI Package Manager. You'll need to install Open JDK instead.
- Perform a search for openjdk-7-jdk.
- Select openjdk-7-jdk for installation. Depending on the package manager, you may be asked if you wish to install the required dependencies or it will automatically select them without confirmation. For example, the openjdk-7-jre was already selected by Synaptic Package Manager. If you want to use Java as a plug-in in your browser, then also select to install icedtea-7-plugin.
-
3Apply the changes. Click the button to apply the changes. Depending on the package manager, a pop-up window may appear asking for you to confirm the changes.
-
4Wait for Java to install.
Ubuntu Method Using a Console
-
1Enter one of the following commands into your console program:
- sudo apt-get install openjdk-7-jdk openjdk-7-jre (if you don't want the browser plug-in)
- sudo apt-get install openjdk-7-jdk openjdk-7-jre icedtea-7-plugin (if you do need the plug-in)
- apt-get automatically takes care of the dependencies and lists the changes for confirmation.
-
2Enter y to confirm the installation.
Ubuntu OpenJDK Method Using a Console
-
1Ubuntu no longer supports the Sun Java package in favor of OpenJDK.
-
2Enter one of the following into your console program:
- If you do not want the browser plugin, sudo apt-get install openjdk-6-jre.
- If you do want the browser plugin, sudo apt-get install openjdk-6-jre icedtea6-plugin
- If you're working on a server without graphics, and want an environment just for running server applications (e.e. Tomcat or Glassfish), sudo apt-get install --no-install-recommends openjdk-6-jre-headless
- If you need the full JDK (for writing Java programs): sudo apt-get install openjdk-6-jdk
- apt-get automatically takes care of the dependencies and lists the changes for confirmation.
-
3Enter y to confirm the installation.
发表评论
-
Ubuntu VirtualBox 安装win10报错:FATAL: No bootable medium found! System halted.
2017-04-20 13:04 6240点击设置:->Storage存储-&g ... -
Ubuntu Webstorm/PhpStorm创建桌面快捷启动和菜单文字变粗解决
2016-03-22 16:40 4934一、下载Ubuntu WebStorm http://w ... -
Ubuntu CompizConfig Settings Manager 3D 效果后无法显示桌面和应用列表解决
2016-03-22 15:11 3112sudo apt-get install compiz-pl ... -
Ubuntu 卸载软件/应用程序的两种方法
2016-03-22 15:01 1754第一种,命令行卸载: sudo apt-get remov ... -
Ubuntu Unity Tweak tool 启动报错 “com.canonical.unity.webap
2016-03-22 14:53 4458Ubuntu Unity Tweak tool 启动报错 ... -
Ubuntu安装nodejs最新版4.4和npm
2016-03-18 12:25 2676首先我们先从github上将NodeJs库克隆到本地: ... -
Ubuntu Linux 安装JDK8 全步骤
2016-03-17 18:13 14541、下载jdk8 http://www.oracle.c ... -
ubuntu 14.04 Serious errors were found while checking the disk device for /.
2015-06-13 12:25 3556ubuntu 14.04 Serious errors w ... -
Install an RPM Package on Ubuntu Linux
2012-08-22 11:02 1285[size=medium] Install an RPM Pa ... -
ubuntu install jdk.rpm.bin
2012-08-22 10:59 2500JDK RPM Installation for Linux ... -
ubuntu install jdk.bin
2012-08-22 10:57 21621. 手动安装jdk6 首先,在http://java.s ... -
Ubuntu下 配置 fitx -Fun Input Toy for Linux (系统默认语言为英语)
2012-08-22 10:18 2131大家知道在Windows下搜狗拼音输入法以及谷歌拼音输入法也非 ... -
Ubuntu Linux常见中文输入法汇总
2012-08-22 10:13 2211许多新人对于Ubuntu下的中文输入法都很不满意,因此,这次的 ...
相关推荐
Have you ever tried to install macOS Mojave on your laptop Windows 10? but, before visiting begin ...So begins our article, to indicate you ways How to install macOS Mojave 10.14.3 final on VirtualBox.
java java_leetcode题解之Different Ways to Add Parentheses.java
Better ways to use prototype-based object-oriented programming Subtleties and solutions for working with arrays and dictionary objects Precise and practical explanations of JavaScript’s functions ...
77 Ways to Beat Colds and Flu With sections on understanding colds and flu, tips on prevention and treating, and a look at remedies in the research stage, this handy guide provides all the consumer ...
在IT行业的视角下,"101 Ways to Save Money in Your Business"这一主题不仅涵盖了传统商业管理中的节约策略,还涉及了如何运用现代信息技术优化成本、提升效率的关键知识点。以下是对该主题中提及的一些核心概念的...
java java_leetcode题解之Decode Ways II.java
- **书名**:《Pragmatic - My Job Went to India, 52 Ways to Save Your Job》 - **作者**:Chad Fowler - **出版社**:The Pragmatic Bookshelf - **出版地点**:Raleigh, North Carolina 和 Dallas, Texas - **...
unit5 Go on holiday lecture 4 ways to get a good workout.pdf
《More Effective C++: 35 New Ways to Improve Your Programs and Designs》是一本深入探讨C++语言特性的书籍。本书不仅覆盖了C++中较为少见的部分,也重新审视了那些开发者们自认为已经熟悉的领域。通过阅读本书,...
《Effective C++ Digital Collection 140 Ways to Improve Your Programming》是C++编程领域的一本经典著作,由著名C++专家Scott Meyers撰写。这本书集合了他对C++编程的深刻理解和实践经验,旨在帮助读者提升代码...
"ways-to-java-study.rar"这个压缩包文件显然包含了帮助学习Java的资源,特别是"1000 Java Tips翻译",这可能是一个包含了一千个Java编程技巧和解决常见问题的中文译文集。这些提示和解决方案对于初学者以及有经验的...
java java_leetcode题解之Decode Ways.java
《Effective C#:50 Specific Ways to Improve Your C#》是C#编程领域的一本经典著作,由资深软件工程师Bill Wagner撰写,旨在帮助C#程序员提高编程技能,编写出更高效、更健壮的代码。本书第二版更新了C# 4.0的新...
' is the ultimate resource for newbies looking to learn a programming language that is easy to grasp in a very short time compared to other programming languages such as C++, Java and Pascal....
20 Ways to Build Traffic to Your Site 20种提高你网站流量的方法 英文原版
are two ways to install them. The first possibility is to install them together with eric5. In order to do that, simply extract the downloaded archives into the same place as the eric5 archive ...
### 使用Tagxedo的101种方法 #### 概述 Tagxedo是一款功能强大的在线工具,可以将文本转化为视觉艺术作品——文字云。它不仅支持基础的文字云生成,还提供了丰富的定制选项,使用户能够创造出独一无二的艺术效果。...