This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 167344 - config import&export colide with Swing desktop application
Summary: config import&export colide with Swing desktop application
Status: RESOLVED INCOMPLETE
Alias: None
Product: projects
Classification: Unclassified
Component: Libraries (show other bugs)
Version: 6.x
Hardware: PC All
: P1 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-19 00:47 UTC by flyinfeeling
Modified: 2009-06-26 17:11 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description flyinfeeling 2009-06-19 00:47:29 UTC
i now use netbeans 6.7 rc3 .
i export the configuration to a zip file.
but after i re-installed netbeans  and try to import the config file , the Swing desktop application would not work.
they said they cannot find the 
java.lang.NoClassDefFoundError: org/jdesktop/application/SingleFrameApplication
        at java.lang.ClassLoader.defineClass1(Native Method)

but ofcoz my project is ok.

and when i delete the .netbeans folder in my document.
the project works !

...
Comment 1 Antonin Nebuzelsky 2009-06-19 15:51:16 UTC
Works for me.

I started freshly installed 6.7, created a Java Desktop Application project and then exported all settings available in
the dialog box at Tools/Options -> Export.

I reinstalled 6.7 including removing .netbeans/6.7 userdir folder and after the start of newly installed 6.7 I went
directly to Tools/Options -> Import and imported all settings from the zip created in the previous 6.7 installation.

The import worked perfectly, all settings were imported, IDE restarted and after the restart the Desktop Application
project was opened automatically and I can work with it nicely.

Please, be more specific about your OS, the JDK version, IDE distribution (I used the "All" distro of the IDE), and the
steps to reproduce. If possible, please attach also the project (zipped up) and the settings zip here.
Comment 2 Antonin Nebuzelsky 2009-06-26 16:38:57 UTC
flyinfeeling sent to me over email:

"i create a swing application framework project (like safproject
i add a library into Library  forexample : commons.lang
i add the commons.lang lib to my project.
and now , it ofcoz works.

then i export the whole config (choose 'all' ) to a zip file (like config.zip)
remove the netbeans system  and the .netbeans folder
re-install the netbeans
import the config.zip file
and now  the safproject will not work . it indicate that they cannot find the class

but
now close the netbeans.
remove the .netbeans folder
open the netbeans.
add the commons.lang to Library again , solve the reference problem.
and now  the project works.

or saying like this : the library import has bug , it makes SAF progject fail to find the SAF classes.  
and i have another test .  if  i import the 'all' except 'librarys and variables'  , all other features all import
perfectly  , and i ofcoz have to solve reference problem .
if i choose 'all'  , i do not need to solve any reference problem , but SAF project just dose not work .

i use Java distribution.
this problem start from 6.7m1 and last util now."
Comment 3 Antonin Nebuzelsky 2009-06-26 17:11:00 UTC
Marian, can QE help reproducing the problem? I followed the steps above, but it works for me correctly.