[Q] How to install Java or plugins in Firefox of ICS? - Android Q&A, Help & Troubleshooting

Dear all,
Some websites require to use Firefox and install JAVA or plugins to play movies. But when I use Chrome to open these webs and click on the guided link to download JAVA, it told me that there is no suitable version yet.
When I use Firefox to open these webs, it said there are no plugins, and didn't tell me what plugins.
But I can open these movies on webs using android 3.1 or lower.
So, is it because ICS 4.0.3 hasn't supported to open webs which require JAVA or there are other ways to open these movies?
thank you very much for your reply.

Oracle doesn't make plug-in for Android but you may use Adobe Flash Player. But it's strange

I've already installed Adobe flash player 11 before but it's no use.
Actually they require JAVA runtime or plugins or something like that.

Android has no Java support. In order to use a Java plugin, the installation of Java se runtime for arm CPU would be required (it worked like a charm on my old Nokia n900 debian based) but there would be no way to use the Java vm into the dalvik vm.
The only way (if your phone is a dual core, though it'd too slow) is running Java applet into an Ubuntu chrooted environment. In that case, it would be strongly suggestable to download the latest version of Java se from oracle site, which has jit and is very fast in comparison to the version you can find on current Ubuntu img.
Then, you'll just have to unpack it and put it somewhere in Ubuntu chrooted fs and make a symbolic link in order to jar to be launched via that Java se version. Besides, check inside Firefox configuration (always the chrooted one) and manually set the plugin path, though it could use the old version.
So you'll get a fully functional Java vm in android

wow, it's complicated. So it means that I have to install 'ubuntu installer' (the same as 'linux installer' in Play Market, is it right? ) and then install firefox with plugins to use, does it?
If do it this way, my phone will run 2 environments (Android and linux) at the same time and it'll become too slow then. I think my galaxy s2 with CPU 1.2ghz, ram 1g is not enough to do this . Should wait till Android supports JAVA then
thank you for your help, lucaoldb!

You are welcome
It is easier than it looks. Anyway, the Ubuntu chrooted img has already Java support, though it is a slower version. You can test it and see if fits to your needs. If you want an improved performance, you can follow the way I suggested above.
---------- Post added at 02:09 PM ---------- Previous post was at 02:03 PM ----------
By the way, your hardware is ok and Java se support in android will not very likely be avalaible in next years, because Oracle sued Google people for copyright violation and the whole thing is not yet over...

lucaoldb said:
Android has no Java support. In order to use a Java plugin, the installation of Java se runtime for arm CPU would be required (it worked like a charm on my old Nokia n900 debian based) but there would be no way to use the Java vm into the dalvik vm.
The only way (if your phone is a dual core, though it'd too slow) is running Java applet into an Ubuntu chrooted environment. In that case, it would be strongly suggestable to download the latest version of Java se from oracle site, which has jit and is very fast in comparison to the version you can find on current Ubuntu img.
Then, you'll just have to unpack it and put it somewhere in Ubuntu chrooted fs and make a symbolic link in order to jar to be launched via that Java se version. Besides, check inside Firefox configuration (always the chrooted one) and manually set the plugin path, though it could use the old version.
So you'll get a fully functional Java vm in android
Click to expand...
Click to collapse
I downloaded Java for ARM from Oracle site; these are the libs provided:
Code:
[email protected]:~/Downloads/ejre1.6.0_32/lib/arm# ls
client libhprof.so libjawt.so libnio.so
headless libinstrument.so libJdbcOdbc.so libnpt.so
jli libioser12.so libjdwp.so librmi.so
jvm.cfg libj2gss.so libjpeg.so libunpack.so
libawt.so libj2pcsc.so libjsig.so libverify.so
libcmm.so libj2pkcs11.so libjsound.so libzip.so
libdcpr.so libjaas_unix.so libmanagement.so native_threads
libdt_socket.so libjava_crw_demo.so libmlib_image.so
libfontmanager.so libjava.so libnet.so
I cannot find libjavaplugin_oji.so or libnpjp2.so to create the symbolic link for Firefox.
How can I do?
Regards
EDIT:
Solved, I downloaded headless version of JAVA SE instead of headful version:
ejre-1_6_0_32-fcs-b05-linux-arm-vfp-eabi-headful-05_apr_2012.tar.gz
ejre-1_6_0_32-fcs-b05-linux-arm-vfp-eabi-headless-05_apr_2012.tar.gz
in headful version the file libnpjp2.so is present.

Related

[Q] Build java files for android platform

Hi,
I'm new to android developement. To make it short. Our project needs to be ported for android. It has some java and C code. We run this java as applet using Oracle JRE in linux systems and using firefox browser.
Now it needs to be done on android and browser. Android doesnot support JRE. Hence i downloaded eclipse, ADT plugin. Added my java files, external JRE library and compiled it. Got the apk and classes.dex.
Now my question here is i'm not able to proceed further. How to execute the same as in JRE before. I'm totally confused. Running the apk in emulator/android mobile only runs the activity.java code. Say i'm printing hello world in that(i dont need that but still i have wrote it as my first program).
I dont know how to execute my other java files(which will run as java applet before in linux systems). I'm stuck here since i have not worked on android.
This would be the first step in to my porting.
Also the easy solution would be to run the applet.jar i have directly on android similar to linux jre. Is it possible.?
Any sort of help would be great. Thanks.

android apps on linux?

as many of you know, android and Linux kernels started re-merging at version 3.3. People said that a short way down the road, android apps would be able to run natively in linux. the kernel is now version 3.6 and I've heard nothing more about running android apps in linux. people on these and other forums put a lot of great work into getting linux running on android devices. now with windows 8 coming out, the market will be full of both ARM and x86 based touch devices of all sizes and shapes. I for one would love to be able to boot up ubuntu on one of these devices, and use either traditional linux apps or android touch apps as my mood and situation dictate. so- any new word on when we will be able to run android apps in linux?
we are exploring this possibility, and did some work, but nothing to release yet.
I assume you already know that for now, you can run Android as a virtual machine on Linux host.
cool to hear the work is progressing, good luck!
I heard about using a VM but was never able to find where to get it.
nothing substantial yet, we wanted to run android apps directly on desktops, Linux or Windows. Using a virtual machine is really an over kill.
You can download a prebuilt vm from ours:
http://www.vmlite.com/index.php?option=com_kunena&Itemid=158&func=view&catid=9&id=8838
it has been downloaded millions of times. You can search "Android vm" on google to find instructions.
interesed
I am also hoping to see a solution to this question also. I understand that Debian, fedora and Arch Linux all have different packaging systems i always thought is was a smiler difference with android with more Java worked into the core of things. So i would think that adding the proper Java support to any Linux distro to support the apk package it should work but i am not a programmer.

Running compiled Java code

Hi.
I want to know if it's possible to run compiled Java code (through the CLI) on my Android (4.0, HTC Sensation XE). I'll be writing and compiling the code on my laptop. The cli programs that I want to write are fairly simple (using java base classes, networking), no graphical interfaces or anything that requires elevated privileges.
My phone is not rooted.
There is no JVM on android, so you cannot directly run Java apps compiled for desktop. All android apps are compiled into dalvik bytecode.
knutson said:
There is no JVM on android, so you cannot directly run Java apps compiled for desktop. All android apps are compiled into dalvik bytecode.
Click to expand...
Click to collapse
So can I get the dalvik VM (with the compiler) on windows/linux ?
From wikipedia I've read that there's a tool called dx that can convert .class files to .dex (but not any .class files can be converted).
Mayhem00 said:
So can I get the dalvik VM (with the compiler) on windows/linux ?
From wikipedia I've read that there's a tool called dx that can convert .class files to .dex (but not any .class files can be converted).
Click to expand...
Click to collapse
It is possible to install Android to VirtualBox and use it to run Android apps (much faster than emulator from Android SDK).
knutson said:
It is possible to install Android to VirtualBox and use it to run Android apps (much faster than emulator from Android SDK).
Click to expand...
Click to collapse
But I want to be able to run short Java programs I make on my phone .

Wine on UT?

There is wine for ARM, and with the help of qemu i red that can even run x86 programs. There is a way to configure it in Ubutu Touch (maybe whit libertine)? (i mean wine or/and wine+qemu)
You will be doing a lot of this yourself as there are no guides for setting up WINE on ARM, let alone using the userspace qemu emulator to run the x86 version (which isn't even truly supported, and does not work under Libertine).
I can point you in the right direction, however WINE for ARM requires you to compile it yourself and is only useful for ported Surface RT applications compiled for ARM (there aren't many). The first thing you'll need to do is recompile the kernel for your device with binfmt_misc support, this will allow WINE to register itself with the kernel to run EXE files. The rest is rather straight-forward, install qemu-user-binfmt on the system image and then WINE, after that, you should be good to go. Mind you though, Libertine does not support WINE, and it does NOT run under WINE (I tried it with this exact configuration on my Nexus 7 and Libertine would simply crash rather than run WINE, however if you run WINE from the system image instead of the container, you should be able to get it to run. You'll need to remove wine-preloader before it will run though.)

Native Arch Linux

I'm looking for a way to install arch Linux NATIVELY on the touchpad, I tried with kexec and the images available for it and it's all broken, it won't even complete the installation, I also tried this install guide with this image because the install guide uses images that are no longer available to download, but also no luck, there is also this post but the guy said it's really old and the txt file that is in his archive keeps repeating that it's "hacky".
So I really need a nice and modern approach, I know a lot about Linux, just not about porting so if someone wants to try and make a new port and a new installation method I could try to help.
We should really try to do this because it would bring a new life to the TP, imagine running i3-gaps on this beautiful piece of hardware.
Hope you guys can help me and before I post this I gotta say: "Btw, I use Arch".
arrudagates said:
I'm looking for a way to install arch Linux NATIVELY on the touchpad,
That will require a new Kernel and drivers for WiFI, Sound, Touch Screen and any other hardware.
I tried with kexec and the images available for it and it's all broken, it won't even complete the installation, I also tried this install guide with this image because the install guide uses images that are no longer available to download, but also no luck, there is also this post but the guy said it's really old and the txt file that is in his archive keeps repeating that it's "hacky".
So I really need a nice and modern approach, I know a lot about Linux, just not about porting so if someone wants to try and make a new port and a new installation method I could try to help.
We should really try to do this because it would bring a new life to the TP, imagine running i3-gaps on this beautiful piece of hardware.
Hope you guys can help me and before I post this I gotta say: "Btw, I use Arch".
Click to expand...
Click to collapse
The only way that I know that is reliable and works using the lastes Ubuntu, Debian or Arch in a chroot environment.
Click HERE for how to How to install Ubuntu 18.04 LTS Bionix Beaver, armhf on the HP Touchpad Desktop Environment XFCE and LXDE on a partition as chroot.
HP_TOUCHPAD said:
The only way that I know that is reliable and works using the lastes Ubuntu, Debian or Arch in a chroot environment.
Click HERE for how to How to install Ubuntu 18.04 LTS Bionix Beaver, armhf on the HP Touchpad Desktop Environment XFCE and LXDE on a partition as chroot.
Click to expand...
Click to collapse
I mean, that would work, but would require Android and wouldn't be native, I want to have arch and webos, both running native.
arrudagates said:
I mean, that would work, but would require Android and wouldn't be native, I want to have arch and webos, both running native.
Click to expand...
Click to collapse
The kernel is what makes the OS works by providing support for the hardware. WebOS Kernel is OLD and not supported by any current Linux, even LuneOS use the Android Kernel.
Android can be install and keep WebOS, it was a great OS but not nothing current will run on it.
Using the method posted, the most up to date and current Linux distribution of Arch, Debian, Ubuntu and more can all be install on the same Tablet running Android and use any Linux flavor without rebooting.
Android provides a very stable newer kernel that will share the resources with any listed Linux flavors and those built are native arm, runs super fast. If you want it to have all that done natively and not using Android, then the Kernel must be modified and all the "private drivers" ported to the most current version of Linux. The OS can not be updated as Linux will modify the Kernel, breaking everything. But everything is possible, is up to the user how much time and dedication plus the knowledge required to make it work.
HP_TOUCHPAD said:
The kernel is what makes the OS works by providing support for the hardware. WebOS Kernel is OLD and not supported by any current Linux, even LuneOS use the Android Kernel.
Android can be install and keep WebOS, it was a great OS but not nothing current will run on it.
Using the method posted, the most up to date and current Linux distribution of Arch, Debian, Ubuntu and more can all be install on the same Tablet running Android and use any Linux flavor without rebooting.
Android provides a very stable newer kernel that will share the resources with any listed Linux flavors and those built are native arm, runs super fast. If you want it to have all that done natively and not using Android, then the Kernel must be modified and all the "private drivers" ported to the most current version of Linux. The OS can not be updated as Linux will modify the Kernel, breaking everything. But everything is possible, is up to the user how much time and dedication plus the knowledge required to make it work.
Click to expand...
Click to collapse
I don't mind running old kernel/package versions, I am actually trying to run the old projects but most have the Images down and unavailable and the ones that don't just straight won't work.
arrudagates said:
I don't mind running old kernel/package versions, I am actually trying to run the old projects but most have the Images down and unavailable and the ones that don't just straight won't work.
Click to expand...
Click to collapse
I never installed any native Linux Os on the Tablet. The Ubuntu Touch was promising but never took off. The system must be stable for anything to be use otherwise is just experimental as most of those builds were. Running Linux in a Chroot environment is somewhat, not the same, as a Linux guest virtual machine and Android as a host.
That is the only way I know of, that is stable and current.
Ok so right now I have two more options available to try but they are probably not gonna work, in that case I'll start to look about making my own port of ArchLinuxARM
arrudagates said:
Ok so right now I have two more options available to try but they are probably not gonna work, in that case I'll start to look about making my own port of ArchLinuxARM
Click to expand...
Click to collapse
I did search for a working native linux OS for the Tablet, but did not found any.
It can surely be done, take a look at this video and the source at GitHub.
Youtube
https://www.youtube.com/watch?v=vx8_u1jhXJY
GitHub
https://github.com/CalcProgrammer1/kernel_tenderloin_debian
The Tablet uses LVM and can easily be partition in any way. It can also boot directly into Linux. The only thing to do is rename the file in /boot uImage.moboot to the Linux uImage ( example ) uImage.ArchLinux.
If any help, let me know.
Have fun!
I'm making some progress
arrudagates said:
I'm making some progress
Click to expand...
Click to collapse
Congratulations !
You did it ! once it boots is all it matters.
This is an idea, a chroot Arch can be built inside Android
A partition can be created in LVM Arch_Linux ( any size )
Inside Android with the App I posted, create the Chroot Arch Linux ( up to date )
Then modify the Ramdisk to direct at the partition Arch_Linux ( same it was use in the Chroot )
Then it should boot up ( some other changes will need to happen I guess)
Arch armv7l as chroot in Android 8.1 with HpTp_MAX
Testing the new kernel settings in Android and installed the latest version of Linux Arch using Linux Deploy.
It is fast and it would be even better running native!
Attached are the screenshots.

Categories

Resources