Results 1 to 6 of 6
  1. #1
    TimHuey is offline Member
    Join Date
    Aug 2009
    Posts
    50
    Rep Power
    0

    Default Mac JavaWebStart App problem (works Windows, not MAC)

    I have a JAVA GUI App deployed using JWS. It works on all Windows Machines I try it on, however, when I try it on some peoples MACs it won't start and I get:

    javax.swing.drop mode:no class def found

    But it only happens on a few peoples MACs, if I go to best buy and try it on theirs to trouble shoot it starts right up. I don't own a mac so it's hard to figure out whats going on.

    Any ideas? (I may not have the exact wording of the error I am seeing but alot of it is correct)

  2. #2
    Webuser is offline Senior Member
    Join Date
    Dec 2008
    Posts
    526
    Rep Power
    0

    Default

    what about the special people's MAC JRE verson? Is it updated right?

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

  4. #4
    TimHuey is offline Member
    Join Date
    Aug 2009
    Posts
    50
    Rep Power
    0

    Default

    I just read a bunch of descriptions of what you both are talking about. I checked and my app was built using JDK 5 on a 64bit windows 7 machine running netbeans 6.8. The JRE is set to 1.6. I can't figure out how to use 1.5 JRE, the option isn't listed in Netbeans drop down box. I don't think I have it installed but I don't think it would make a difference. But now that I understand it maybe a problem with their JRE's I can trouble shoot it more when I see their machines. WEIRD!

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,423
    Rep Power
    20

    Default

    Nothing weird about it at all. Just read the API for the class that isn't found and you will see that javax.swing.DropZone is since 1.6.

    If you want your application to run under 1.5, you need to eliminate use of all classes that didn't exist prior to 1.6, and also compile with a target option. In NetBeans, that's Source/Binary format: JDK 5. Note that this option does not prevent you from using classes that aren't in the 1.5 rt.jar. You have to either ensure that yourself or (I've not done this myself, can't give details) compile against a 1.5 rt.jar instead of the 1.6 one, in which case you will get compile time errors which will help you to fix the code.

    db

    edit It's the Xbootclasspath/p option. See these links:
    Command Line Changes
    java - the Java application launcher
    Last edited by DarrylBurke; 04-02-2010 at 07:59 AM.

  6. #6
    TimHuey is offline Member
    Join Date
    Aug 2009
    Posts
    50
    Rep Power
    0

    Default

    Wow! Thanks Darryl! I will do that. I did compile under JDK5 but I didn't realize that if you run under 1.6 the compiler will let you use code from 6. One wonders why I would even bother choosing JDK5 then. This definitely sounds like my problem. MAC that are non-intel based don't have access to 1.6 JRE. I bet that is the difference between which macs can run it and which can't.

Similar Threads

  1. Time Zone Problem on Windows
    By yzaltz in forum New To Java
    Replies: 4
    Last Post: 09-29-2010, 02:38 PM
  2. Replies: 1
    Last Post: 10-17-2009, 07:07 PM
  3. Replies: 18
    Last Post: 10-13-2009, 04:00 PM
  4. Problem in knowing the status of windows
    By sushil in forum AWT / Swing
    Replies: 1
    Last Post: 10-04-2009, 02:48 AM
  5. Replies: 6
    Last Post: 10-22-2008, 06:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •