News for hackers. Stuff that matters.
Re:Java 11 released by sixstringtheory on Tuesday September 25, 2018 @04:14PM (#18070097)
I don’t follow Java too closely these days as I haven’t worked in it in years. Pretty wild that Applets are now removed. I still remember the wonder of being able to build a compiled application that could run from command line or in the browser. RIP Applets, long live Java :)
Re:Java 11 released by ChuckMcM on Tuesday September 25, 2018 @05:05PM (#18070474)
With the removal of applets I feel like the last of the Java that helped build is gone. The process of working on the development of, and then watching the weaponizing of Java is one of the more memorable chapters in my career.

For those who weren't there to remember, the concept of Applets, or applications that ran in a web browser and didn't need an operating system to run, was apparently terrifying to Microsoft. Sun's senior management exploited that terror blunt the invasion of Windows desktops in Sun's enterprise accounts. So many complex technical issues resolved with the test "will it scare/attenuate Microsoft?" rather than "Is this what the language/system should be?"

[1] https://stuff.mit.edu/afs/sipb/user/marc/hotjava/doc/people....

Re:Java 11 released by lokedhs on Tuesday September 25, 2018 @09:42PM (#18072020)
I was working for Sun during those days. They used to have this vision that everything would be written in Java. They threw everything at that wall, and ran with the ones that stuck.

I've been in presentations showing all kinds of things being rewritten in Java just because apparently that was something that needed to be done. I particularly remembers seeing a NIS (YP) server and and NFS server in Java. When I asked why they did that, and particularly why they didn't go for NIS+ (which was many years old at the time) or event LDAP, they had no answer.

Re:Java 11 released by ChuckMcM on Wednesday September 26, 2018 @01:37AM (#18073039)
Java wasn't really good at being a server early on, it was very much 'client side.' It would have been an interesting exercise for me to implement NIS+ in it :-)
Re:Java 11 released by sixstringtheory on Wednesday September 26, 2018 @12:51PM (#18077839)
I remember that being pushed hard in college... it would power washing machines, refrigerators etc.
Re:Java 11 released by nineteen999 on Tuesday September 25, 2018 @06:03PM (#18070912)
> applications that ran in a web browser and didn't need an operating system to run

Huh? The web browser/JVM certainly needed an operating system to run, and by extension the applets did too.

Re:Java 11 released by twic on Tuesday September 25, 2018 @06:36PM (#18071131)
I think the point is that they weren't tied to a particular operating system. If someone wrote an application as an applet, they could sell it to customers who had Windows, or who had Solaris. They could, to coin a phrase, write once, run anywhere.
Re:Java 11 released by nineteen999 on Tuesday September 25, 2018 @07:02PM (#18071290)
As long as "anywhere" meant Windows and Solaris. There were a lot more commercial operating systems in those days (eg. Tru64, SCO, HP-UX, OpenVMS, AIX, Linux, QNX, Classic MacOS etc), many or most of which didn't get a JVM/JRE until much later.

I wonder if any significant amount of money was ever made from selling Java applets. I can't remember the last time I saw one in the wild.

Re:Java 11 released by rsynnott on Tuesday September 25, 2018 @09:19PM (#18071911)
Java 1.0 was available for MacOS. But yeah, platform support wasn’t great for a while.
Re:Java 11 released by nineteen999 on Wednesday September 26, 2018 @02:05AM (#18073146)
After 1.0 even the Mac lagged pretty significantly.

http://www.javaworld.com/jw-07-1997/jw-07-javamac.html

Re:Java 11 released by pjmlp on Wednesday September 26, 2018 @02:26AM (#18073226)
Not on JavaOS and bare metal JVMs, where the VM is the OS.
Re:Java 11 released by nineteen999 on Wednesday September 26, 2018 @03:16AM (#18073487)
JavaOS was DOA and end-of-lifed in 1999. Superseded by J2ME, which didn't support applets, as least not without an application-specific loader, or within a web browser AFAIK.

I'm pretty sure it's safe to say that Java applets on bare metal never took off. As has been pointed out in another response, "running Java applets without an OS or browser" was not exactly the intent of the OP's words in any instance.

Re:Java 11 released by pjmlp on Wednesday September 26, 2018 @04:09AM (#18073802)
You are missing the embedded and factory automation market, blu ray players, cable TV boxes, where plenty of JVM vendors are happily selling bare metal JVMs.

The ones that never had any issue with either Sun or Oracle, because they always played by the license rules.

Re:Java 11 released by nineteen999 on Wednesday September 26, 2018 @04:54AM (#18074049)
I'm not missing anything. You can keep moving the goal posts all you want.

The conversation was about applets, running in a web browser, and how a browser AND the the JVM's available at Java's release, did or didn't require an operating system to run.

Embedded Java is not "applets". Nobody is denying that there is billions of devices running client side Java code.

https://www.v3.co.uk/v3-uk/news/2443810/oracle-signals-the-e...

Re:Java 11 released by pjmlp on Wednesday September 26, 2018 @05:13AM (#18074167)
> The web browser/JVM certainly needed an operating system to run, and by extension the applets did too.

Not moving goal post at all "JVM certainly needed an operating system to run".

Re:Java 11 released by nineteen999 on Wednesday September 26, 2018 @05:32AM (#18074255)
It certainly did at the time that Java was released, which was the context I was commenting in (ie. "needed", not "needs") - the original HotJava browser (1994) or Netscape 2.x (1995) with builtin Java applet support, before it was later moved to a plugin.

JavaOS wasn't released until later (1996). And Wikipedia classifies it as an "operating system with a Java virtual machine as a fundamental component". The clue is in the name.

Re:Java 11 released by duckduckgone on Tuesday September 25, 2018 @07:19PM (#18071384)
I remember AWT&Swing from the 1.0-1.2 days. heck, I got an A for some project at DeAnza that was an applet for something, maybe a chess board.

Circa 1997 I put a JRE on a brandable installer CD for a client that used JNI to call Win32 API to write Windows registry entries, make shortcuts and a desktop shortcut basically as an "InstallAnywhere" before it existed.

A couple of years later, I wrote a Java to MIPS direct compiler for a compiler course... in both C++90 and Java 1.3.

Re:Java 11 released by sixstringtheory on Wednesday September 26, 2018 @12:50PM (#18077827)
Ah yes, I believe I have a Knight’s tour solver written in Swing. Not sure I ever fully mastered GridBagLayout! Now to convert that to Autolayout and Swift...
Re:Java 11 released by ta468757 on Wednesday September 26, 2018 @03:00PM (#18079175)
GridBagLayout I actually grew to love, it has perfect control of GUI elements imo. The implementation is nasty, but I miss it still.
Re:Java 11 released by jjordan on Tuesday September 25, 2018 @05:14PM (#18070532)
It's coming back via WebAssembly.
Re:Java 11 released by vbezhenar on Tuesday September 25, 2018 @05:41PM (#18070743)
WebAssembly can't do anything JavaScript can't do. Applets on the other hand have full access to computer and hardware. The only thing WebAssembly does better is performance and even that is questionable.
Re:Java 11 released by ktpsns on Wednesday September 26, 2018 @03:42AM (#18073637)
The java applet's possibility to gently jump over the sandbox fence was probably the most terrifying feature of java which probably put Java on an equal footing as Adobe Flash, i.e. a potentially dangerous browser extension which requires regular updates (Flash and Java updaters were omnipresent in the Microsoft Windows tray in these days, isn't it?) and which the average user does not understand.

That's a pity because both Adobe Flash as well as Java Applets were interesting pieces of software for certain applications. However, due to their availablity they were abused anywhere. I remember some 90s DHTML sites having one Java applet per navigation bar button just because the effect was looking nicely. This was the same kind of bloat we experience with huge JavaScript libraries today. Probably the browser plugins were even easier to control (i.e. disable as a user) as an ubiquitous JavaScript is :-/

Re:Java 11 released by lmz on Tuesday September 25, 2018 @06:12PM (#18070982)
Not any random applet, that's where the security manager comes in (in theory anyway).
Re:Java 11 released by twic on Tuesday September 25, 2018 @06:37PM (#18071139)
Applets were heavily sandboxed. I think the only substantial things they could do that JavaScript can't were start threads and open TCP sockets (although still only to their origin host?). WebAssembly seems like a very good comparison.
Re:Java 11 released by johannes1234321 on Tuesday September 25, 2018 @07:56PM (#18071556)
Yes they were sandboxed, but could request the user to approve further system access.
Re:Java 11 released by vbezhenar on Wednesday September 26, 2018 @01:13AM (#18072947)
Signed applets could do anything, I wrote one myself to communicate with USB device.