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.
Using NB Daily 200511271900. If I try to run a project, NB says it can't find the main class (witch is set).I build the project, still nothing. I open the project properties, play with the libraries(move up, move down), click OK and now the project runs. It does not happen always, but regurarly. This is only one example. The same case for java files that won't run or compile single. In the project window context menu compile and run are disabled and the editor beeps when using F9. Do the same trick with the libraries and it's fixed. Next : Libraries that are lost. When building NB can't find some libraries. After the trick it works. Tried to upgrade to the last Qbuild but there I can't use my own beans in the gui builder. The message says it can't find the bean in the libraries. My userdir survived some upgrades, probably all will go fine when recreating a new one. But I don't have the time to do it now
Created attachment 27585 [details] log file
Another example.(see screenshots) A form that gives errors when going in design mode. Open the properties, push OK, reopen the form, all OK.
Created attachment 27606 [details] errors loading the form
Created attachment 27607 [details] open properties, click OK
Created attachment 27608 [details] recovered form after reopening
Correction to the first remark. I don't have to rearrange the libs, just opening the properties and click OK is enough.
What kind of project are you using?
Plain J2SE projects, created from existing sources.
I have read your posting to the nbusers list and just want to say, that you are not alone. I had exactly the same problem with Q-builds and daily builds. Until now the problem has not occurred with NB5Beta2, which I am now using.
giorgio42, what project are you using? Also J2SE Project with existing sources?
Guys, we will need help from you. I tried to reproduce the issue, but I'm not succesful. Please describe step by step what are you doing, how do you set up the project, dependencies, etc. Don't forget any detail. Thanks.
I don't have to produce steps to get the problem (lucky me). I'll attach my log file again. There are some errors logged after the gui problem. At startup there are also some warnings. What is behind the OK button in the properties window that repairs the behavior? Should there be a change in a file that keeps the state of the project ?
Created attachment 27623 [details] log with errors after gui problem
Please try to delete the userdir, if it helps. It seems that the file you tries to run or compile is not under the source root. Either source roots are invalid or FileUtil.isParentOf () returns wrong value. Does it happen only after IDE start (or project open) or does it happen also when the project was already opened in the ide and worked fine? If you fix it by opening customizer does it appear again in the same IDE run? It may be related to the warning from getNormalizedFile ().
One more question. The problems with forms may be duplicate to fixed issue #69744. Are the not found classes eg: be.mil.cccis.client.process.organisation.common.DirectorPanel from projects which are rebuilt or from archives which may be deleted and recreated?
What is the D:\Workspace\Development\Gp_MRJava\SELECT\implementation\src\unit-test\server\be\mil\application\energyinvoice\ate: `EnergyInvoiceBusinessFacadeBeanTest.java' file for and how it was created? It cantains illegal character :
Just a quick reply energyinvoice\ate: `EnergyInvoiceBusinessFacadeBeanTest.java' The "ate:" is not existing, too much in the path, energyInvoice is the last package name. The DirectorPanel is a panel in the same project. It subclasses a panel in a library (the gui framework). Does it happen only after IDE start (or project open) or does it happen also when the project was already opened in the ide and worked fine? No,yes , it happens all the time , even on projects I am working on (I know for sure for the form problem). For the unrecognized main class or java files, I notice it when switching between open projects. If you fix it by opening customizer does it appear again in the same IDE run? Yes. I'll do some more tests tomorrow.
Tried with an almost fresh userdir. Kept just the config folder in it without the windows2Local. All the projects complain for reference problems while they have the libraries.Even after removing and readding the library from the project See screenshot. What do I have to delete to start up without open projects? Bart
Created attachment 27736 [details] screenshot reference probs
To solve the problem with broken references you have to delete: ${nb_user_dir}/build.properties ${nb_user_dir}/config/org-netbeans-api-project-libraries/libraries-timestamps.properties To start with no open project you have to delete also: ${nb_user_dir}/config/Services/org-netbeans-modules-project-ui-OpenProjectList.settings
It is also important to delete the ${nb_user_dir}/var folder, it may contain some wrong data
Can you try to reproduce it with Daily build from today? There was an issue regarding classpath refresh when a library project was on the classpath. The issue is already fixed in this build.
Tried 200512111900 for an half hour now and did not find any of the problems. Also the problem I had with my own GUI beans in the latest Q build are gone. I deleted the userDir folders you mentioned, except the open projects file. Thanks, Bart
Thanks for your help.
I get the same problem again in the final release 5.0 with a cleaned up userDir. Forgotten something ? Bart
This j2seproject uses javacore to find all main classes. It sometimes does not work. To reporter: Can you try to delete the ${nb_user_dir}/var folder if it helps?
It seems to work with the cleaned up var folder, the problem don't comes back. I did start without the var folder, so it appears when something conflicts in the var folder.
I have the same problems. When running the project, the "Select the main class" window pops up, saying its initializing. It keeps in this state forever. Attaching log file...
Created attachment 33560 [details] messages.log
Javacore module was replaced by Retouche infrastructure. This bug is not valid in trunk any more.
Reorganization of java component