20071113
Android Runs on Java and Under the Couch - Click!
I don't know why people still use Java. Even on a dual core system with pleanty of memory, Java love to suck up system resources until it putters at a Commodores pace. In addition, Java is an energy hog on portable devices, including Moto's RAZR.Here's something to think about: Why aren't portable apps being written in Python or C? I read about portable applications for mobile devices using open source software all the time. Why don't we see these things in other technology magazines other than Linux Journal or Linux User?
C is efficent. The codes can be ported to iPhone and Palm OS. But mobile application projects for C and Python came to a halt earilier this decade, primarily because Java became the only game in town.
Thanks to Apple, interest in programming mobile devices is on the rise again. Hacking the iPhone is the primary goal, but hopefully Palm OS and Blackberry users will join in. (This was one of Android's goals in the first place.)
Android runs under the couch like a Roomba Robot. Atleast I still have an SSH program.
UPDATE:
After some review of Android, I have decided to reconsider my stance on Java programming. Perhaps I will find what it is that Java does that make is so energy-innefficent.
My appologies for being dismissive.
Labels: brew, google, java, palm, phone
posted by Bushido Hacks 11/13/2007 02:01:00 PM (0) comments top
20040720
Coffee Fix - Installing Java on Linux - Click!
All right Linux users, listen up. You use Mozilla or Firefox for Linux but you don't have Java installed. While the literacy rate in the United States is about 98%, you really are not in the mood to exercise you ability to read. You just want to install Java and not read that verylarge disclaimer that comes with downloading AND installing Java. You've already agreed to all that legal mumbo jumbo, wheter you read it completely or not.So lets to a refresher course on how to install Java for Linux.
I will assume that you have the following:
- A machine with a 32-bit processor running some form of Linux.
- You have a Konsole shell ready to run command line sequences.
- You are using Firefox or Mozilla.
From here on out, I'm going to use the <acronym> tag which should project a dotted line below some acronyms. Otherwise, I'll tinker with the CSS in this page later. I wish I could get XSLT to work so these acronyms automatically insert themselves, but I'll dicuss that someother time.
Ready? Good lets begin.
Go to http://java.sun.com/j2se/1.4.2/download.html. If version 1.4.2 has been superceeded by a newer version, goto http://java.sun.com/j2se/. There really is nothing too great about J2EE. Stick with J2SE. One other thing, install the SDK not the JRE!. Click on where it says "Dowload J2SE SDK". Scroll to the end of the License Agreement just to be sure that they don't have a script running that ensures that you look atleast at some part of the agreement. Click accept then continue.
Because your Linux Distro more than likely has an RPM database to keep software up to date and to simplify installing software on Linux, you should download the "RPM in self-extracting file" version of the Linux Platform binary. Currently, the file name is
j2sdk-1_4_2_05-linux-i586-rpm.bin. For now, put this file in your home directory.The one thing I was irked about the guys at Java, is that they never tell you what to do, post-download, like HOW TO INSTALL THE FREAKING BINARY! So go to http://java.sun.com/j2se/1.4.2/install-linux.html#install-rpm and pick up where they left of, or read my version of the installation instructions. I recommend my version because there are a few thing the Java guys forgot to tell you about.
In the Konsole
$ chmod a+x j2sdk-1_4_2_05-linux-i586-rpm.bin$ ./j2sdk-1_4_2_05-linux-i586-rpm.binWARNING! WARNING!When you execute the second line, you will run into the License Agreement again. To make this p.i.t.a. experience a little more bearable, hold down the return button Untill you see section G, the part about Third Party Code. Then tap return carefully until you see the prompt asking "Do you agree to the above license terms?". Press y then return. The file
j2sdk-1_4_2_05-linux-i586.rpm is now available to use.Next, become root.
$ suPassword:# rpm -ihv j2sdk-1_4_2_05-linux-i586.rpmIt may seem that your screen has frozen up, but rest asure, it hasn't. It will take about minute for the package
j2sdk to become part of the database.Once all that is done, delete j2sdk-1_4_2_05-linux-i586-rpm.bin but not j2sdk-1_4_2_05-linux-i586.rpm. It is best that you back up the RPM file until a newer version is released.
Now, hold on! You are not finished yet. You may have java on your machine now but you don't have the java plug-in work.
First off, DO NOT COPY
/usr/java/j2sdk1.4.2_05/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so to the firefox plugins folder! You will crash Firefox everytime jo goto a webpage with a java applete. Not fun!YOU SHOULD CREATE A LINK!
In Konsole:
# cd /firefox/plugins# ln -s /usr/java/j2sdk1.4.2_05/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.soTADA! You now have the power to defend the earth like never before, or atleast use Java.
Try going to AnfyTeam.com.
In the future, expect to see Java Applet tutorials aswell as how to create programs in C++ and Java as eariler stated.
posted by Bushido Hacks 7/20/2004 02:26:00 PM (0) comments top