new (6/2013) BBB w/ Angstrom needs java.

Well, I wudda thought that a new BBB with a fresh copy of Angstrom would have java installed, but no:

00:41:30 Sat Jan 01 beaglebone 340 ~ → java -version
-sh: java: command not found

So we searched and searched and the forums seem to indicate I need this package:

00:42:33 Sat Jan 01 beaglebone 342 ~ → opkg install openjdk-6-java
Unknown package ‘openjdk-6-java’.
Collected errors:

  • opkg_install_cmd: Cannot install package openjdk-6-java.

Huh? It won’t install. I installed vim when I stumbled on it, no problem.
And librhino-java looked promising

00:35:41 Sat Jan 01 beaglebone 339 ~ → opkg install librhino-java
Installing librhino-java (1.7r2-r0.1) to root…
Downloading http://feeds.angstrom-distribution.org/feeds/v2012.12/ipk/eglibc/all/librhino-java_1.7r2-r0.1_all.ipk.
Configuring librhino-java.
But, alas, no joy:

01:51:04 Sat Jan 01 beaglebone 343 ~ → java -version
-sh: java: command not found

Looks like I have a lot of java stuff installed:

01:55:14 Sat Jan 01 beaglebone 344 ~ → opkg list | grep java
libbcel-java - 5.2-r0 - bcel version 5.2-r0
libjavascriptcoregtk-1.0-0 - 1.8.2-r2.16 - webkit-gtk version 1.8.2-r2
libjaxp1.3-java - 1.3.04-r0 - jaxp1.3 version 1.3.04-r0
libregexp-java - 1.5-r0 - regexp version 1.5-r0
librhino-java - 1.7r2-r0.1 - rhino version 1.7r2-r0
librxtx-java - 2.2.0-r2.1 - rxtx version 2.2.0-r2
libxalan2-java - 2.7.1-r0 - xalan-j version 2.7.1-r0
libxerces2-java - 2.9.1-r0 - xerces-j version 2.9.1-r0
libxml-commons-resolver1.1-java - 1.2-r0 - xml-commons-resolver1.1 version 1.2-r0

What am I missing? Is it the path?

PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:.:/home/root/netrexx/bin

or classpath? I have none at this point.

Do I need to “build” java somehow? Help!

Information here may help.

Brian

Following those instructions as I already have, I get the same error messages about “Unknow package”, even tho they show up in a opkg list.

If you read further down the web page it tells you how to manually download the packages following the links given to get them and then use opkg to install them.

for example to get the openjdk-jre I used:

wget http://www.angstrom-distribution.org/feeds/v2012.05/ipk/eglibc/armv7a/base/openjdk-6-jre_6b24-1.11.1+1.11.2-devel+hg1+54ceda20a02c-r17.0_armv7a.ipk

then to install:
opkg install openjdk-6-jre_6b24-1.11.1+1.11.2-devel+hg1+54ceda20a02c-r17.0_armv7a.ipk

Brian

I tried to install it like the instruction on the webpage because i get the package not found error. but every server which hosts these packages is down. any ideas where to get the right sutff?

The packages in the feed browser point to http://www.angstrom-distribution.org/feeds/… but only the v2012.12/ is present (without libs/).

You can find your stuff in http://**feeds.**angstrom-distribution.org/feeds/
For BBB they reside in a vxxxx.yy/ipk/eglibc/armv7a/ subdirectory

You might consider using Oracle Java instead of openjdk. Find installation instruction here → http://beagleboard.org/project/java/

Oracle Java is regarded as significantly faster than openjdk.

pederm i have installed oracle java as you have suggested but i am now trying to launch processing.js to run some code but can’t get it to work, any ideas?

Are you really sure?
Do you need Java or is it JavaScript?

Have you read the processing.ps documentation?

The idea is to write "Processing" code that is translated into Javascript by "Processing.js" and then is run on the browser. ON THE BROWSER!

Is that what you want?

Best regards

Paulo Ferreira

Hi Paulo
No i want to use processing to run a gui i have designed in processing, this will eventually control and arduino, i cant even get the processing IDE to load.
I followed the instructions online to install open jdk but as the links no longer worked someone else suggested using oracle instead, i have managed to get the processing window open once but now it won’t open at all.

Have you managed to get the processing IDE working on your BBB?
or do you have any sugesstions on how i can get it up and running?
Thanks
Josh

Hi Paulo
             No i want to use processing to run a gui i have designed in processing, this will eventually control and arduino, i cant even get the processing IDE to load.

Ok.
So what you want to install is processing from http://www.processing.org

You do not want processing.js from http://processingjs.org

I followed the instructions online to install open jdk but as the links no longer worked someone else suggested using oracle instead, i have managed to get the processing window open once but now it won't open at all.

Have you managed to get the processing IDE working on your BBB?
or do you have any sugesstions on how i can get it up and running?

No, my only suggestion is to build Processing from the source, after having installed openjdk….
:frowning: :frowning:

Thanks
Josh

Best regards

Paulo Ferreira