Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Installation method of JRE under LINUX system

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "the installation method of JRE under the LINUX system". In the operation of the actual case, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

To run a JAVA program, you must install JAVA RUNTIME, that is, the environment you need to run it; we can get it by installing JRE or JDK; if we just apply but not develop, just download the JRE package; the JDK package also contains JRE;. This article takes the installation of JRE as an example; JRE also includes the JAVA plug-in needed by the browser.

Download JRE

Http://ftp.isu.edu.tw

Download the corresponding version according to your own machine. My machine is a 32-bit X86, so you can only download jre-1_5_0_04-linux-i586.bin; in the linux32 directory. If you are an X86-64-bit machine, download the relative

II. Decompression and configuration

1. Release the package

[root@localhost sunjava] # ls

Jre-1_5_0_04-linux-i586.bin

[root@localhost sunjava] # sh jre-1_5_0_04-linux-i586.bin

Do you agree to the above license terms? [yes or no] yes

[root@localhost sunjava] # ls

Jre1.5.0_04 jre-1_5_0_04-linux-i586.bin

2. Configure JRE

1) move the jre1.5.0_04 directory to the / usr/lib directory

[root@localhost sunjava] # mv jre1.5.0_04 / usr/lib/jre154

2) configure environment variables

Add three lines to the. bashrc of the current user, as follows:

JAVA_HOME=/usr/lib/jre154

JAVA_BIN=/usr/lib/jre154/bin

Export JAVA_HOME JAVA_BIN

You can edit .bashrc files with gedit or vi

[root@localhost sunjava] # gedit ~ / .bashrc

[root@localhost sunjava] # vi ~ / .bashrc

3) add a font simsun.ttf

Create a directory fallback in / usr/lib/jre154/lib/fonts, then copy the font simsun.ttf to this directory, or copy simsun.ttc to simsun.ttf, and then put it in this directory

[root@localhost ~] # mkdir / usr/lib/jre154/lib/fonts/fallback

4) install java plugins; enable browsers to support java programs

For example, if I use a firefox browser, build a link for libjavaplugin_oji.so to the plugins directory in the directory corresponding to firefox, and other browsers will do the same; [root@localhost plugins] # cd / usr/lib/firefox-1.0.6/plugins/

[root@localhost plugins] # ln-s / usr/lib/jre154/plugin/i386/ns7/libjavaplugin_oji.so.

5) call the JAVA console

[beinan@localhost ~] # / usr/lib/jre154/bin/ControlPanel

This is the end of the content of "how to install JRE under the LINUX system". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report