Beta
×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Java2 SDK v. 1.4 Released

michael posted more than 12 years ago | from the cuppa-joe dept.

Java 362

pangloss writes: "Yay: XML, built-in Perl-ish regex, jdbc 3.0, asserts, IPv6, lots of other goodies. Release notes and incompatibilities. And I think this means I can use my wheel-mouse in NetBeans without that extra module ;) Download it here." WilsonSD adds: "There are many cool new features including a New I/O package, an Assert Facility and enhanced performance." Some other random Java notes: O'Reilly has an essay about why you won't see any open source J2EE implementations, and Kodak has filed a patent-infringement claim against Sun regarding Java.

Sorry! There are no comments related to the filter you selected.

Fuck you (-1)

Klerck (213193) | more than 12 years ago | (#3005712)

Kill yourself and fuck the body.

Oh, and fp

In case anyone is wondering (0)

Anonymous Coward | more than 12 years ago | (#3005797)

The 3,000,000th post was this one [slashdot.org] .

Permission is hereby granted to repost this announcement, provided that you change something (i.e. not verbatim).

Thank you for your day.

Re:In case anyone is wondering (-1)

Ralph Malph Alpha (551824) | more than 12 years ago | (#3005826)


The 3,000,000th post was this one [slashdot.org] .

Permission is hereby granted to repost this announcement, provided that you change something (i.e. not verbatim).

Thank you for your day.

Re:In case anyone is wondering (-1)

Ralph Malph Alpha (551824) | more than 12 years ago | (#3005830)

Even better!

Official 9-11 Story Impossible (-1)

Commienst (102745) | more than 12 years ago | (#3005718)

Russian Air Force Chief Says
Official 9-11 Story Impossible

[Posted 13 September 2001]

As one considers the terrible events of Sept. 11 and observes U.S. media reaction, so pervasive and consistently military that it appears choreographed, doubts increase. The following is from pravda.ru, a Russian language Website (politically centrist, nationalist). In some places the English translation is confusing, so we added alternate phrasing in brackets.
- Jared Israel

[Start report from Russia] "Generally it is impossible to carry out an act of terror on the scenario which was used in the USA yesterday." This was said by the commander-in-chief of the Russian Air Force, Anatoli Kornukov. "We had such facts [i.e., events or incidents] too", - said the general straightforwardly. Kornukov did not specify what happened in Russia and when and to what extent it resembled the events in the US. He did not advise what was the end of air terrorists' attempts either.

But the fact the general said that means a lot. As it turns out the way the terrorists acted in America is not unique. The notification and control system for the air transport in Russia does not allow uncontrolled flights and leads to immediate reaction of the anti-missile defense, Kornukov said. "As soon as something like that happens here, I am reported about that right away and in a minute we are all up," - said the general. [End report from Russia.]

Pasted from: The Emperor's New Clothes [tenc.net]

Yah, will this be stable on Linux? (1, Troll)

Don't Exist (548673) | more than 12 years ago | (#3005723)

SDK 1.3.1 stability was terrible on Redhat 7.1 and 7.2 Hopefully 1.4 will be much better. Otherwise I will have to continue using IBM's 1.3.0 SDK.

Re:Yah, will this be stable on Linux? (4, Funny)

RMSIsAnIdiot (556315) | more than 12 years ago | (#3005736)

Of course it will be stable. Everything is stable under L---

kernel: VFS: Disk change detected on device fd(2,0)
kernel: end_request: I/O error, dev 02:00 (floppy), sector 0
kernel: VFS: Disk change detected on device fd(2,0)
kernel: end_request: I/O error, dev 02:00 (floppy), sector 0
kernel: Incorrect segment count at 0xc01781d6nr_segments is 15
kernel: counted segments is 17
kernel: Flags 0 0
kernel: Segment 0xc37ace40, blocks 4, addr 0x4bd1fff
kernel: Segment 0xc37acea0, blocks 4, addr 0x4bd27ff
kernel: Segment 0xc37ac780, blocks 4, addr 0x38abfff
kernel: Segment 0xc37acde0, blocks 4, addr 0x38ac7ff
kernel: Segment 0xc3809120, blocks 4, addr 0x1e77fff
kernel: Segment 0xc0e0fda0, blocks 4, addr 0x199c7ff
kernel: Segment 0xc3871ec0, blocks 4, addr 0x6fe2fff
kernel: Segment 0xc3871f20, blocks 4, addr 0x6fe37ff
kernel: Segment 0xc3871e00, blocks 4, addr 0x498afff
kernel: Segment 0xc0e0fec0, blocks 4, addr 0x18aefff
kernel: Segment 0xc3871c80, blocks 4, addr 0x41b6fff
kernel: Segment 0xc3871ce0, blocks 4, addr 0x41b77ff
kernel: Segment 0xc3871b60, blocks 4, addr 0x1d06fff
kernel: Segment 0xc0e0fe60, blocks 4, addr 0x18af7ff
kernel: Segment 0xc38719e0, blocks 4, addr 0x4c3ffff
kernel: Segment 0xc3871aa0, blocks 4, addr 0x4c407ff
kernel: Segment 0xc0e0ff20, blocks 4, addr 0x18ae7ff
kernel: Segment 0xc3871800, blocks 4, addr 0x4cb0fff
kernel: Segment 0xc3871860, blocks 4, addr 0x4cb17ff
kernel: Segment 0xc3871140, blocks 4, addr 0x4b8ffff
kernel: Segment 0xc38717a0, blocks 4, addr 0x4b907ff
kernel: Segment 0xc0e150c0, blocks 4, addr 0x196d7ff
kernel: Kernel panic: Ththththaats all folks. Too dangerous to continue.
kernel:
kernel: rq->cmd=1, rq->sector=73208, rq->nr_sectors=8
kernel: kernel BUG at pktcdvd.c:1046!
kernel: invalid operand: 0000
kernel: CPU: 0
kernel: EIP: 0010:[serial:__insmod_serial_S.bss_L3392+238989/37 155027]
kernel: EFLAGS: 00010086
kernel: eax: 0000001e ebx: c1273840 ecx: c4676000 edx: c020f384
kernel: esi: c208f09c edi: c208f074 ebp: c7f9d760 esp: c6fc3f88
kernel: ds: 0018 es: 0018 ss: 0018
kernel: Process pktcdvd0 (pid: 1303, stackpage=c6fc3000)
kernel: Stack: c8861c10 c8861d2f 00000416 c6fc2000 c208f09c c208f074 c208f000 c7f9d86c
kernel: c8860076 c208f074 00000f00 c762df1c c208f000 00000b00 c6fc3fe0 c208f008
kernel: c208f10c c7f9d778 00000000 c6fc2000 00000000 00000000 00000000 c6fc2000
kernel: Call Trace: [serial:__insmod_serial_S.bss_L3392+245712/3714830 4] [serial:__insmod_serial_S.bss_L3392+245999/3714801 7] [serial:__insmod_serial_S.bss_L3392+238646/3715537 0] [kernel_thread+40/56]
kernel:
kernel: Code: 0f 0b 83 c4 0c b8 06 00 00 00 0f ab 45 48 19 c0 85 c0 75 24

Re:Yah, will this be stable on Linux? (0, Redundant)

utdpenguin (413984) | more than 12 years ago | (#3005753)

Ha! Wish I still had moderator points. That is funny. Even to this linux of death user.

Re:Yah, will this be stable on Linux? (-1)

Ralph Malph Alpha (551824) | more than 12 years ago | (#3005761)


i LOVE your sig, it really hitz home with my troubled heart. Pwaise him.

(no joke, i weally want yuo to pwaise him)

Re:Yah, will this be stable on Linux? (-1)

Ralph Malph Alpha (551824) | more than 12 years ago | (#3005776)


wus, you fixed it. yuo stil mispelt automatically though. i may be a punk, but you will forgive me....for that is your way. i forgive yo too.

now shake yo titz. [slashdot.org]

Re:Yah, will this be stable on Linux? (0, Offtopic)

utdpenguin (413984) | more than 12 years ago | (#3005789)

Curse my typping. I am a linux OR (not of) death user

Re:Yah, will this be stable on Linux? (2)

satanami69 (209636) | more than 12 years ago | (#3005891)

Okay, okay, although it may have crashed, it's still secure [slashdot.org] . Probably more so now!

Re:Yah, will this be stable on Linux? (1)

immanis (557955) | more than 12 years ago | (#3005802)

Running Mandrake 8.1, and it's not shown instability yet. Smooth as silk. I've not really pushed it too hard yet tho.

Been running it a couple weeks at least. Does that make this old news?

Re:Yah, will this be stable on Linux? (2)

Wraithlyn (133796) | more than 12 years ago | (#3005895)

No shit... 1.3.1's memory management and garbage collector are whacked.

Feces and blood... (-1, Offtopic)

Anonymous Coward | more than 12 years ago | (#3005724)

Feces and blood, face in the mud, suck on my pud, feces and blood.

Poetry straight from the soul^H^H^H^Hanus.

Re:Feces and blood... (-1, Offtopic)

Ralph Malph Alpha (551824) | more than 12 years ago | (#3005733)

That is more than mere poetry, it is faggotry.

p00 beard (-1, Flamebait)

Anonymous Coward | more than 12 years ago | (#3005730)

slashdot is officially out of crap to talk about.

let's discuss me, the mighty p00 beard!

I am a 32 year old bear. For everyone else BUT CmdrTaco that means im a hairy fat gay guy who's just as cuddly as a bear! I like reach-arounds, hot-carls and water sports. My favorite color is brown and I love banjo music. Thanks and I will be here all week.

Re:p00 beard (-1, Flamebait)

Ralph Malph Alpha (551824) | more than 12 years ago | (#3005744)


i want to see a naked lickfight between all the faggayz who call themselves "bears" and all the faggayz that call themselves "daddies". oh not really, that would be gay. put them all in a vat of acid, yeah thatz not gay, that would be a very normal thing to want to see.

bears v. daddies, the ultimate homogaysexual event, broadcast live thanks to quicktime steaming servant

Re:p00 beard (-1, Troll)

Anonymous Coward | more than 12 years ago | (#3005763)

I once slapped a man dead with my purple mushroom cap. I don't think a daddy would be any match for the mighty

p00 beard *thunk*

Re:p00 beard (-1, Troll)

Anonymous Coward | more than 12 years ago | (#3005765)

You have a p00 beard?

Might I suggest upgrading that to a p00-blood beard? We here at F&B Inc.(Feces and Blood) have had over 55 years of experience in dealing with p00 beards, and you might be in the market for a new one.

Considering your love for hot Carls, I can only imagine the things we can do for you at our office... you can find us in San Fransisco, at the Castro. You might not see us at first, but if you stay the night, I promise you that Feces and Blood will be in your FUTURE!

Re:p00 beard (-1, Troll)

Anonymous Coward | more than 12 years ago | (#3005772)

Dear Sir,

I have grown my p00 beard long and stinky. It is a part of me like my meat sausage is to my scrotum bag. I cannot give it up, for, I am powerless without it.

p00 beard

Re:p00 beard (-1, Troll)

Anonymous Coward | more than 12 years ago | (#3005780)

If your p00 beard gives you as much strength as you claim, then maybe you would be interested in selling some of your p00 technology to my firm, F&B Inc. (Feces and Blood), so that we could mass-produce massive p00 beards the likes of which the world has never seen and will be terrorized by henceforth.

Or you could just come meet me behind Gunthrie's Alleycat and bust out the dirty Sanchez...

Re:p00 beard (-1, Troll)

Anonymous Coward | more than 12 years ago | (#3005790)

Dear Sirs,

I am sorry, but my p00 beard is only used for good. For to use a p00 beard for evil is to call a thousand curses down on your sphincter.

BUT I know just where you are talking about and guess what I had for dinner? Mexican!

p00 beard *thhhhhhhhhhhp!*

It's a big step up, but there is still distance (4, Interesting)

btempleton (149110) | more than 12 years ago | (#3005731)

I've been working on a server that takes a lot of connections in Java, and you can finally do it with the support of "select" in Java 1.4. But no support for SSL. I undertand why it happens, but this "we'll get around to doing the security later" is why we don't have a lot of security.

Java will always present a dilemma. With the push for portability, you often have to wait for the platform itself to support things like this (select) or kludge it in very non portable ways. But that portability leaves the system behind which hurts it in competition with other systems more tolerant of innovation and the fracturing it brings.

A good philosophy would be to rule that every time a system library or feature needs to do something that an ordinary user can't do, they don't just build it in, they make a way that an ordinary user could write it. That paves the way for more innovation.

Re:It's a big step up, but there is still distance (2, Insightful)

Anonymous Coward | more than 12 years ago | (#3005750)

SSL at the Java level IMHO is stupid. Set up secure tunnelling whenever the data leaves your trusted zone, and have it be done in hardware or optimized (C) software.

Re:It's a big step up, but there is still distance (2)

btempleton (149110) | more than 12 years ago | (#3005807)

You assume you control the zone of the connecting client. If you want people with a browser to connect to you securely from out there anywhere, SSL is your choice.

Re:It's distance is still, but up there step a big (-1, Troll)

Ralph Malph Alpha (551824) | more than 12 years ago | (#3005754)

yuo name is not brad, it is bard. tell me some faggot stories aka The Bard's Tale. That would surely pave the way for more innovation.

Re:It's distance is still, but up there step a big (-1, Troll)

Anonymous Coward | more than 12 years ago | (#3005788)

You want some faggot stories to be told?

Why don't you come meet me at the Alleycat? I'm waiting with my gaping goatse.cx-sized anus and my three and a half inch phallus... then we can make some faggot stories from scratch and surely pave the way for more innovation.

To lazy to write it yourself? (3, Informative)

autopr0n (534291) | more than 12 years ago | (#3005828)

I guess it would be nice to have SSL built into java, but you could write it yourself, it's not like it's a fundementl language flaw. The specs are out there, and the java Crypto API would probably help you out quite a bit.

Re:It's a big step up, but there is still distance (4, Informative)

Wraithlyn (133796) | more than 12 years ago | (#3005889)

"I've been working on a server that takes a lot of connections in Java, and you can finally do it with the support of "select" in Java 1.4."

I've been using NBIO (Non-Blocking IO) [berkeley.edu] for quite some time, getting very good results. Been waiting for Java 1.4 to go final so I can start working with java.nio

Java Secure Socket Extension (5, Informative)

srichman (231122) | more than 12 years ago | (#3005893)

The Java Secure Socket Extension has provided TLS/SSL support to Java for a long time, and is now part of 1.4 [sun.com] .

???

hope swing is faster now / I prefer Ruby over Java (2, Redundant)

raistlinthegreat (556858) | more than 12 years ago | (#3005735)

I hope that Swing is faster now under linux. I played with netbeans and jedit and although there are really good they are not very fast on linux. on a slower windows PC jedit stated much faster than on my linux box.
a few days ago I played a little with Ruby (the coolest language available IMHO) and Gtk+. although the bindings are not yet finished they work very well under Linux and this is much faster than Java/Swing.
Maybe Ruby is the future. At least I hope so. If Ruby gets more stable modules Ruby can be the Number One OOP language. It is cleaner than Perl or Java, the Programms are shorter, the Language is more intuitive and.... and.... and. This is only my humble opinion. See for yourself if you like ruby. check out http://www.ruby-lang.org

Re:hope swing is faster now / I prefer Ruby over J (0)

Anonymous Coward | more than 12 years ago | (#3005922)

Swing's faster... if you read any of the articles you would have known that already

How about a massively parallel (-1, Troll)

Anonymous Coward | more than 12 years ago | (#3005738)

beowulf cluster of this 'so-named' SDK? L33T

Re:How about a massively parallel (1)

utdpenguin (413984) | more than 12 years ago | (#3005742)

Its about time for the lameness filter to kill any reference to a "beaowolf clsuter of "

talk about a joke getting old!!

Re:How about a massively parallel (0)

Anonymous Coward | more than 12 years ago | (#3005747)

almost makes you as queasy as the ad naseum linux discussions here on slashbot.

Re:How about a massively parallel (0, Funny)

Anonymous Coward | more than 12 years ago | (#3005748)

I agree. If I had a Beowulf cluster for every time someone said...oh never mind.

SLASHDOT BIAS (0, Troll)

Anonymous Coward | more than 12 years ago | (#3005751)

Visual Studio .Net was released today.

Where is a story on that?

So much for the facade of neutrality.

What do people think of Visual Studio .Net .. no anti-M$FT commie flames from fud prophets please.. I want opinions of people that have actually used it and have genuine comments.

Visual Studio thoughts... (0)

Anonymous Coward | more than 12 years ago | (#3005759)

I think its nice.

It seems a little sluggish.

But boy so did that bear after he ate my Uncle Ron.

J. Handey

Re:SLASHDOT BIAS (1, Offtopic)

Wraithlyn (133796) | more than 12 years ago | (#3005912)

"facade of neutrality"?

Do you even read Slashdot? :)

I don't think anyone claims this is an unbiased news site. It's a message board for Linux geeks. Love it or leave it. Or present your own viewpoint. :)

Summary of new features (4, Informative)

LarsWestergren (9033) | more than 12 years ago | (#3005756)

A summary of all the new features is available here:
http://java.sun.com/j2se/1.4/docs/relnotes/feature s.html [sun.com]

Articles about the news APIs and how to use them available here:
http://java.sun.com/j2se/1.4/articles.html [sun.com]

Re:Summary of new features (-1, Offtopic)

Tremul (190113) | more than 12 years ago | (#3005877)

I'm glad you're here. If you weren't here to click on the post and cut and paste links, what would people do? New Mod. Lame

Coincidence? (5, Funny)

Yakman (22964) | more than 12 years ago | (#3005764)

I find it funny that the post mentions a lawsuit from Kodak and the O'Reilly essay about Java says:
[...] At the same time,
Sun loves to have Kodak moments with some parts of the open source community -- most notably, Apache -- who increasingly feel used and abused [...]
(Emphasis mine) Heh.

Java2 ? (-1, Redundant)

Anonymous Coward | more than 12 years ago | (#3005775)

Hmm, if SDK v1.2 became "Java2", shouldn't v1.4 be called "Java4"? Oh I see, "Java2" was a "marketing trick" used in the tough year 1997 and the name has stuck. How lame.

It's Java 2... (-1)

ringbarer (545020) | more than 12 years ago | (#3005785)

Electric Boogaloo. What BETTER way to market an atrocious, outdated piece of badly hacked together shit than by comparing it to a hideous 'teen trend' movie [imdb.com] .

Re:Java2 ? (4, Informative)

LarsWestergren (9033) | more than 12 years ago | (#3005811)

Hmm, if SDK v1.2 became "Java2", shouldn't v1.4 be called "Java4"? Oh I see, "Java2" was a "marketing trick" used in the tough year 1997 and the name has stuck.

Perhaps,but remember that the change from 1.1 to 1.2 contained some major rehaul of APIs.

In this 1.4 release Sun kept a carefully budgeted set of new features and emphasized quality and performance, like they said they would. You can expect more changes in 1.5 (codename Tiger) which is planned to come some time around the middle of 2003. If that will be Java3, who knows, they have just started working on it.

Sweet! (0)

Anonymous Coward | more than 12 years ago | (#3005782)

Selectors! Multiple sockets per thread! Yes, yes, ye... crap, I guess I have to toss out and rewrite all that code.

"performance" (0, Flamebait)

marcovje (205102) | more than 12 years ago | (#3005783)

From the enhanced performance link:

* Access much larger memory spaces

Hihi, probably needed to keep SWING performing :-)

Hmm, Sun is up to no good again (0)

Anonymous Coward | more than 12 years ago | (#3005787)

After reading this article I come away from it with 2 very important thoughts. One: The license agreement. I cannot believe that the license agreement contains the core functionality statement wrapped up in one tidy legal clause. "Distributed under a licensing agreement with Spyglass, Inc.
Contains security software licensed from RSA Data Security Inc.
Portions of this software are based in part on the work of the Independent JPEG Group.
Multimedia software components, including Indeo(R); video, Indeo(R) audio, and Web Design Effects are provided by Intel Corp.
Unix version contains software licensed from Mainsoft Corporation. Copyright (c) 1998-1999 Mainsoft Corporation. All rights reserved. Mainsoft is a trademark of Mainsoft Corporation." I mean somebody at the SPCCA will be pissing themselves that SUN would even release the SDK nevermind fire Jim Henderickson over it. Any thoughts?

But have they actually implemented MIDI yet ?? (0)

Anonymous Coward | more than 12 years ago | (#3005791)

As, up until RC1, the API is in place, but won't actually talk to any MIDI devices (It just works with their own softsynth).

Why bother having an API if you can't actually do anything with it ?

What about Ogg VOrbis? (0)

Anonymous Coward | more than 12 years ago | (#3005794)

I know it can rip midi into mp3. Maybe this would be a go?

Asserts (3, Informative)

Malc (1751) | more than 12 years ago | (#3005792)

This makes me so happy. Coming from C++, I really really missed assertions. They give me much more confidence in my code. Some people seem to have trouble using them, but after a while they can become second nature. In fact, one can come to rely very heavily on them.

Re:Asserts (2, Funny)

utdpenguin (413984) | more than 12 years ago | (#3005798)

Assertions can be dangerous. Many people make confident assertions about subjects concerning which they have little knowldge. For example, me talking about coding. :)

Just what are you asserting? (0)

Anonymous Coward | more than 12 years ago | (#3005803)

I am trying to ascertain which assertions you assert to be using to assist your assets.

J2EE openness (2, Interesting)

prockcore (543967) | more than 12 years ago | (#3005796)

Well that kind of gives an answer to every javahead that says "Why bother with Mono, when you have J2EE? What a waste of time."

Mono is at least opensource... can you say the same for J2EE? Will you ever be able to say the same?

Re:J2EE openness (0)

Anonymous Coward | more than 12 years ago | (#3005810)

While Mono might be open source, it is writing against a very closed-source target.

What do you do if you bank on Mono, Mono takes off much faster than .Net, and Microsoft starts playing AOL-IM games with .Net (changing silly things that .Net apps pick up easily but Mono doesn't, purposely breaking MS-based services that get requests from Mono, etc.)? It's not like MS hasn't done this in the past.

Re:J2EE openness (1)

PhilHibbs (4537) | more than 12 years ago | (#3005817)

I'm a bit ignorant of Java issues, can someone explain why JBoss needs sun to certify it? If it's some kind of crypto authorisaiton signature thing, then surely this should not affect open source software, because they can surely write the host app to recognise non-Sun keys. Or does JBoss run on the client, and therefore have to work with IE for most purposes?

Re:J2EE openness (5, Insightful)

customiser (150740) | more than 12 years ago | (#3005879)

Sun certification does not have any effect on JBoss's functionality. As I see it, it is just a marketing matter, being able to say "This is a Sun certified J2EE App Server", so that whoever makes the decision on using it (and mainly commercial organisations) can be confident that it really does what it is supposed to do.

btw, as it is a server, it does not run on the client.

there are plenty of OSS java implementations (2)

autopr0n (534291) | more than 12 years ago | (#3005833)

see subject

Re:J2EE openness (0)

Anonymous Coward | more than 12 years ago | (#3005915)

To most people, openness doesn't matter.
See what's happening with .NET.
A few classes were pushed to the standards, and yet a lot of people think that it is all open.
Give me a break.
.NET will probably be much harder to code by hand than java, or VS.NET would not be so necessary.
.NET uses much more metatags, i wonder if that means more code to enter to get things working.
Openness is an utopia.

FAGGOTS! (-1, Troll)

Anonymous Coward | more than 12 years ago | (#3005801)

I WOOD JUST LIKE 2 SEY THAT WHOVER DONT READ THIS PAGE AT -1 IS A COCKMONKEY

AND ALL YEW WHO READ THIS PAGE AT -1 ARE COCKMONKSYE TOO U FUCKING LOSERS TALKING ABOUT FECES BLOOD FAGGOTS AND P00 BEARDS

CHOKKE ON A DICK AND DIIE!

My thoughts on Gnome (-1, Troll)

Anonymous Coward | more than 12 years ago | (#3005812)

No, I disagree with you Ximian. KDE is far superior to Gnome.

My thoughts on Taco (-1, Troll)

Anonymous Coward | more than 12 years ago | (#3005821)

gay, very gay.

Re:My thoughts on Taco (-1, Troll)

Anonymous Coward | more than 12 years ago | (#3005829)

WHAT Y00 SEY? UR GHEY?

FAGGGTOT!

ahahhahhahaha... no cap filtar on meeeee u lame /. fuckin loosers!

Genericity? (3, Insightful)

hephro (166117) | more than 12 years ago | (#3005804)

And still no generic data structures (a.k.a. templates in the C++ world)... all those explicit downcasts from Object hurt and need to be optimized away by the JIT...

-Hein

Re:Genericity? (2, Interesting)

Westley (99238) | more than 12 years ago | (#3005894)

The proposed generics proposal are all compiled into the bytecode anyway, I believe. There's a prototype compiler (which generates bytecode which can be used with the normal JRE) available here [sun.com] .

Jon

Re:Genericity? (1)

Westley (99238) | more than 12 years ago | (#3005900)

Doh - I meant that in the proposed generics mechanism the *casts* are all compiled into the bytecode anyway. In other words, the JIT compiler still needs to worry about them - it's just that the programmer doesn't.

Jon

64 bit - wow! (5, Funny)

Florian Weimer (88405) | more than 12 years ago | (#3005806)

The 4 GB address space limit has become a severe limit on Java bloat. It's good to see that Sun finally addresses this problem.

Re:64 bit - wow! (0)

Anonymous Coward | more than 12 years ago | (#3005818)

Yeah I agree. Most i used to be able to take was 32 inches.

-p00Beard

J2SDK on Win98 and Linux (3, Interesting)

Larkfellow (265776) | more than 12 years ago | (#3005809)

I have a dual boot machine at home, one partition Windows 98, the other Slackware 8.0. Today I downloaded and installed the new Java SDK 1.4.0-rc on both systems. And while I think that some iscolated windows difficulties causes my oppinion to be rather biased, I found the install much easier going on Linux.

However I will note that, while the Java Web Start was installed on Windows, I didn't find any version of it for linux. And the downside to the Web Start I found is that it constantly wanted to download and install a new version of Java Runtime Environment 1.3.x everytime I lauched an application. And then after the download, and installed, I'm prompted to reboot the computer. After rebooting and trying to launch again, it again starts to download JRE 1.3.x and through the whole cycle all over again.

As well, with my windows install I found I was constantly having difficulties getting it to use the default classpath (ie, no environment variable set for CLASSPATH). I ended up having to resort to specifying the classpath at the command line. And no matter how much I tried, I could no manage to get Swing to work properly.

However on the other hand, the Linux install was rather straight forward, with a few simple steps: Change download to executable; Run it; move the extracted directory to a shared path (as su); add the java/bin directory to the search path; and finally add the java/man directory to the search paths for man.

The windows installer was straight forward, though the above problems still hampered me.

AUTOEXEC.BAT (3, Informative)

autopr0n (534291) | more than 12 years ago | (#3005835)

Throw the classpath in your AUTOEXEC.BAT file on the C: drive on your win98 machine. Should work.

Re:AUTOEXEC.BAT (1)

Larkfellow (265776) | more than 12 years ago | (#3005846)

That was done. It didn't help any. Infact I constantly deleted the entire classpath out of AUTOEXEC.BAT And then unset the classpath variable and verified it was unset.. rebooted (or ran autoexec.bat) and it ended up being set again. And I made sure that in AUTOEXEC.BAT there were no calls to any other batch files that might have set it. As I said, that was part of the iscolated problems. The only way I could get it to work properly for most things was to unset the classpath, and then set the classpath at the command line on top of it.

Re:J2SDK on Win98 and Linux (1)

revscat (35618) | more than 12 years ago | (#3005875)

Dunno about Win98, but on Win2K you need to right click on My Computer, Properties, then the Advanced tab. Set your CLASSPATH in the Environment Variables in here and all should be hunky dory.

Re:J2SDK on Win98 and Linux (4, Interesting)

Westley (99238) | more than 12 years ago | (#3005913)

No, all is unlikely to be hunky-dory if you set the classpath environment variable. This seems to cause more problems than anything else to newcomers. It's much easier to avoid using a classpath environment variable in the first place - the default is fine for most things, and the extensions mechanism really helps. I've got short essays about both on the Java bit [pobox.com] of my site.

Jon

I've been using this for a while (3, Interesting)

autopr0n (534291) | more than 12 years ago | (#3005820)

Autopr0n.com actualy runs using the first beta of JDK1.4. I needed the new ImageIO libraries for the, um, 'site previewer :P' (and the regexs made some of the parsing I'm doing a lot easier :). I tried 1.4b3 but it was far more unstable, and my regexs broke.

Definetly cool that the stable version is out, I'll have to upgrade at some point, when I have time.

Hopefully they'll implement this at Topcoder.com too, so I don't have to keep using the old docs in the compos :P

Re:I've been using this for a while (0)

Anonymous Coward | more than 12 years ago | (#3005859)

Is it just me or does every one of your posts somehow mention/plug your web site?

Re:I've been using this for a while (0)

NDPTAL85 (260093) | more than 12 years ago | (#3005925)

Hey at least he's better than that OTHER Slashdot pr0n guy. (NineNine). NineNine is just a straight up anti-Linux JERK.

Re:I've been using this for a while (1)

LadyLucky (546115) | more than 12 years ago | (#3005930)

Dude, it's a cool website.

At least Sun is brutally honest. (3, Interesting)

Marsh Jedi (244205) | more than 12 years ago | (#3005823)

Jesus, Sun's PR corps must have flipped their collective shit when they read Karen Tegan's remark [oreillynet.com] . While in general I find that kind of bluntness refreshing, a director of Platform Compatibility spouting off and essentially saying, "Well, that sucks for you, but we make money off of compatibility testing. We give everything else away for free, so cut us a break." is really a testament to the Sun Micro (brutally) plain-talking attitude.

Deeper, though, I think, is the need to rein in Java a bit....It has achieved ubiquitousness, and I think Sun knows it. Watch. If .NET takes off, they will loosen up to benefit from a little more old-fashioned agrarian innovation and buzz.

Re:At least Sun is brutally honest. (-1, Offtopic)

Anonymous Coward | more than 12 years ago | (#3005843)

To be honest I don't think Jesus really wants to be brought in to it.

It's a Release Candidate (0, Insightful)

DamageBoy (28870) | more than 12 years ago | (#3005832)

This release is not a fina stable release.
It's just the RC:
http://java.sun.com/j2se/1.4/download.html [sun.com]
It's been there for the past two weeks.
You call this news?

Re:It's a Release Candidate (-1, Troll)

Anonymous Coward | more than 12 years ago | (#3005837)

News? Down 'ere in Holland, we call it slashdot

-- CmdrTaco, who seconds later jammed a large crack pipe is his mouth and smoked it with an acetalyne torch.

Re:It's a Release Candidate (1)

Hyler (99628) | more than 12 years ago | (#3005852)

No, it's the real release. It doesn't say Release Candidate anymore. It has been RC for a while but now it's for real. I call this news.

My take on JDK 1.4 (4, Interesting)

burtonator (70115) | more than 12 years ago | (#3005838)

OK.. I am a Java fan... (recently this has been changing though.)

I have mixed feelings with JDK 1.4.

The JPDA (debugging) support in 1.4 is vastly improved. You can now redefine [sun.com] classes in a running virtual machine. This is really cool and I have written an Ant 'Redefine task to take advantage of this.

The assert facility is OK.... i don't like the fact that they added an Assert keyword but I don't get to make the decisions.

There is also some controversy.

The JSPA agreement that one has to sign to participate in the JCP [jcp.org] is WAY too restrictive for Open Source developers. The Apache Software Foundation has a good document where they drawn the line in the sand [apache.org] on their participation.

The Log4J people are upset because there is now a 'stanard' Java package for logging. IMO the 'standard' package is inferior to Log4J in many situations.

The regexp package is not all it is cracked up to be either. I would recommend Jakarta ORO or Jakarta Regexp.

As far as that... it runs GREAT on Linux. Probably the most SOLID VM I have ever run.

They did break some stuff with legacy code. If you ever named a class 'URI' your code will now fail to compile because they put this class in the java.net package which everyone imports anyway.

As far as C# vs .Java. I am really impressed with the CLR/CLI stuff. Right now, as it stands, Java is a proprietary language. Unless we see SUN Open Source Java (or push it through a standards committee), we *may* see a JDK 1.5... but no one will use it.

Also.. check out my Reptile project. [openprivacy.org] It is Java based, only requires JDK 1.2 and incorporates some really cool Java/XML stuff. :)

Re:My take on JDK 1.4 (2)

LarsWestergren (9033) | more than 12 years ago | (#3005871)

Thanks for a well written article.

The JSPA agreement that one has to sign to participate in the JCP [jcp.org] is WAY too restrictive for Open Source developers. The Apache Software Foundation has a good document where they drawn the line in the sand [apache.org] on their participation.
[...]
As far as C# vs .Java. I am really impressed with the CLR/CLI stuff. Right now, as it stands, Java is a proprietary language. Unless we see SUN Open Source Java (or push it through a standards committee), we *may* see a JDK 1.5... but no one will use it.


Now that Microsoft is kept busy plagiarising...oops, I mean creating a competing C#, perhaps Sun wont have to fear embrace and extend tactics against Java itself, and dares to open up a bit more to open source and open standards. Maybe they will even be forced to do it to survive.

Re:My take on JDK 1.4 (4, Informative)

mccalli (323026) | more than 12 years ago | (#3005874)

They did break some stuff with legacy code. If you ever named a class 'URI' your code will now fail to compile because they put this class in the java.net package which everyone imports anyway.

Not really a 'breakage'. If you imported only what you needed (java.net.URL, java.net.Socket etc.) your code will continue to work. Only if you used the statement "import java.net.*" will it now fail, and that's down to the individual coder, not the JDK.

Cheers,
Ian

Re:My take on JDK 1.4 (3, Insightful)

briansmith (316996) | more than 12 years ago | (#3005878)

As far as C# vs .Java. I am really impressed with the CLR/CLI stuff. Right now, as it stands, Java is a proprietary language. Unless we see SUN Open Source Java (or push it through a standards committee), we *may* see a JDK 1.5... but no one will use it.


I agreed with your whole post except for this statement. It is just FUD (perhaps unintentional). The fact is that CLR/CLI isn't going to kill off Java in the next 16 months, which is when I expect to see JDK 1.5 delivered. Also, there is nothing stopping open-source clean-room implementations of anything in J2SE, AFAICT. You just can't call your product "Java" and you won't be able to get your runtime certified by Sun. Similarly, I doubt that Microsoft will let somewhat create a clean-room CLR/CLI and call it "The .NET Framework", and they don't even have a process in place for certifying compatible implementations.

Not meaning to troll but.... (0, Troll)

Anonymous Coward | more than 12 years ago | (#3005840)

What good is this platform really?

It seems to me that Java is nothing but slower than other languages, and the write once run anywhere concept has already been bastardized, so whats the point?

Not trying to troll, but Im a developer and I really would like to know why people care about this still?

Re:Not meaning to troll but.... (-1, Troll)

Anonymous Coward | more than 12 years ago | (#3005850)

have you ever developed..................BREASTS??? yuck yuck tuck

p00 beards is krispy times 2

Re:Not meaning to troll but.... (2)

knulleke (557202) | more than 12 years ago | (#3005862)

If I had mod points, I would give them all to you.

Yes java is the most overrated language next to esperanto only.

Re:Not meaning to troll but.... (5, Interesting)

mccalli (323026) | more than 12 years ago | (#3005882)

What good is this platform really?...It seems to me that Java is nothing but slower than other languages

The platform is not the language.

Java is good partly because of its pragmatic syntax (C++ish with some sugar added, some sugar taken away), but mostly it's good because of its excellent class library.

Though I haven't written anything serious for a year or so due to a job switch, I used to write large-scale multithreaded network servers, where somthing like three to four hundred threads could be running at any given moment inside the server. Java's class library made this really quite easy, and it's syntax is pleasant enough to work with.

Cheers,
Ian

Good articles (2, Interesting)

mattscape (264484) | more than 12 years ago | (#3005842)

Are there some good articles out there (besides the sun ones) on how to use the new features?
thx
matt

Open Source Java VM & class libraries (1)

dmiller (581) | more than 12 years ago | (#3005844)

Are there any _good_ java VMs and class libraries? Kaffe looked decent, but appears to be a little "stale" wrt the current state of the art. Are there any projects working to address this?

Re:Open Source Java VM & class libraries (5, Informative)

mlinksva (1755) | more than 12 years ago | (#3005927)

Look at the bottom of the classpath [classpath.org] page for a list of open source VMs that work with classpath (a free core (i.e., java.* and a few others) class library). All works in progress. I expect that mono and/or portable.net will quickly outpace free java projects. The JDK is a case where the availability of good enough gratis software has seriously hampered the momentum of libre competition. Netscape 4.x is another such case.

Kodak invented OLE? (3, Interesting)

blair1q (305137) | more than 12 years ago | (#3005849)

I just took a look at the three patents Kodak is suing Sun over, and, huh?

Sure looks like Kodak claims it invented OLE.

Which, hey, they may have, and Microsoft either licensed or stole it.

What's the real story?

--Blair

Re:Kodak invented OLE? (4, Insightful)

briansmith (316996) | more than 12 years ago | (#3005866)

Kodac got these patents when it bought Wise. I read on JavaLobby.com's discussion of the lawsuit that Wise sued Microsoft three years ago over these three patents. I don't know the outcome of the alleged lawsuit.

Also, a few people on JavaLobby are of the opinion that Kodac just patented three fundemental object-oriented programming techniques. If that is the case, these patents would never hold up in court as almost any SmallTalk program written before 1990 would be prior art.

My pet peeve. (5, Insightful)

Malcontent (40834) | more than 12 years ago | (#3005861)

This is in regard to the kodak suit.

What I find especially bothersome is the the fact that Koday (supposedly) had these patents. They did nothing with them. Sun produced a product, hyped it, sold it, improved it and put in millions of dollars and man hours into it.
Kodak then comes in and demands money after the fact when they made no attempt to actually do anything.

I think that's crazy. Why punish the people who got off their asses and did something especially if the punisher was too lazy or stupid to actually make use of their idea.

This isn't just about sun and kodak either. Who was suing palm recently? Same thing.

Sit on your ass doing nothing, wait for somebody else to do all the work. Then sue them and retire in the bahamas. It's the american way I guess. Sure beats working.

Security export rules (4, Informative)

Aceticon (140883) | more than 12 years ago | (#3005865)

As usual the "import control restrictions" once again are in full force. From the release notes:

Due to import control restrictions, the JCE jurisdiction policy files shipped with the Java 2 SDK, v 1.4 allow "strong" but limited cryptography to be used. An "unlimited" version of these files indicating no restrictions on cryptographic strengths is available.


The JSSE implementation provided in this release includes strong cipher suites. However, due to U.S. export control restrictions, this release does not allow alternate "pluggable" SSL/TLS implementations to be used


What seems even stranger now is that you cannot used "pluggable" implementations (in JSSE). Maybe the "nasty" europeans/asians/africans/martians would provide some unlimited strong cryptography pluggin otherwise???

Patent titles (5, Informative)

jeti (105266) | more than 12 years ago | (#3005887)

The article says nothing about the nature of
the supposedly infringed patents. Here's their
titles:

US05206951
Integration of data between typed objects by mutual, direct invocation between object managers corresponding to object types

US05421012
Multitasking computer system for integrating the operation of different application programs which manipulate data objects of different types

US05226161
Integration of data between typed data structures by mutual direct invocation between data managers corresponding to data types

new in 1.4: public Exception(Throwable cause) (4, Informative)

_am99_ (445916) | more than 12 years ago | (#3005924)

My favorite thing about using 1.4 is code like this:

public void methodA throws MyException {
try { Driver d = Class.forName(driverClass).newInstance(); }
catch (Exception ex) { throw new RuntimeException("problem loading driver"); }
}

can now be this:

public void methodA throws MyException {
try { Driver d = Class.forName(driverClass).newInstance(); }
catch (Exception ex) { throw new RuntimeException("problem loading driver", ex); }
}

Notice the RuntimeException constructor now has the original exception passed to it. It can be retreived higher up the stack, and I believe is printed during a ex.printStackTrace(...). It lets you pass the root cause exception up the stack trace, while preserving the entire state, without having to declare it everywhere.
Load More Comments
Slashdot Login

Need an Account?

Forgot your password?