From eLinux.org
OpenJDK based on IcedTea is packaged for both soft and hardfloat systems. Installation of OpenJDK is easy:
sudo apt-get update
sudo apt-get install openjdk-7-jdk
OpenJDK support the IcedTea-web browser plugin for using java applets inside the midori browser.
sudo apt-get update
sudo apt-get install icedtea-7-plugin
If you want to compile a java "applet" application against the icedtea-web plugin classes then include
/usr/share/icedtea-web/plugin.jar on the classpath.
This page shows how to install the Oracle Java SE JDK7 on the Raspberry Pi Debian Wheezy image.
If you want to use Oracle JDK 7 or 8 on a hardflaot "Rasbian" Wheezy image then you need to get the early access version from java.net
- Oracle JDK 7u40 EA hardfloat available
- JDK 8 for ARM Early Access Releases (with JavaFX)
- status of java on Raspbian
A booted Raspberry Pi with keyboard, mouse, monitor
A network connection (Ethernet or WiFi).
Authorization to use root privileges.
Login to the computer, activate a web browser, and navigate to the [] download page.
[The Midori browser has had trouble interfacing to this page.
This page has been successfully handled using the
Click on the JDK Download link.
Read and accept the Oracle Binary Code License Agreement for Java SE.
Download the current file for "Linux ARM v6/v7 Soft Float ABI" and save in a location where you have write access.
Your home directory will be assumed for the following instructions.
The following directions assume that you are installing version 7u10 of the JDK.
Adjust the filenames appropriately if you downloaded and are installing a different version.
Activate a terminal window by either double click on either of the "LXTerminal" or "Root Terminal" icons or menu "Accessories -& LXTerminal" or "Accessories -& Root Terminal".
Type the following commands in the terminal to create an installation directory and unpack the downloaded file:
sudo mkdir -p /opt/java
sudo chown root:root /opt/java
cd /opt/java
sudo tar xvzf ~/jdk-7u10-linux-arm-sfp.tar.gz
This should create directory /opt/java/jdk1.7.0_10 (or similar, depending on the version you downloaded).
If the tar command completes correctly, the downloaded file in your home directory can be deleted:
rm ~/jdk-7u10-linux-arm-sfp.tar.gz
The system needs to know that a JVM has been installed, where it can be found on the system, and which is the default version (if there is more than one choice available).
Type the following in the command window:
sudo update-alternatives --install "/usr/bin/java" "java" "/opt/java/jdk1.7.0_10/bin/java" 1
sudo update-alternatives --set java /opt/java/jdk1.7.0_10/bin/java
Java should now be successfully installed.
To test this, request the java version with:
java -version
You should get a response showing the version that you just installed.
java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
Java HotSpot(TM) Client VM (build 23.6-b04, mixed mode)
To use all java programs, you need to define a J***A_HOME environment variable and add the associated bin directory to the system PATH.
Edit the file /etc/environment with an editor of your choice (eg. nano):
sudo nano "/etc/environment"
J***A_HOME="/opt/java/jdk1.7.0_10"
Similarly, add the following line in an appropriate place in your ~/.bashrc file:
export J***A_HOME="/opt/java/jdk1.7.0_10"
export PATH=$PATH:$J***A_HOME/bin
This will need to be done for each username on the system.
Create a new command window to see the environment changes you have made in the above files.
Type the following:
You should see the above definitions in J***A_HOME and PATH environment variables.
If desired, do the same after a reboot.> 问题详情
运行Java程序需要的工具软件所在的目录是()。 A.JDK的bin目录B.JDK的demo目录C.JDK的lib目录D.J
悬赏:0&***豆
提问人:匿名网友
发布时间:
运行Java程序需要的工具软件所在的目录是()。A.JDK的bin目录B.JDK的demo目录C.JDK的lib目录D.JDK的ire目录请帮忙给出正确***和分析,谢谢!
论文写作技巧
您可能感兴趣的试题
1语句"Hell0".equals("hell0");的正确执行结果是( )。A.true&&&B.falseC.0D.12当一个Applet所在的Web页面被其他页面覆盖后,不可能被调用的Applet方法是( )。A.destroy&B.initC.stopD.star.}
我有更好的***
相关考试课程
请先输入下方的验证码查看最佳***
图形验证:
验证码提交中……
享三项特权
享三项特权
享三项特权
选择支付方式:
支付宝付款
郑重提醒:支付后,系统自动为您完成注册
请使用微信扫码支付(元)
支付后,系统自动为您完成注册
遇到问题请联系在线***QQ:
请您不要关闭此页面,支付完成后点击支付完成按钮
遇到问题请联系在线***QQ:
恭喜您!升级VIP会员成功
常用邮箱:
用于找回密码
确认密码: