Comments (14)
$ sudo update-alternatives --config javac
$ sudo update-alternatives --config java
from ev3dev-lang-java.
http://www.rpiblog.com/2014/03/installing-oracle-jdk-8-on-raspberry-pi.html
from ev3dev-lang-java.
sudo apt-get install oracle-java8-jdk
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get install oracle-java8-installer
from ev3dev-lang-java.
from ev3dev-lang-java.
http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html
from ev3dev-lang-java.
apt-get install software-properties-common
from ev3dev-lang-java.
https://packages.debian.org/stable/allpackages
from ev3dev-lang-java.
With PiStorm, it is possible to install Oracle Java 8 JDK
http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html
root@ev3dev:/home/robot# java -version
java version "1.8.0_71"
Java(TM) SE Runtime Environment (build 1.8.0_71-b15)
Java HotSpot(TM) Client VM (build 25.71-b15, mixed mode)
from ev3dev-lang-java.
But with EV3, it is not possible:
W: Failed to fetch http://ppa.launchpad.net/webupd8team/java/ubuntu/dists/trusty/InRelease
Unable to find expected entry 'main/binary-armel/Packages' in Release file
(Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old ones used instead.
from ev3dev-lang-java.
Download:
http://www.oracle.com/technetwork/java/embedded/downloads/javase/javaseemeddedev3-1982511.html
from ev3dev-lang-java.
http://www.rpiblog.com/2014/03/installing-oracle-jdk-8-on-raspberry-pi.html
$ sudo tar zxvf ejdk-8-fcs-b132-linux-arm-sflt-03_mar_2014.gz -C /opt
Set default java and javac to the new installed jdk8.
$ sudo update-alternatives --install /usr/bin/javac javac /opt/ejdk1.8.0/bin/javac 1
$ sudo update-alternatives --install /usr/bin/java java /opt/ejdk1.8.0/linux_arm_sflt/jre/bin/java 1
$ sudo update-alternatives --config javac
$ sudo update-alternatives --config java
After all, verify with the commands with -verion option.
$ java -version
$ javac -version
from ev3dev-lang-java.
Before:
root@ev3dev:~# java -version
java version "1.7.0_75"
OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-2)
OpenJDK Zero VM (build 24.75-b04, mixed mode)
from ev3dev-lang-java.
root@ev3dev:/opt/ejdk1.8.0/bin# sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib/jvm/java-7-openjdk-armel/jre/bin/java 1063 auto mode
1 /opt/ejdk1.8.0/linux_arm_sflt/jre/bin/java 1 manual mode
2 /usr/lib/jvm/java-7-openjdk-armel/jre/bin/java 1063 manual mode
Press enter to keep the current choice[*], or type selection number: 1
update-alternatives: using /opt/ejdk1.8.0/linux_arm_sflt/jre/bin/java to provide /usr/bin/java (java) in manual mode
root@ev3dev:/opt/ejdk1.8.0/bin# java -version
java version "1.8.0"
Java(TM) SE Embedded Runtime Environment (build 1.8.0-b132, headless)
Java HotSpot(TM) Embedded Client VM (build 25.0-b70, mixed mode)
from ev3dev-lang-java.
Java 8 for EV3 Brick is not possible to compile, only run the software.
from ev3dev-lang-java.
Related Issues (20)
- Button implementation does not match JavaDoc HOT 24
- Using the LCD requires sudo HOT 5
- Review the CorrectFactor
- Increase test coverage in Display area HOT 3
- Add support for OpenMV Cam H7 Plus HOT 1
- Add support for OpenJDK 16 on AdoptOpenJDK HOT 2
- Problem setting up VSCODE as an IDE Java programming developpment for EV3DEV HOT 29
- InvalidPathException for log4j on Windows HOT 2
- How do I increase the voltage provided from v1.2 to v1.3 so that I can overclock the ev3 to 456Mhz HOT 1
- Adopting ev3dev-lang-java at London Uni HOT 10
- RaspberryPI resets when motor is jammed by force. HOT 2
- How to reset local angle? HOT 4
- Multi link support for ev3 HOT 1
- Gradle tasks not working in eclipse HOT 1
- "Network is unreachable: connect" when running "testConnection" in the template project HOT 1
- getRotationSpeed always returns 0 HOT 3
- Write about the LEGO announcement
- Help to compile Java?
- Review git history to uncommit incomplete features
- medium motor detected as large HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ev3dev-lang-java.