The language that will light up your Web

Java turns pages into all-singing, all-dancing events. Charles Arthur on the program that gives the Net a mind

If you have been surfing around new Web sites recently, you will probably have noticed a new word: Java. About 100,000 pages contain it right now. And they may be the key to making the Web a truly interesting, useful place. Why? If you use an older browser, you may have seen this note: "If you were using a Java-enabled browser, you would see an animated ...", followed by a text description of what you're missing: dancing coffee cups, stock market prices, flags waving in an electronic breeze (at the White House site), spinning globes. You name it, someone's beavering away at animating it, or turning it into a sound file.

If you are using Netscape 2.0, you won't have to read the words - you can see the pictures or hear the sounds for yourself, always assuming you have the patience for them to be downloaded over your data link. Even quite small animations can require 50 kilobytes of data, which - given the sluggishness of many links - can mean a minute's thumb-twiddling.

But to have reached 100,000 sites is not bad for a product that was released only last summer. Its widespread success resembles that of Netscape, in that its creator, Sun Microsystems, has been distributing it for free over the Internet, letting word of mouth (or e-mail) do much of the job of publicity.

Unlike Netscape's browser, which is a program, Java is a programming language, developed in 1990 by James Gosling, a programmer at Sun Microsystems. Originally called "Oak", it was intended to be used in domestic products such as toasters, videos and car alarms. In a world where toasters, like microwave ovens, have inbuilt software (and that's not far off), you could send a Java program down the telephone line to upgrade your toaster. Gosling never lost sight of the idea that Java should be bug-proof and easy to develop but hard to tamper with. So the toaster would not catch fire because of an error in transmission or a bug.

But before that became reality, the World Wide Web happened. The trouble with the Web to date has been that while you could have titles that blinked (which were annoying to the eyes) and you could download motion or sound files to play in your own time, the actual pages themselves were dull. As George Gilder, a writer and futurist, puts it: "Content today is dead, static." But with Java, he says, "content wins".

The reason is that Web pages come to life when your browser connects to a Java-enabled site. Part of the page's contents, besides the usual HTML text, will be a small program, called an "applet", written in Java. This is sent to your computer, where it runs: dancing, singing coffee cups and so on.

You don't even have to specify what operating system (Mac, DOS, Sun) you are using: the browser picks up the code and transfers it over to your Java-enabled browser, which reads and interprets it and follows its instructions. If your browser can't handle Java, nothing happens: it simply ignores the Java instructions.

Is the applet not like a virus? How do you know it does not have an instruction such as "Wipe clean the hard disk" in it?

Mr Gosling and his associates at Sun thought of that. The applet runs inside a "virtual machine" on your computer: in essence, it ropes off an area of electronic memory (RAM) and allows the applet to create and change data only there. The applet is not allowed to access the machine's peripherals but instead passes its data back to your browser, which then passes them to the screen or disc. (Though someone did discover a way to get the applet to bypass the browser earlier this year - a flaw that was quickly fixed by Sun.)

However, the applet's resemblance to a virus means that occasionally "firewalls" - machines installed to prevent viruses and hackers getting into a private network from the Internet - won't let them past. This problem is gradually being tackled.

If you are in an excitable mood, like Danny Hillis, adjunct professor of the Massachusetts Institute of Technology, you will agree that, "Java allows the network to have a `mind'. This is revolutionary. Communication takes place between computers that is meaningful to them."

Eric Schmidt, Sun's chief technology officer, believes that Java has a key similarity to an earlier, and fantastically successful, bit of software. "Java is going to be the DOS of the 1990s," he says. "It may not be perfect but neither was DOS at first. Its chief benefit is its ubiquity. It has shortcomings, but it's everywhere."

And, who knows, in time you might be able to download cool Java programs from the Net to upgrade your toaster or microwave.

For more information about Java, including a (rather technical) introduction, visit http://www.javasoft.com/. To get a browser capable of running Java programs, try Netscape 2.0, available at http://home.netscape.com/.

A huge list of Java applets, with reviews, can be found via http://www.jars.com/

Voices
Mosul dam was retaken with the help of the US
voicesRobert Fisk: Barack Obama is following the jihadists’ script
Arts and Entertainment
Loaded weapon: drugs have surprise side effects for Scarlett Johansson in Luc Besson’s ‘Lucy’
filmReview: Lucy, Luc Besson's complex thriller
News
A cleaner prepares the red carpet for the opening night during the 59th International Cannes Film Festival May 17, 2006 in Cannes, France.
newsPowerful vacuum cleaners to be banned under EU regulations
News
people
PROMOTED VIDEO
Have you tried new the Independent Digital Edition apps?
Life and Style
ebooksA superb mix of recipes serving up the freshest of local produce in a delicious range of styles
Life and Style
ebooksFrom the lifespan of a slug to the distance to the Sun: answers to 500 questions from readers
News
A polar bear’s diet is rich in seal blubber and half of its own body weight is composed of fat
i100
News
London is the most expensive city in Europe for cultural activities such as ballet
arts
Travel
Flocking round: Beyoncé, Madame Tussauds' latest waxwork, looking fierce in the park
travelIn a digital age when we have more access than ever to the stars, why are waxworks still pulling in crowds?
Arts and Entertainment
Jeremy Clarkson has rejected criticisms of his language, according to BBC director of television Danny Cohen
tv
Extras
indybest
Arts and Entertainment
Judi Dench appeared at the Hay Festival to perform excerpts from Shakespearean plays
tvJudi Dench and Hugh Bonneville join Benedict Cumberbatch in BBC Shakespeare adaptations
Arts and Entertainment
tv
Sport
Is this how Mario Balotelli will cruise into Liverpool?
football
Independent
Travel Shop
the manor
Up to 70% off luxury travel
on city breaks Find out more
santorini
Up to 70% off luxury travel
on chic beach resorts Find out more
sardina foodie
Up to 70% off luxury travel
on country retreats Find out more
Latest stories from i100
Have you tried new the Independent Digital Edition apps?
Independent Dating
and  

By clicking 'Search' you
are agreeing to our
Terms of Use.

ES Rentals

    iJobs Job Widget
    iJobs General

    Service Desk Analyst (Graduate, Helpdesk, Desktop, Surrey)

    Negotiable: Harrington Starr: Service Desk Analyst (Graduate, Helpdesk, Deskto...

    Service Desk Analyst (Graduate, Helpdesk, Desktop, Surrey)

    Negotiable: Harrington Starr: Service Desk Analyst (Graduate, Helpdesk, Deskto...

    Junior Quant Analyst - C++, Boost, Data Mining

    £25000 - £35000 per annum: Harrington Starr: Junior Quant Analyst - C++, Boost...

    Service Desk Analyst- (Desktop Support, Help desk)

    £25000 - £35000 per annum: Harrington Starr: Service Desk Analyst- (Desktop Su...

    Day In a Page

    Air strikes? Talk of God? Obama is following the jihadists’ script

    Air strikes? Talk of God? Obama is following the jihadists’ script

    The President came the nearest he has come yet to rivalling George W Bush’s gormless reaction to 9/11 , says Robert Fisk
    Ebola outbreak: Billy Graham’s son declares righteous war on the virus

    Billy Graham’s son declares righteous war on Ebola

    A Christian charity’s efforts to save missionaries trapped in Africa by the crisis have been justifiably praised. But doubts remain about its evangelical motives
    Jeremy Clarkson 'does not see a problem' with his racist language on Top Gear, says BBC

    Not even Jeremy Clarkson is bigger than the BBC, says TV boss

    Corporation’s head of television confirms ‘Top Gear’ host was warned about racist language
    Nick Clegg the movie: Channel 4 to air Coalition drama showing Lib Dem leader's rise

    Nick Clegg the movie

    Channel 4 to air Coalition drama showing Lib Dem leader's rise
    Philip Larkin: Misogynist, racist, miserable? Or caring, playful man who lived for others?

    Philip Larkin: What will survive of him?

    Larkin's reputation has taken a knocking. But a new book by James Booth argues that the poet was affectionate, witty, entertaining and kind, as hitherto unseen letters, sketches and 'selfies' reveal
    Madame Tussauds has shown off its Beyoncé waxwork in Regent's Park - but why is the tourist attraction still pulling in the crowds?

    Waxing lyrical

    Madame Tussauds has shown off its Beyoncé waxwork in Regent's Park - but why is the tourist attraction still pulling in the crowds?
    Texas forensic astronomer finally pinpoints the exact birth of impressionism

    Revealed (to the minute)

    The precise time when impressionism was born
    From slow-roasted to sugar-cured: how to make the most of the British tomato season

    Make the most of British tomatoes

    The British crop is at its tastiest and most abundant. Sudi Pigott shares her favourite recipes
    10 best men's skincare products

    Face it: 10 best men's skincare products

    Oscar Quine cleanses, tones and moisturises to find skin-savers blokes will be proud to display on the bathroom shelf
    Malky Mackay allegations: Malky Mackay, Iain Moody and another grim day for English football

    Mackay, Moody and another grim day for English football

    The latest shocking claims do nothing to dispel the image that some in the game on these shores exist in a time warp, laments Sam Wallace
    La Liga analysis: Will Barcelona's hopes go out of the window?

    Will Barcelona's hopes go out of the window?

    Pete Jenson starts his preview of the Spanish season, which begins on Saturday, by explaining how Fifa’s transfer ban will affect the Catalans
    Middle East crisis: We know all too much about the cruelty of Isis – but all too little about who they are

    We know all too much about the cruelty of Isis – but all too little about who they are

    Now Obama has seen the next US reporter to be threatened with beheading, will he blink, asks Robert Fisk
    Neanderthals lived alongside humans for centuries, latest study shows

    Final resting place of our Neanderthal neighbours revealed

    Bones dated to 40,000 years ago show species may have died out in Belgium species co-existed
    Scottish independence: The new Scots who hold fate of the UK in their hands

    The new Scots who hold fate of the UK in their hands

    Scotland’s immigrants are as passionate about the future of their adopted nation as anyone else
    Britain's ugliest buildings: Which monstrosities should be nominated for the Dead Prize?

    Blight club: Britain's ugliest buildings

    Following the architect Cameron Sinclair's introduction of the Dead Prize, an award for ugly buildings, John Rentoul reflects on some of the biggest blots on the UK landscape