Java Web Start, JavaScript and the JWS application


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Java Web Start, JavaScript and the JWS application

  1. #1
    Join Date
    Aug 2004
    Posts
    1

    Angry Java Web Start, JavaScript and the JWS application

    Hey people, stuck in a bit of a rut at the moment, i'm using java web start to deploy 2 apps over our local intranet at work.

    The problem is theres alot of mac users and alot of pc users, so i want to be able to offer people a Mac build (with mac specific things going on) and another build for everything else, the reason for this being that i'll be able to provide things like menu bar along the normal osx menu bar, and better osx support.

    I've got an index.html that redirects the person to either win.html or mac.html depending on their operating system, this works everywhere, except in the Web Start app itself, does anyone know of an easier/better way to do this?

    if anyone could point in the right direction for this one it'd be VERY helpful.

  2. #2
    Join Date
    Feb 2004
    Posts
    808
    have just one program.. and check the contents of the os.name property:

    http://java.sun.com/j2se/1.3/docs/ap...etProperties()

    if osName.indexOf("windows") > 0){
    doWin();
    else
    doMac();
    The 6th edict:
    "A thing of reference thing can hold either a null thing or a thing to any thing whose thing is assignment compatible with the thing of the thing" - ArchAngel, www.dictionary.com et al.
    JAR tutorial GridBag tutorial Inherited Shapes Inheritance? String.split(); FTP?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center