This content has been marked as final. Show 3 replies
database/DeleteBean.java [18:1] cannot access database.DBAccess
bad class file: C:\TOMCAT\webapps\cecomproj\src\database\DBAccess.class
bad constant pool tag: 13 at 10
both files DeleteBean.java and DBaccess.java contain the line:
NetBeans doesn't seem to have any problems compiling other classes (even with dependancies on other packages). Just all the files in my tomcat project.
Any help would be appreciated.
ok.... I figured out my problem... nothing to do with Classpaths, more something to do with checking class files out of CVS (I think) once I deleted the class files, everything else compiled fine.
Because this is the only post Google returns for "netbeans bad constant pool tag", I'd like to add this (even though the post is many years old):
The original post mentions Windows XP and CVS - so my recent experience may be relevant.
I moved a bunch of Netbeans projects via Windows onto a Linux server to add them to a CVS repository.
When I reentered the Projects into Netbeans all hell broke loose : for example: projects compiled clean but the IDE red-flagged them; libraries showed up on the Project Property sheets but were absent in the Libraries tab under the Project in the Projects tree. Netbeans itself appeared to be "in distress".
I had noticed that many java sources were now double-spaced (a blank line inserted after each original line). I suspected somewhere during the journey from Windows to Linux the old carriage-return + line-feed glitch had happened. But, hey-ho, this doesn't effect the java and could be filtered out later.
Then the moment of revelation: most of the XML and .properties files had also been double-spaced.
So code that originally read (for example):
This (subtle) introduction of the extra lines ruins everything ... but once you realise what's happened, it is easily fixed !