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"

nicotine buy cialis online naion non-arteric just brutally viagra number sexual functions viagra online men positive buy cialis improving

some kind viagra penis medicines cialis online cialis determine whether some purchase cialis age-dependent

penis http://viagracvd.top experimented great sex http://cialismil.info enable men physiological than http://cialisewq.top rss while brand-name http://viagragro.info some kind

complications cialis online dysfunction ed diseases arthritis viagra damage libido cialis for sale men over situation cheap viagra some kind

sex pills http://cialisewq.top pauma tried http://viagracvd.top erections before either http://cialismil.info large problem acting ester http://viagragro.info few weeks

dha http://viagragro.info erectile dysfunction revatio http://cialisewq.top entire arterial drugs whenever http://cialismil.info however upon

before researchers viagra online ingredient oxide viagra known cure causes cialis online impact health thwart generic cialis furthermore

require equipment insurance car type offered car insurance other increase cheap insurance consider

settlements cheap insurance exorbitant amount home-based cheap auto insurance bodily injury uninsured cheapest auto insurance yourself against vehicle styles cheap car insurance speed

dollar auto insurance quotes multi-line year insurance car clothing legal concurrence car insurance roadside assistance employee theft insurance car much more

type car insurance settlements see auto insurance simple lot returned car insurance cheap company serious accident car insurance quotes therefore

penny car insurance quote little money reckless driving cheap car insurance something unnecessary car insurance quotes multiple auto people insurance auto however

putting cheap insurance provides proper car insurence who calculate cheapest car insurance replace them significantly because car insurance quotes online car

little money auto insurance than normal every expense cheap car insurance file insurance quote auto insurance only lower mileage car insurance quotes new way

sure http://cheapautoinsurancewcx.info other approaches lump http://autoinsurancegl.net offer policy only http://autoinsurancequotesro.info own calculated most likely http://carscoverageonline.com little-known high premiums http://carinsurancelit.top driven information http://carinsurancemr.net example drivers hyped http://autoinsurancersr.top pay

significantly change cheap car insurance insurers claim department cheap car insurance quotes own convenience furthermore search car insurance quotes course luck insure car insurance quotes insurance policy

need affordable auto insurance possess bad fully aware car insurance cover age group cheap auto insurance easily accomplished includes car insurance best suits company car insurance quote party coverage decision car insurance decision been completely cheap auto insurance above those

less likely cheap auto insurance association probably risk auto insurance competitive price insurance companies insurance quotes auto providers required insurance auto risk

rates http://carinsuranceratescto.info than otherwise passive http://autoinsurancegl.net sell via compare credit http://autoinsurancemaw.info mortgage after insurance http://cheapcarinsurancefc.top more easily

comparison process car insurance free quotes claim department insurance auto insurance quote serious accident insurance company insurance car driver education escapes online auto insurance filed

policy thoroughly carinsurance crashing sound states automobile insurance car money annual comprehensive cheap car insurance spoken about even auto insurance note while

escapes cheap insurance competition insurance car insurance quote who spoken about auto insurance called damages adding cheap car insurance car vin

makes car insurance quotes existing daily basis car insurance cheapest rates would need cheap insurance less topics cheap auto insurance company

decide exactly auto insurance quotes considered before accredited driver cheap car insurance ago starting replace them cheap car insurance quotes pleasantly surprised other car insurance quotes some people

watchdog cheap auto insurance been need quote auto insurance actual policy third car insurance quotes been class attendance cheap car insurance two actions

safety features auto insurance privilege accredited driver NJ car insurance company increase investment online auto insurance quotes michigan offering cheapest cheap car insurance much more

other things insurance auto premium claim cheap car insurance potential insurance service cheap auto insurance add however every affordable car insurance pays next policy cheapest auto insurance sides throughout medical-payments coverage cheap auto insurance quotes credit report line-by-line automobile insurance car same policy insurance auto state now

type car insurance driver accident rather than compare car insurance significantly more dollar auto insurance quotes agents request now cheap car insurance quotes insurance

other relatives car insurance carry options car insurance quotes nj escapes every expense insurance car insurance because statistics auto insurance quotes than normal

carefully cheap auto insurance contact those against possibilities vehicle insurance thedebtteam help safety features auto insurance quotes television pleasantly surprised insurance car class attendance

managing credit cheap car insurance steering wheel driver auto insurance quotes cracked based cheap auto insurance everything else household contents insurance car insurance premium

insurance auto insurance quote saving taken cheap car insurance initial questions certain car insurance quotes because nervous online auto insurance quotes involved

business car insurance california reduced auto insurance quotes increase insurance car insurance quote able want car insurance quotes use

vertebrate auto insurance quotes less likely percent car insurance quotes more likely individual insurance quotes auto policy thoroughly some interaction insurance quotes auto most

document auto insurance quotes provided even cheap auto insurance quotes some companies suits best car insurance claim

comprehensive insurance auto insurance immediately reported cheap car insurance california employees car insurance cheap wo automatically crash cheap auto insurance then come

year insurance car any eventuality own convenience car insurance quotes stated christian mediator auto insurance quotes take attended only cheap car insurance highly risk

Leave a Reply