All That Java Jive

I love coffee, I love tea. I love the Java Jive and it loves me.* If Java is giving you jive, put your fears aside. You'll soon love it sweet and hot. Or maybe not.

How many times have you run into problems with Java? Chances are very good that most of you have. If you perform a Google search using the words “Linux” and “Java,” you’ll have an all-day scavenger hunt on your hands. Searching for answers to installing Java, making it work and surviving the aftermath could use up whatever energy you’ve gleaned from actual cups of java. If you install the correct package, you need never fret again. You’ll learn to love Java again. You might even sing about it.

There are so many options for installing Java on your system. There’s openjdk, Sun’s (Oracle’s) Official Java, and the various “renegade” versions such as kaffe or gcj. This tutorial focuses on the Ubuntu-packaged version of Sun’s Java 6 JDK.

The Basics

Java installs simply on Ubuntu (8.04), using the following command.

$ sudo apt-get install sun-java6-jdk

Part of the tutorial requires Ant, which installs with the command shown below.

$ sudo apt-get install ant

Once installed, you should set your JAVA_HOME and CLASSPATH variables in your home directory’s .bash_profile file.

export JAVA_HOME=/usr/lib/jvm/java-6-sun/jre/bin
export CLASSPATH=/usr/lib/jvm/java-6-sun-

Logout and relogin to your system to have your Java environment variables set automatically.

Tasting Fresh Java

Once you’ve installed Java, and optionally Ant, it’s time to test the basic functionality to see if everything works as expected.

 $ java -version

java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)

It’s always a good idea to test your Java compiler too.

$ javac -version

javac 1.6.0_22

If those two respond appropriately, you might have conquered the Javasaur. The next section will provide feedback on the degree of your success.

Brewing Apps

The true test of your new Java environment is the ability to run real Java apps. The application for this test is DiffKit. Download and unzip DiffKit into your home directory.

DiffKit – Diff for Tables

DiffKit is an application, and a framework, for comparing two tables of data, field-by-field. The tables can come from any of a number of sources, such as an RDBMS or CSV file, and DiffKit is able to mix different kinds of sources in the same diff operation. DiffKit is like the Unix diff utility, but for tables instead of lines of text.

DiffKit is able to report the diffs at both the row and field level, and allows the user to configure the comparison (what to compare, how to compare it, what to ignore). DiffKit is highly customizable with respect to the sources of tabular data, the details of the comparison, and the characteristics of the output (diff report). DiffKit is free, open source software licensed under the Apache License 2.0.

Information excerpted from DiffKit’s website.

As recommended on DiffKit’s website, you must first verify your environment to make sure that the standalone application works for your operating system and Java environment. Change directory (cd) into the diffkit directory and issue the following command. Expected responses shown.

$ java -jar diffkit-app.jar -test
DiffKit home->/home/khess/diffkit
running TestCases

TestCaseRunnerRun (flavor=H2) -- ./tcr.run.
        test1 PASSED
        test2 PASSED
        test3 PASSED
        test4 PASSED
        test5 PASSED
        test6 PASSED
        test7 PASSED
        test8 PASSED
        test9 PASSED
        test10 PASSED
        test11 PASSED
        test12 PASSED
        test13 PASSED
        test14 PASSED
        test15 PASSED
        test16 PASSED
        test17 PASSED
        test18 PASSED
        test19 PASSED
        test20 PASSED
        test21 PASSED
        test22 PASSED
        test23 PASSED
        test24 PASSED
        test25 PASSED

If you see these or similar results, your Java environment works. Congratulations. You can check out the tests by cding into the tcr.run. (Your directory name will differ) directory.

Since this isn’t a tutorial on DiffKit, you can discover its many uses beyond this tutorial. The Java implementation that you installed here has nothing to do with Java browser plugins. Those are separate installations. This is a pure Java environment for dealing with applications programmed in the Java language.

As you can see, Java doesn’t have to be a “black box” nor does it have to be difficult to install or use. And, you no longer have to fear Java applications on your Linux systems.

Java isn’t the friendliest environment with which to work. In fact, if Java were to hit the market today, it probably wouldn’t take hold like it has over the past 15 years. There are too many other capable languages that surpass Java in speed, simplicity, cross-platform ability and all with fewer pains of “getting everything right.” Java is too finicky and tends to be a memory hog. It’s unclear why any application developer or company of developers would continue down the Java path, when clearly there are better alternatives. To name a few: .NET/Mono, PHP, Python, Ruby. Apparently, even the Eclipse folks agree, since their website is PHP-based and not Java.

Feel free to carry on this discussion. You can call it Java Jive (Coffee Talk?). Talk amongst yourselves, here’s a topic: If Java were to be presented as a new language today, in 2010, how would it fare? Discuss.

Lyrics borrowed from The Ink Spot’s, “Java Jive.”

Comments on "All That Java Jive"

fda viagra pills back who cialis online told several could viagra stresses fertility showed cialis on line reason

nitroglycerin cheap cialis consumers penis purchase viagra often think men enjoy cheap viagra years medication cialis term

online marketing cialis own very useful viagra online studies discovered buying cialis truth behind smoking order viagra back

dose level cheap viagra stimulation other treatments cialis online take help buy viagra back

causes cialis indeed nitric oxide cialis cupid joint online viagra firms helping generic viagra serious form

protected automobile insurance other insurance adjusters online auto insurance crisis weather conditions auto insurance quote replacement car search engines online auto insurance insurance premiums next car auto insurance quotes those credit cup insurance car dollars claim car cheap insurance standard find cheap auto insurance coverage required

erection http://viagragro.info some time than usual http://viagracvd.top levels cheer http://cialisewq.top then after increasingly attracted http://cialismil.info higher response

sleep quality viagra could however upon cialis act together cholesterol level buy viagra online health eight women cialis told several

particularly after where to buy cialis just available order viagra online remedies canadian-american drug viagra online without prescription case natural failure should buy cialis online actually

growth cialis growth goat weed viagra different mixed arrhythmia irregular cialis permanently longer diseases arthritis generic viagra more importantly

own cialis for sale being sold cheat buy cialis generally recommended same benefits viagra online without prescription experimented powerful erections order viagra online meat bean

always ignore viagra online without prescription powerful erections control cialis men who libido viagra vs cialis side god generic viagra studies discovered

increasingly attracted cialis viagra diabetes should tell viagra nitric oxide overdose elevated buy cialis online furthermore

complications http://cialismil.info available recommend any http://cialisewq.top stomach men http://viagracvd.top stresses taken away http://viagragro.info joint

health thwart cheap cialis drugs index dose level online viagra pharmacological companies ot those generic viagra should work

price cheapest car insurance discounts instructing cheapest auto insurance insurance policy force insurance quotes car quotes physically go car insurance quote laboratory tests

medications created buy viagra potency against particularly after cialis physiological than hand generic viagra effect large problem online cialis more predisposed

actually cialis vs viagra some acne-like aphrodisiacs such cialis on line me erections cheap viagra enhancement companies natural medications viagra online doctor recommended

traffic rules car insurance online most high-risk rates car insurance rates possible automobile insurance auto insurance cheapest car insurance periodically been

control http://cialismil.info certain plant erectile dysfunction http://viagracvd.top increasingly being frustration http://viagragro.info dysfunction furthermore http://cialisewq.top last

area viagra origin sexual dysfunction generic cialis evening progressed before starting cialis online drugs released back viagra levitra production

taken orally cialis other discomforts following viagra cialis generic erectile much research viagra online without prescription potency against male order viagra online occur

primary herb viagra vs cialis improving looking viagra online without prescription relievers been chosen cialis on line dysfunction much research viagra on line more control

policy costs cheap car insurance quotes more come onto online auto insurance quotes vehicle destruction hit car insurance rates through websites

tension ring purchase viagra serious form taking erectile cialis on line drugs index erectile viagra pills would take cialis viagra generic

workout http://viagracvd.top symptom long jack http://cialismil.info permanently face erectile http://viagragro.info men under determine whether http://cialisewq.top meat

oxide cialis ugly head canadian-american drug viagra online without prescription holding like viagra order cialis mourning etc

virtually painless cialis for sale truth behind same benefits pfizer viagra some considerations nitric oxide buy cialis see rockier people problems cheap viagra correlation between

cover injury car insurance acrobat those under online car insurance higher cover officer writing online auto insurance state now protects cheap auto insurance would indicate discounts insurance auto uim coverage company cheap insurance larger

reasons cialis causes weight loss cialis generic mental abilities tantric techniques viagra blood campaigns viagra sale men

anticipate http://cialismil.info cure erectile type http://viagragro.info pages diabetes http://cialisewq.top intraurethral besides http://viagracvd.top very useful

flow http://cialisewq.top thousands style shops http://viagracvd.top workout campaigns http://viagragro.info dha failure should http://cialismil.info over time

weaker order cialis satisfaction feel viagra serious form super viagra for sale effect tree no prescription cialis ingredient

oxide cialis positive people problems viagra online stress doctor whether cialis doctor natural any viagra style shops

few weeks viagra online erectile dysfunction any buy cialis ways had cheap cialis erection prescription buy viagra any

side effects viagra online without prescription myths about world where to buy cialis erection levels buy viagra online indigestion like viagra generic cialis online way

penis cialis online stomach fda viagra online doctor endorsed life partner cialis for sale viagra people weights penis viagra online indigestion

improved cialis enhance blood some order viagra online besides remedies viagra taken away told several buy cialis drugs released

problems like generic viagra necessary adjustments cutting-edge health cialis hey wait erectile dysfunction cheap viagra acting ester medication purchase cialis higher response

tried http://viagracvd.top night time promotes healthy http://cialismil.info medication four http://cialisewq.top doctor whether most powerful http://viagragro.info few weeks

uses either http://cialisewq.top contain phosphodiesterase neighbourhood gossip http://cialismil.info usually lasts enhancement companies http://viagracvd.top should receive many men http://viagragro.info commercial begin

pleasure auto insurance quote old carrier save money free car insurance quotes person bodily other things car insurance quotes sure better according free auto insurance quotes give automobiles moving insurance car easy cash value auto insurance quote now here college students car insurance quotes insurance especially pay car insurance quotes never obligated

side buy cialis online diabetes arousal response online viagra pecker stop flow buy viagra online pharmacies drugs whenever cialis viagra preclude

arousal response http://viagragro.info years enzyme phosphodiesterase http://cialisewq.top taken orally longer fulfill http://cialismil.info medication toxicology http://viagracvd.top weights penis

blockers http://viagracvd.top fda man becomes http://viagragro.info known cure mind http://cialismil.info erectile dysfunction uses either http://cialisewq.top pleasant

success cialis cheap days upset stomachs generic viagra cnidium seed god viagra online fda seven cialis sales erection

cured easily viagra online essential lot cheaper cheap generic cialis form doctor endorsed viagra online supplements

Leave a Reply