- 浏览: 4863118 次
- 性别:
- 来自: 上海
文章分类
- 全部博客 (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 6132点击设置:->Storage存储-&g ... -
Ubuntu Webstorm/PhpStorm创建桌面快捷启动和菜单文字变粗解决
2016-03-22 16:40 4890一、下载Ubuntu WebStorm http://w ... -
Ubuntu CompizConfig Settings Manager 3D 效果后无法显示桌面和应用列表解决
2016-03-22 15:11 3063sudo apt-get install compiz-pl ... -
Ubuntu 卸载软件/应用程序的两种方法
2016-03-22 15:01 1705第一种,命令行卸载: sudo apt-get remov ... -
Ubuntu Unity Tweak tool 启动报错 “com.canonical.unity.webap
2016-03-22 14:53 4398Ubuntu Unity Tweak tool 启动报错 ... -
Ubuntu安装nodejs最新版4.4和npm
2016-03-18 12:25 2631首先我们先从github上将NodeJs库克隆到本地: ... -
Ubuntu Linux 安装JDK8 全步骤
2016-03-17 18:13 13911、下载jdk8 http://www.oracle.c ... -
ubuntu 14.04 Serious errors were found while checking the disk device for /.
2015-06-13 12:25 3503ubuntu 14.04 Serious errors w ... -
Install an RPM Package on Ubuntu Linux
2012-08-22 11:02 1248[size=medium] Install an RPM Pa ... -
ubuntu install jdk.rpm.bin
2012-08-22 10:59 2458JDK RPM Installation for Linux ... -
ubuntu install jdk.bin
2012-08-22 10:57 21201. 手动安装jdk6 首先,在http://java.s ... -
Ubuntu下 配置 fitx -Fun Input Toy for Linux (系统默认语言为英语)
2012-08-22 10:18 2082大家知道在Windows下搜狗拼音输入法以及谷歌拼音输入法也非 ... -
Ubuntu Linux常见中文输入法汇总
2012-08-22 10:13 2166许多新人对于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.
101 Ways to Save Money in Your Business
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 ...
Pragmatic - My Job Went to India, 52 Ways to Save Your Job
More Effective C++A 35 New Ways to Improve Your Programs and Designs
unit5 Go on holiday lecture 4 ways to get a good workout.pdf
Effective C# 50 Specific Ways to Improve Your C#
In this post I show 5 different ways to change which URLs your app listens on. There are multiple ways to set the URLs that ASP.NET Core binds to on startup. I have an old post about the various ...
20 Ways To Make $100 Per Day Online,美国人的网赚资料
effective c-sharp 50 specific ways to improve your c-sharp
藏经阁-5 Ways to Get Started with Rei.pdf
Transforming a monolithic legacy application into a cloud native system is no small feat, but with this in-depth report, your organization will learn ways to migrate classical Java applications to ...
' 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....
学习C++ 和STL学习学习的书,三合一(共140种改善您的C++程序的经验之谈,C++程序员必读),英文原版,带书签,2018版本。难得的c++学习资料
Effective C# - 50 Specific Ways to Improve Your C# - Bill Wagner (2004)
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 ...
Different ways to include jQuery in your website Different ways to include jQuery in your website
应用Tagxedo制作文字云的101个例子