Java: May 2010 Archives

How to install the Java runtime plugin for Firefox (the Minefield version) in Tiny Core Linux

| | Comments (1) |

java-logo.jpgI knew I could get Java working in Firefox on my Tiny Core 2.11 Linux installation. I just had to think about it for a while.

I first tried the OpenJDK packages in Tiny Core, but those didn't work. Now that I know what I'm doing ... sort of ... I could probably get them to work, but I went about things another way.

Before I start, let me just stay that I didn't do this the entirely "kosher" way, but it works and for now (and for my idea of what Tiny Core is), I'm OK with it.

First I got the self-extracting Java runtime from Java.com.

After a few aborted attempts, I decided to do this in the /home directory, which in Tiny Core is /home/tc

I had the self-extracting .bin file jre-6u20-linux-i586.bin in the Desktop portion of the /home directory. I made a directory for it:

tc@box:~$ mkdir java

Then I moved the .bin into it — I wanted everything where I could keep an eye on it:

tc@box:~$ cd Desktop

tc@box:~$ mv jre-6u20-linux-i586.bin /home/tc/java

I went into my new directory and, per instructions from java.com, made the file executable:

tc@box:~$ cd /home/tc/java

tc@box:~$ chmod a+x jre-6u20-linux-i586.bin

Then, also per java.com instruction, I extracted and installed the archive:

tc@box:~$ ./jre-6u20-linux-i586.bin

After scrolling through the boilerplate EULA, I agreed to the terms and had the Java runtime installed in the directory I created.

(I know that it's better to have this somewhere under usr/bin, and I might very well move it later, but for now this works, so I'm keeping it.)

The next step was making the symbolic link to the plugin. Most instructions say to make this link in /home/tc/.mozilla/plugins. THIS DID NOT WORK in Firefox 3.0.4 aka Minefield.

Instead, the place to make the symbolic link is /usr/local/firefox/plugins

So opened a terminal, switched to root and did that:

tc@box:~$ sudo su

tc@box~# cd /usr/local/firefox/plugins

tc@box~# ln -s /home/tc/java/jre1.6.0_20/plugin/i386/ns7/libjavaplugin_oji.so libjavaplugin_oji.so

That leaves the symbolic link here:

/usr/local/firefox/plugins/libjavaplugin_oji.so

which leads to:

/home/tc/java/jre1.6.0_20/plugin/i386/ns7/libjavaplugin_oji.so

Remember, it was my choice to extract and install the Java runtime in the /home directory. There are probably better places for it, but until I know Tiny Core a whole lot better, I'll keep it where I can see it ...

I started Firefox 3.0.4 (aka Minefield) looked in Tools - Add-ons - Plugins, and the Java plugin was right where it was supposed to be.

Just to be sure Java will run in the browser, go to Edit - Preferences - Content and be sure the "Enable Java" box is checked.

Another way to check for Java is to go to about:plugins in the URL window of the browser. You should see a long list of Java-specific output.

I did confirm that Java works in Minefield/Firefox, and now I can use Tiny Core for those few yet critical tasks that require the Java runtime, making TC that much more valuable to me.

Potential problem: One thing I'm noticing is that the java_vm process is still knocking around in my system, even though I'm not using the Java runtime at this particular moment.

It wasn't using any CPU but was eating about 400 MB of RAM. Nice little thing, that Java.

I killed java_vm in a terminal, and it took Firefox/Minefield with it. Nice.

So I have Java, but I'll be keeping an eye on it, wondering if it will behave (and checking my other systems for errant java processes that run on too long).

As a way of explaining what this is all about, Cameron Simpson wrote the following way back in 2005:

The JVM gets started once and hangs around because a JVM has a noticable startup cost. If you want web pages with Java content to be "snappy" in loading (bandwidth aside) it helps if the JVM is already present and initialised, and so it doesn't go away when idle.
Provided it's consuming no CPU then it's no added burden on your system; memory contention will page it out to your swap space if necessary.
Do you have a technical reason for wanting it gone or does it just seem "untidy" to your eye?

I hope that's true. In my case, the /swap on my drive is encrypted and not available to be used by Tiny Core, so I'll be keeping an eye on java_vm when I run Java in TC.

Tech Talk column

Steven Rosenberg's weekly Tech Talk column, which appeared Saturdays in the Los Angeles Daily News through about October 2009, is available on the Daily News Technology page.

About this blog






Steven Rosenberg aims to learn what he does not know. He writes about it here.



About this Archive

This page is a archive of entries in the Java category from May 2010.

Java: May 2009 is the previous archive.

Find recent content on the main index or look in the archives to find all content.

Recent Comments

Steven Rosenberg on Running OpenBSD in a live environment with MarBSD-X : Jggimi has images for OpenBSD 5.0: http://jggimi.homeip.net/ ...

Monstra on CMS and blog software without databases: Monstra CMS is the best flatfile CMS ever! (!) Easy to install, upgr ...

Chris on Running OpenBSD in a live environment with MarBSD-X : Jggimi isn't developing his images anymore. If you want an updated Ope ...

Peter Ljung on Review: DragonFlyBSD 3.0.1 -- the longest DragonFlyBSD review ever -- Part 5: Comparison to OpenBSD 5.0 and closing comments: I have also been fascinated by the Hammer file system and think it wou ...

Anonymous on Review: DragonFlyBSD 3.0.1 -- the longest DragonFlyBSD review ever -- Part 2: My BSDistory: Can you just get to the actual review? ...

Bill Callahan on SugarSync is working on a Linux client, but I'm not unhappy at all with Dropbox: I've been very happy with SpiderOak. It has a native Linux client as w ...

AJ on Debian Stable -- set it and forget it -- spoils me for fresh Linux Mint 12 on some very nice ZaReason hardware: Gnome 2 is still standard in the upcoming SolusOS (Currently at RC 2). ...

Niki Kovacs on Debian Stable -- set it and forget it -- spoils me for fresh Linux Mint 12 on some very nice ZaReason hardware: Since I've moved to Debian stable - with a few tweaks - I've not only ...

Earl on Debian Stable -- set it and forget it -- spoils me for fresh Linux Mint 12 on some very nice ZaReason hardware: I use Mint 12 and LMDE based on Debian testing. Both are plagued by G ...

Alan Rochester on Debian Stable -- set it and forget it -- spoils me for fresh Linux Mint 12 on some very nice ZaReason hardware: "mint does have a separate xfce edition afaik.." The Debian version o ...

Java: May 2010: Monthly Archives

Powered by Movable Type 4.25

Search this blog

Loading

LXer

Links

Life, the Universe and Debian
Simplify
Daily News technology
LXer
Distrowatch
Linus' Blog
David Pogue
BoingBoing
Linux Today
TuxRadar
Linux.com
Linux Planet
The Open Road
Linux Outlaws podcast
Dan Lynch
Fabian Scherschel
The VAR Guy
Larry the Free Software Guy
Chess Griffin
Linux Reality podcast
Desktop Linux
Practical Technology
Linux Devices
ZDNet
ZDNet's Storage Bits
ZDNet U.K.
iTWire
CNet News
Webware
Beyond Binary
TechCrunch
The Register
Ars Technica
Reg Developer
Computerworld
Computerworld blogs
Steven J. Vaughan-Nichols at Computerworld
Debian
Planet Debian
Debian Forums
Debian News
debianHELP
debiantutorials.org
The Debian User
Wolfgang Lonien
Debian-News.net
Debian Administration
Debian Admin
Debian Weather
Aaron Toponce
Ubuntu
Xubuntu
Kubuntu
Edubuntu
Planet Ubuntu
Ubuntu Forums
Ubuntu Geek
Works With U
OMG! Ubuntu!
I' Been to Ubuntu
Tanner Helland
Dustin Kirkland
Ubuntu UK Podcast
Ubuntu Linux Help
Popey
Linux Mint
CrunchBang Linux
OpenBSD
OpenBSD Journal
OpenBSD Ports
OpenBSD 101
Planet.OpenBSD.nu
jggimi's OpenBSD live CD
DaemonForums
BSDanywhere
Marc Balmer
Denny's OpenBSD blog
Polarwave's OpenBSD Tips and Tricks
Binary Updates for OpenBSD
Puppy Linux
Damn Small Linux
Tiny Core Linux
Lucky 13's Linux blog (lots of Tiny Core)
Lucky 13's BSD blog
PCLinuxOS
Mandriva
Red Hat
Red Hat News
Red Hat Blogs
Red Hat: Truth Happens
Red Hat Magazine
CentOS
Planet CentOS
Fedora
Planet Fedora
Fedora Forums
Fedora Docs
Join Fedora
Paul Frields
Slackware
Slackbuilds
Robby's Slackware Packages
Slackblogs
dropline GNOME for Slackware
GNOME Slackbuild
GWARE - GNOME for Slackware
Wolvix
Zenwalk Linux
Vector Linux
Slax
Splack Linux — Slackware for Sparc
Nonux
How to Forge
marc.info BSD and Linux mailing list archive
FreeBSD
FreeBSD, the Unknown Giant
A Year in the Life of a BSD Guru
NetBSD
hubertf's NetBSD Blog
PC-BSD
Daemon Forums
FreeBSD Forums
Planet FreeBSD
Evilcoder.org
miwi's Privat Blog
DragonFlyBSD
DragonFlyBSD Digest
DesktopBSD
BSD Talk podcast
BSD Magazine
Rhyous
OpenSolaris
MilaX
BeleniX
DeLi Linux
Linux Loop
Electronista
The Tech Report
Engadget
Gizmodo
Phoronix
xkcd – A webcomic of romance, sarcasm, math and language
Nixie Pixel
Technology for Mortals
Thoughts on Technology
ZaReason
System 76
Tiger Direct
NewEgg
DealExtreme

Advertisement