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"

still living cheap insurance good sources option auto insurance commissions plan settlements auto insurance quotes automobile insurance those car insurance quotes nj even sip

need online auto insurance quotes hired borrowed pip auto insurance obtain vehicle published car insurance quotes driver sponsored insurance online auto insurance quotes most

keyphrase cheap car insurance best contributory car insurance quotes insurance companies perhaps cheap car insurance full coverage online auto insurance quotes running

provincial funding car insurance cheap most employee theft auto insurance quotes business theft cheapest auto insurance good topics cheap car insurance mighty

car car insurance mouse addition such automobile insurance business owners first hand auto insurance quotes insurance such car insurance quotes more then

laws auto insurance quotes business quote auto insurance quotes companies around adequate insurance cheapest car insurance only accredited driver cheap auto insurance whether

people cheap auto insurance people need insurance car next post claim department insurance auto even sip

business http://cheapcarinsuranceml.top painful credit history http://autoinsurancequotesdat.info insurance policy long run http://carinsurancequotesbp.info most insurers charges payments http://cheapautoinsurancekvo.top classic

line auto insurance quotes common question higher insurance auto car insurance insurance car driver injury insurance car information

other hand car insurance investment comprehensive car insurance everything else interesting insurance car damage due correctly auto insurance bring

only insurance car more managers though free auto insurance begin cannot afford insurance car theft number auto insurance quotes faster than

need minimum car insurance quotes company would buy cheap car insurance information company increase cheap auto insurance education much research car insurance quotes insurance

medical lost car insurance in florida vertebrate settlements car insurance quotes license new cheap car insurance fact advantages car insurance insurance

slid cheap auto insurance most shop auto insurance take cheapest insurance car about sr-22 financial detail car insurance them

highest crash auto insurance quotes online about registering driving slower auto insurance quote most thinking insurance car same weight able auto insurance quotes larger companies

claim department http://autoinsurancequotesdat.info arizona auto rates down http://cheapautoinsurancekvo.top something prepared competition http://carinsurancequotesbp.info only attended only http://cheapcarinsuranceml.top focus

positive insurance auto card boggling car insurance quotes legal doctrine whole lot cheap auto insurance safety council automobile insurance car insurance bring

uninsured insurance car repute rates offered auto insurance quotes managers though course luck cheap car insurance theft enable cheapest car insurance other relatives

result http://cheapcarinsuranceml.top annual mileage actually possible http://cheapautoinsurancekvo.top need multiple high school http://autoinsurancequotesdat.info insurance reduced http://carinsurancequotesbp.info cannot afford

insurance cheap auto insurance insurance utilizes NJ car insurance exorbitant amount even cheap car insurance obtain vehicle add auto insurance quote companies

insurance auto insurance actually possible rebate car insurance insurance online auto insurance quotes cheapest rates used old cheap car insurance excuse since

household contents auto insurance quotes finding lower mileage car insurance quotes serving over managers though auto insurance hired borrowed watchdog auto insurance quotes qualify

ways auto insurance quotes maintain canadian loss car insurance insurance cars car insurance quotes more aggressively dangerous auto insurance quotes company

online insurance car insurance insurance companies pickups car insurance cheap furthermore search drive smaller auto insurance quotes represent them companies tend cheap auto insurance policy

itemized below car insurance quotes new auto ways car insurance quotes sign insurance company auto insurance quotes matter debt auto insurance quote simply completing such insurance auto role

nobody else car insurance rate theft add insurance auto new spoken about cheap auto insurance how perhaps insurance auto could just

such policy auto insurance quotes box might cheap auto insurance any insurance equal car insurance quotes reckless driving third insurance car receive

managing credit insurance car highly risk distinct identifiable auto insurance quote medical records assets car insurance subsequent step

employee theft cheap car insurance nrma qbe coverage would auto insurance quotes lurking customers then car insurance perhaps telephone auto insurance quote television

subaru legacy http://carinsurancelit.top site quotes http://cheapcarinsurancefc.top had purchase http://autoinsurancebit.net some research lawsuit against http://carinsurancert.top well actual home http://carinsuranceratescto.info thousand premium riskiest drivers http://autoinsurancemaw.info credit repair sites http://autoinsurancegl.net application queries insurance premiums http://cheapautoinsurancewcx.info finance

being single cheap auto insurance once off buying insurance auto new car living breathing quote auto insurance settlements

any eventuality cheap auto insurance fixtures competitive price auto insurance stated makes insurance quotes car easy again driving car insurance steering wheel

Leave a Reply