Results 1 to 5 of 5
- 03-03-2010, 04:58 AM #1
Member
- Join Date
- Mar 2010
- Posts
- 5
- Rep Power
- 0
NetBeans losing package information when crashing
I'm currently writing a program in NetBeans with a Main class and a half-dozen helper classes. At one point, my computer crashed and I had to restart. Since then, NetBeans has been reporting "symbol not found" errors whenever I refer to one class in the project package from another, including places where I'd used those references prior to the crash. I can still build and run the project as normal, and it runs without a hitch, but these erroneous error labels interfere with debugging of actual errors in the code.
I'm not sure how NetBeans handles storing which classes I've created inside the project package, but loosely speaking, how can I force NetBeans to refresh its understanding of my package?
Example code to follow.
- 03-03-2010, 05:01 AM #2
Member
- Join Date
- Mar 2010
- Posts
- 5
- Rep Power
- 0
Main.java:
Java Code:package trade_route_generator_project; import java.io.*; import java.util.Vector; /** * * @author --- */ public class Main { /** * @param args the command line arguments */ public static void main(String[] args) { // code removed GalaxyGeographyModel ggm = new GalaxyGeographyModel(constellationJumpsXMLFile, constellationsXMLFile, jumpsXMLFile, regionJumpsXMLFile, regionsXMLFile, solarSystemJumpsXMLFile, solarSystemsXMLFile, pathsFilename); ggm.computeAndSaveDistanceAndPathsFromSource(0); // code removed } }
- 03-03-2010, 05:03 AM #3
Member
- Join Date
- Mar 2010
- Posts
- 5
- Rep Power
- 0
GalaxyGeographyModel.java:
Java Code:package trade_route_generator_project; import java.io.*; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom.NodeList; import java.util.Vector; import java.util.HashMap; import java.util.LinkedList; /** * * @author --- */ public class GalaxyGeographyModel { private Vector<Region> regionVector; private Vector<Constellation> constellationVector; private Vector<SolarSystem> solarSystemVector; private Vector<RegionJump> regionJumpVector; private Vector<ConstellationJump> constellationJumpVector; private Vector<SolarSystemJump> solarSystemJumpVector; private HashMap<Integer, SolarSystem> solarSystemIDToSolarSystemMap; private HashMap<String, SolarSystem> solarSystemNameToSolarSystemMap; private HashMap<Integer, Constellation> constellationIDToConstellationMap; private HashMap<Integer, Region> regionIDToRegionMap; private HashMap<SolarSystem, Integer> solarSystemMatrixIndexMap; private HashMap<Integer, SolarSystem> matrixIndexSolarSystemMap; private short[][] pairwiseDistances; private long[][] pathsFileOffsets; private short pathedSourceSolarSystemsCount; private boolean pathsFullyInitialized; private String pathsFilename; public GalaxyGeographyModel(File constellationJumpsXMLFile, File constellationsXMLFile, File jumpsXMLFile, File regionJumpsXMLFile, File regionsXMLFile, File solarSystemJumpsXMLFile, File solarSystemsXMLFile, String _pathsFilename) { // code removed } // non-constructor methods removed }
- 03-03-2010, 05:07 AM #4
Member
- Join Date
- Mar 2010
- Posts
- 5
- Rep Power
- 0
Within Main.java, the line
evokes the following error label from NetBeans:Java Code:GalaxyGeographyModel ggm = new GalaxyGeographyModel(...)
... though that error wasn't there prior to the computer crash, with unchanged code, and both GalaxyGeographyModel.java and Main.java include the line "package trade_route_generator_project".Java Code:cannot find symbol symbol: class GalaxyGeographyModel location: class trade_route_generator_project.Main
Within GalaxyGeographyModel.java, all of the references to other data classes within the trade_route_generator_project package evoke similar errors. For example, for the first line
I get the errorJava Code:private Vector<Region> regionVector;
Thanks in advance for your assistance. It will be a tremendous relief to be able to return to coding instead of worrying about fictitious errors caused by the NetBeans implementation.Java Code:cannot find symbol symbol: class Region location: class trade_route_generator_project.GalaxyGeographyModel
- 03-03-2010, 05:38 AM #5
Member
- Join Date
- Mar 2010
- Posts
- 5
- Rep Power
- 0
Similar Threads
-
The declared package does not match the expected package
By oneforall in forum EclipseReplies: 7Last Post: 11-09-2009, 07:51 AM -
Losing Packets/Bytes using DataInputStream and socket
By ajordanneve in forum NetworkingReplies: 0Last Post: 03-24-2009, 05:22 AM -
While loop crashing?
By ToplessGrunt in forum New To JavaReplies: 6Last Post: 10-20-2008, 11:07 AM -
IE crashing on windows 2003 64 bit OS while loading applet java 6
By DevzAbhi in forum Advanced JavaReplies: 0Last Post: 07-29-2008, 01:19 PM -
Problems with JFrame losing the Design view
By chris@gaiag.net in forum NetBeansReplies: 7Last Post: 07-23-2008, 07:35 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks