GeeCON Prague 2014*
The moose likes JNLP and Web Start and the fly likes JWS Maintenance issues and future of java on desktop Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "JWS Maintenance issues and future of java on desktop" Watch "JWS Maintenance issues and future of java on desktop" New topic
Author

JWS Maintenance issues and future of java on desktop

Abdul Aleem
Greenhorn

Joined: Jul 19, 2002
Posts: 19
I was really surprised to see very little traffic on this forum, doubting java is still king on the server alone?

Well let me get to business, we have ported many ( doing the rest) of all our applet(swings) based application to java web start and facing few issues although we enjoy the richness and performance of JWS

a) our clients are facing lot of installation related issues, is there an easy way to test if client pc can succesfully test installation of jws on their machine ( I believe need to write a simple hello world program and host it on our server and ask client to use jnlp link ? does sun provide some sample tests after successful installation of JWS off the shelf?

b) How do you handle client logging ?
Enabling the debug console is not an option as user will tend to close it anyway as they will be annoyed by the opening window

Can write to disk but again size grows considerably and writes to a common folder for all jws applications
If need to write to seperate folder security issues etc

(In applet days, just ask the client to get the java console on the fly from the browser when there is an issue, this is not the case with JWS )


From what i know is Java is growing on the desktop too,( sun's pushing Netbeans IDE and guys like Romain are doing fantastic job on the java desktop ) but curious to know if any tools/features provided for effective maintenance ?

Appreciate any thoughts/help on the above

Best Regards,
Aleem

[ December 07, 2007: Message edited by: Abdul Aleem ]

[ December 07, 2007: Message edited by: Abdul Aleem ]
[ December 07, 2007: Message edited by: Abdul Aleem ]
Jared Cope
Ranch Hand

Joined: Aug 18, 2004
Posts: 243
Hi,

There is good debate on whether Java Swing is dying or dead. I've seen the same questions and conclusions for over two years now -- yet I still have plenty of Swing work and I can't see it changing any time soon in my industry.

a) I think you can embed some javascript to test if java is intalled on client PC and to take action about it. Try googling for some details. More powerful though is the jnlp file specification that allows you to dictate what JRE your application must run under and it will download and install it before running your application. This can get tricky with end user locked down profiles etc. But its perfect if your clients are anonymous users in control of their own PCs. This area can get tricky -- post specific problems and I can try to help!

b) We handle client logging with log4j. This will take care of log rotation and deletion for you and give you the ability to set logging levels for the application. The console is not useful really in my experience of production deployed code. Users don't know how to interpret it -- it's much easier to get them to email a log file and then you inspect that. Just make sure that you write the log to a writable area of the hard disk as the client may have a locked down profile with limited access (C:\temp is usually fine -- sorry am assuming windows).

Cheers, Jared.


SCJP 1.4 91%, SCJP 1.5 88%, SCJD B&S
Harry Mitchell
Greenhorn

Joined: Mar 14, 2008
Posts: 5
Just yesterday I had a conversation about the future of Java Swing with a fellow Swing developer. We really love Swing for many reasons, which is why we talk about it so much. He and I have the same conversation about once per year. Each year it appears that Swing is not dead, but dying. The outcome is the same this year. Here are a few questions that lead me in the direction of Swing dying a slow death.
- Swing sightings is not been updated for TWO YEARS! Update it or remove it from the site.Swing sightings
- Which brings me to my next point. Market penetration of Swing apps should be much better. Swing is a great tool for desktop apps, but most companies don't even consider it. Swing needs some marketing muscle to change people's perceptions.
- People's perception of applets, which is very often their introduction to Swing, needs to drastically change. Technically Swing is vastly superior to AWT, where those bad opinions were formed. Marketing muscle needed.
- There are very few Swing jobs available. This steers developers away from Swing and into the open arms of Flash and the AJAX family of technologies (CSS, DHTML, Javascript, etc...).
- Two of the biggest Swing champions (Romain Guy who is working on Android and Chet Haase who is working on Adobe Flex) have left the company.

I could continue, but the point has been made. Swing is technically superior to its competitors. The problem I see is that Sun does not appear to throw enough marketing resources behind Swing.

My love for Swing is what forced me to write this reply. I would love to continue writing Swing apps, but as a man with bills to pay I have to do PHP and other technologies to keep the lights on.

My two cents,

Harry Mitchell




From what i know is Java is growing on the desktop too,( sun's pushing Netbeans IDE and guys like Romain are doing fantastic job on the java desktop ) but curious to know if any tools/features provided for effective maintenance ?

Appreciate any thoughts/help on the above

Best Regards,
Aleem

[ December 07, 2007: Message edited by: Abdul Aleem ]

[ December 07, 2007: Message edited by: Abdul Aleem ]

[ December 07, 2007: Message edited by: Abdul Aleem ][/QB]
 
GeeCON Prague 2014
 
subject: JWS Maintenance issues and future of java on desktop