Is it possible install Java on the Yun?
I've had a look in the package manager:
opkg list | grep java
Nothing came up, I thought I'd seen references to using Java and I've read about JArduino being a java library. Is there a guide or FAQ on how to install Java on the Yun?
Thank you,
Simon Platten
Java on Yun?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- splatten
- Posts: 439
- Joined: Mon Mar 17, 2014 3:08 pm
Re: Java on Yun?
Ok, found some information on JamVM, also using SSH:
shows:
However when I try:
I get:
I have an 8GB micro SD card inserted into the Yun, can I download the java virtual machine to the micro SD card?
Not a linux wizard, so any help would be gratefully received.
Code: Select all
opkg list | grep jamvm
Code: Select all
jamvm - 1.6.0-git-2 - JamVM is a new Java Virtual Machine which conforms to the JVM specification version (blue book). In comparison to most other VM's (free and commercial) it is extremely small.However, unlike other small VMs (e.g. KVM) it is designed to support the full specification, and includes support for object finalisation, Soft/Weak/Phantom References, the Java Native Interface (JNI) and the Reflection API.
Code: Select all
opkg install jamvm
Code: Select all
Collected errors:
* verify_pkg_installable: Only have 7316kb available on filesystem /overlay, pkg classpath needs 8634
* opkg_install_cmd: Cannot install package jamvm.
Not a linux wizard, so any help would be gratefully received.
- splatten
- Posts: 439
- Joined: Mon Mar 17, 2014 3:08 pm
Re: Java on Yun?
This is a useful site:
http://tavendo.com/blog/post/arduino-yun-with-autobahn/
http://tavendo.com/blog/post/arduino-yun-with-autobahn/
- splatten
- Posts: 439
- Joined: Mon Mar 17, 2014 3:08 pm
Re: Java on Yun?
Whilst I have now mounted the sda1 as /opt I still can't install jamvm onto the SD card, when I try to specify a destination I get error messages:
How do I do this?
Code: Select all
Collected errors:
* resolve_pkg_dest_list: Unknown dest name: `/opt/'.
- splatten
- Posts: 439
- Joined: Mon Mar 17, 2014 3:08 pm
Re: Java on Yun?
This was helpful:
http://forum.arduino.cc/index.php?topic=221148.0
Edited opkg.conf and added a mapping:
Then I was able to install the jamvm onto the SD card using:
http://forum.arduino.cc/index.php?topic=221148.0
Edited opkg.conf and added a mapping:
Code: Select all
dest sd /opt
Code: Select all
opkg install jamvm -d sd
- splatten
- Posts: 439
- Joined: Mon Mar 17, 2014 3:08 pm
Re: Java on Yun?
It would appear that the Yun keeps restarting, probably due to a watchdog? Is there a way to disable the watchdog or determine the reason for the reboot?
Thank you,
Thank you,
Please be positive and constructive with your questions and comments.