YOUR FEEDBACK
Adobe Flex 2 - Answering Tough Questions About Enterprise Development
A Correct Person wrote: Denis Roebrt commented on the 21 Aug 2006 "Tough Que...


2007 West
GOLD SPONSORS:
Active Endpoints
Your SOA Needs BPEL for Orchestration
BEA
Virtualized SOA: Adaptive Infrastructure for Demanding Applications
Nexaweb
Overcoming Bandwidth Challenges with Nexaweb
TIBCO
What is Service Virtualization?
SILVER SPONSORS:
WSO2
Using Web Services Technologies and FOSS Solutions
Click For 2007 East
Event Webcasts

2008 East
PLATINUM SPONSORS:
Appcelerator
Think Fast: Accelerate AJAX Development with Appcelerator
GOLD SPONSORS:
DreamFace Interactive
The Ultimate Framework for Creating Personalized Web 2.0 Mashups
ICEsoft
AJAX and Social Computing for the Enterprise
Kaazing
Enterprise Comet: Real–Time, Real–Time, or Real–Time Web 2.0?
Nexaweb
Now Playing: Desktop Apps in the Browser!
Sun
jMaki as an AJAX Mashup Framework
POWER PANELS:
The Business Value
of RIAs
What Lies Beyond AJAX?
KEYNOTES:
Douglas Crockford
Can We Fix the Web?
Anthony Franco
2008: The Year of the RIA
Click For 2007 Event Webcasts
SYS-CON.TV
TOP THREE LINKS YOU MUST CLICK ON


On Microsoft's Effort to Create Pure Java++

Digg This!

The Microsoft Java tools are put down by some for lacking JFC, security and portability. I'll examine each of these in turn, but first a bit of context. For some time, C++ and Visual Basic have been the application development leaders. Now, rather suddenly, all developers are looking at Java as an interesting alternative. Java offers many critical benefits, but it lacks the low-level power of C++ and it generally won't be as fast. Most developers will never be able to reap its benefits if these significant detractions remain. The business opportunity is enormous for anyone shrewd enough to create Java tools that help developers reach the full potential of client machines. Microsoft knows this.

I have to laugh as I wade through the JFC vs. AFC debate raging in comp.lang.java Some Pure Javans despise Microsoft because Internet Explorer will ship with Microsoft's AFC instead of Sun's JFC. Isn't it really odd to hear people whine about what comes with a free product? Ultimately, it's in everyone's best interest if the two class libraries compete. You know, let the marketplace decide.

Some folks in the news groups don't realize that IE is completely capable of running JFC. If it couldn't, it would cease to be a competitive browser. In fact, JFC is downloaded automatically when an IE user browses a Web site that uses JFC. The surprise is that if Microsoft actually did ship JFC with IE, most users would still download JFC just one time! (As part of the IE download itself. Isn't the Web great?)

Critics charge that the capability of Microsoft's Java products to run ActiveX components outside of the Java sandbox is a security flaw. But Java vs. ActiveX should not be an either/or debate. For clever developers, the question is how much of each? ActiveX is a necessary means to take advantage of native-code modules when it is unsatisfactory to rely exclusively on the lowest common denominator of portable Java and HTML. While the browser sandbox presumes to secure Java code, keep in mind that all software, not just ActiveX components, but even shrink-wrapped applications and shareware downloads should be considered suspect. As a matter of fact, thanks to digital signature technology such as Authenticode, downloading native code over the Web will prove to be the safest method.

If you find that hard to believe, imagine this. It wouldn't be impossible for a rogue employee at a computer store to slip a virus into a box and reapply new shrink-wrap. Or a rogue employee at the ISP or the phone company could slip a virus into the bitstream of a downloaded piece of shareware. While those events are extremely unlikely, the point is that ActiveX and Java provide new tools to deliver software more safely. Although the average Internet user is at greater risk today than they were when the Web consisted entirely of static HTML, that goes hand in hand with us asking for Web pages that do more than just sit there. Now we can run rich Java and ActiveX applications over the Net without having to drive to the computer store.

Some argue that ActiveX and J/Direct not only make Java less secure, but also less portable. They say Microsoft is attempting to subvert the Internet from trying to standardize on Pure Java. Give me a break! For those who haven't noticed, Visual J++ compiles Pure Java code faster than anything; Internet Explorer is the fastest Pure Java Virtual Machine; and AFC is written entirely in Pure Java. Obviously, Pure Java is a great thing - when we can do it. But just as there are few great programs written entirely in ANSI C, Java programmers will often need to tap into the machine or the OS directly. ActiveX is a very useful means to do this.

ActiveX runs on most clients that connect to the Internet, including Macintosh, Windows and soon, several flavors of Unix. But even if ActiveX only ran on Windows, somehow the notion of giving more power to the 5 million Windows programmers who write code for the 100 million Windows users seems to be too complicated for some Pure Javans to comprehend. Portability is rightfully a key issue for Unix Java programmers because ignoring the OS and GUI differences between vendors would perilously restrict their market, which is already limited to about 1 million copies per year. But Windows developers like me already know our target platform. When Java is the right business strategy, we should not ignore our target platform to build needlessly portable and less powerful applications.

It's quite simple really. If Pure Javans don't like J/Direct or ActiveX, they don't have to use it. But if those of us who build rich Wintel binaries need a clean object-oriented, multi-threaded, net-enabled language with ActiveX and Win32, guess what? Now we have another great choice. Sometimes we feel like a sandbox, sometimes we don't.

About Scott Zimmerman
Scott Zimmerman has programmed for 17 years in over two dozen languages. He is Manager of Product Architecture with Azron, Inc in San Diego. Azron produces an award-winning wireless electronic medical record system for Windows NT. The opinions expressed here do not necessarily reflect those of his employer.

LATEST JAVA STORIES & POSTS
JavaOne 2008: A Developer's Perspective
This is my third JavaOne. Many topics were discussed, friendships were made, new partnerships were started. I must say things have changed a lot and stayed the same yet again, here are my thoughts in no particular order, bear in mind that they do not represent the opinion of my c
3rd International Virtualization Conference & Expo: Themes & Topics
From Application Virtualization to Xen, a round-up of the virtualization themes & topics being discussed in NYC June 23-24, 2008 by the world-class speaker faculty at the 3rd International Virtualization Conference & Expo being held by SYS-CON Events in The Roosevelt Hotel, in mi
A Lightweight Approach to SOA and BPM in Java Using jBPM
SOA is mostly associated with technologies such as BPEL, SCA and Web Services. But does SOA really imply these technologies? In this session we will show how you can use the service oriented approach while staying inside the Java world. jBPM is a powerful lightweight framework th
Case Study: Java and the Mac
This is the story of a Mac application developer (okay - it's about two of them) who set out on a quest to find an application development tool based on Java so his boss would let him develop on the Mac platform, which he loved. There was only one catch - he had to find a tool th
eApps Hosting Now Offers the GlassFish Java Application Server in VPS Hosting Plans
eApps Hosting announced that the GlassFish Open Source Application Server for Java EE 5, from the GlassFish community project, is now available as a click installable application service in low cost Virtual Private Server (VPS) hosting plans. The eApps Hosting service has support
The 4 Core Principles of Agile Programming
One of the things I really enjoy at the moment is the recognition and adoption of agile programming as a fully fledged powerful way to deliver quality software projects. As its figurehead is a group of very talented individuals who have created the agile manifesto (http://agilema
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS
SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021

SYS-CON FEATURED WHITEPAPERS

ADS BY GOOGLE
BREAKING JAVA NEWS
Five Sun Microsystems Women Honored with Prestigious Awards
Sun Microsystems, Inc. (NASDAQ:JAVA) today announced that five Sun women have been awar