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.
Its actually version 7.3 RC2 Get duplicate class error when there is no duplicate class. Program compiles up correctly with no errors. Have deleted cache files, but problem persists. When loaded into Netbeans 7.2 I have no problems at all.
Got around the problem I didn't know that netbeans has two places where is caches files. had deleted ~/Library/Application\ Support/NetBeans/7.3rc2 but also need to delete ~/Library/Caches/NetBeans/7.3rc2 so its just the old cache problem.
closing then.
I got that error when I copied a backup over the file in src folder. I could find the class name only in the class file and in project properties as main.class, it cannot be found e.g. anywhere in files in ~folder.
Did you try wiping out the cache (like ~/Library/Caches/NetBeans/7.3 ) ? (In reply to comment #3) > I got that error when I copied a backup over the file in src folder. I could > find the class name only in the class file and in project properties as > main.class, it cannot be found e.g. anywhere in files in ~folder.
I encountered this in 8.0 RC2 When I refactor/rename the class, the error goes away. When I add a new variable somewhere with the old name as the type, the autocompletion suggests it along with the new name, but javadoc for the old name is missing. No editor error is given but the compiler now halts with errors.
Created attachment 147548 [details] uplocateclass.png
I've got same problem on 8.0.2. Cleaning cache didn't help
This issue has nothing to do with 'Exception reporter'. Reassigning.
(In reply to ralfeus from comment #7) > I've got same problem on 8.0.2. Cleaning cache didn't help Using 7.4 on ubuntu. Same problem. deleted nebeans project directory and the .netbeans in the home directory. Setup my project again. Same problem. Created a new user id and setup project no problems. Back to original user id and found a .cache directory. down the tree netbeans/version/index and removed index no more problems. Peter
(In reply to ralfeus from comment #7) > I've got same problem on 8.0.2. Cleaning cache didn't help I am also using 8.0.2 - and clearing cache as suggested worked for me, but not immediately after restart - initially I got the same "duplicate class" error. However, I retried some time later (say 5 minutes?) and the build succeeded. I'm thinking this may be down to NetBeans background processes ontop of cleared cache - 3 running "Background scanning of projects" "Indexing Maven repository: Local" and "Checking for External Changes"
I am using 8.2 RC. Build NO.201705191307. Today I've got same problem. Cleaning project、restart OS and restart IDE did not help.Reinstall is ok.