Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I require Java for work purposes and standard Android would not do for me on my Nexus, hence I have decided to try to Ubuntu route.

How do I successfully install Java into the Ubuntu ARM version for the Nexus 7 and will it support running *.jnlp java files?

share|improve this question
2  
Please keep in mind that although things are improving, Ubuntu on Nexus7 is not really ready for people to use as a general purpose system. –  mfisch Dec 5 '12 at 17:00
add comment

4 Answers

Try running:

sudo apt-get update && sudo apt-get install openjdk-7-jre openjdk-7-jdk

Launchpad lists openjdk as being available for ARM so it should install.

share|improve this answer
    
It does install just fine. You cannot install Oracle's Java though, they don't build for ARM. –  mfisch Dec 5 '12 at 16:59
1  
@mfisch Yeah it sucks. There used to be an ARM version back when it was Sun Java but the PPA hasn't been updated ever since Oracle took over and closed up a lot of things. –  japzone Dec 6 '12 at 2:00
add comment

I'm currently working on this Java on ARM (Android running Linux) for multiple distributions; Ubuntu included. I am curently running Debian Squeeze, by way of the Debian Kit app, ontop of Android.

You can find all the notes and links that I've complied about this subject in the attached link to the XDA thread that I maintain; my user name for XDA is S0AndS0. Feel free to contact me to either help with the effort or post questions about my methods. I will be writing and maintaining a collection of scripts and quick mods for those that are running Linux on mobile devices which I'll eventually release on the Android Market Place as a "Companion to Linux" app, for making all our lives a little easier. [Guide] Debian Kit & Limbo PC Emulator (QEMU x86) for Dual-booting Linux on Android http://forum.xda-developers.com/showthread.php?t=2240397

I mantain a github account under the same user name S0AndS0 and you can find a fully working scripted expereance that will; download java jre hard float, jre soft float, JDK hard float, JDK soft float; Install either JDK flavors (still working on jre installers) after download is compleated; and give options to download java dependent software to test if it works. To run the main script; open a terminal window and input the following commands~

git clone https://github.com/S0AndS0/Debian-Kit-Mods

sh /Debian-Kit-Mods/ARM_Linux_Moder

~choose option 1 when prompted to unpack the download script and if you want a scripted install expereance choose option 4 within that script for JDKsf or test option 3 for JDKhf and you'll then eventually be prompted by the installer script (mostly yes to continue prompts) be sure to read what you're saying yes or no to. And in ruffly 20-40 minuets you'll have Java from source installed to your ARM Linux OS.

~~~~~~~~~~~~~~~~~~~~~ Update 03042014- edited above for easier reading and removed information that is now outdated dew to script updates, now only requires 2 command line commands and a few prompts to download and install Java's JDK hard or soft float. Now looking for testers to test the hard float version.

share|improve this answer
add comment

Even if you get OpenJDK, you'll still have to deal with the display server. Ubuntu Touch uses Android's SurfaceFlinger currenty, and will switch to Mir soon, but it won't run X11. As far as I know, Java's AWT and Swing don't support either SurfaceFlinger or Mir, so they wouldn't be able to display GUIs.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.