3 Replies Latest reply: May 8, 2014 7:58 AM by c0715048-353d-46e9-83f8-41caaa1bf109 RSS

    Nullpointer when creating JFileChooser

    c0715048-353d-46e9-83f8-41caaa1bf109

      I am launching a regular java app in a Desktop I created ( CreateDesktop() ) on a Windows 7 64 bit box. The code is all compiled in 32 bit, and the JVM being used to launch the app is also 32 bit. IN this application I create a JFileChooser object, JFileChooser fc = new JFileChooser(); etc, etc, etc.

      This and all the other code associated with it works fine. When I take all the same identical binaries, JVM and all, to a Windows 7 32 bit box JFileChooser throws a null pointer exception when creating it.

      The app also work just fine in the 32 bit machine if I launch it in the default Windows destop.

      Does anyone have any idea what's going on and the inconsistency between Windows 7 32 bit and 64 bit?

      Thanks Al Harper