From: Danyel F. <da...@gm...> - 2004-11-28 19:38:30
|
You can safely remove scratch.* ; those are test classes, code we're trying to work out, dead ends, and similar. If you are building a jar, you can also remove samples.* and test.* ; those are (respectively) samplse of how to use JUNG and test classes designed for JUNIT. As for the corejava references, please make sure you've got the latest version of COLT. (See the download page for the link to download it). -Danyel On Sun, 28 Nov 2004 16:44:06 +0000 (GMT), Dan Bolser <dm...@mr...> wrote: > > I see that the "scratch.joshua.utilities.DiscreteDistribution" class isn't > necessary for compilation (no addional warnings from removing its import). > > There is an issue with gcj and inherited inner classes... > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18131 > > So I had to change the occurances of UserData.CopyAction and CopyAction > fto UserDataContainer.CopyAction (and add "import > edu.uci.ics.jung.utils.UserDataContainer;" to > PartitionDecorationReader.java) to remove warnings about this class. > > Now the only compile error I have is the following... > > gcj -C @files --classpath=/usr/share/java/colt.jar:/usr/share/java/junit.jar:/usr/share/java/xmlParserAPIs.jar:/usr/share/java/commons-collections-3.1.jar > ./edu/uci/ics/jung/visualization/contrib/PersistentLayoutImpl.java:116: error: Type > `Point' not found in the declaration of the local variable `point'. > Point point = (Point) map.get(new Integer(v.hashCode())); > ^ > ./edu/uci/ics/jung/visualization/contrib/PersistentLayoutImpl.java:137: error: Type > `Point' not found in the declaration of the local variable `p'. > Point p = new Point(getX(v), getY(v)); > ^ > 2 errors > > Hey! That looks like the same issue... > > Changing Point to PersistentLayout.Point (for the same reson as > above) compiles further... > > Now I am getting warnings about 'missing' DiscreteDistribution (back to > the "scratch.joshua.utilities.DiscreteDistribution" problem in > KMeansTest.java. > > This is a 'test' method? > > Safe to remove? > > I had to remove a few sample/graph files because of swing stuff that gcj > dosn't have, and also PluggableRenderer.java... > > OK, the errors I am now faceing is ... > > gcj -C @files > --classpath=/usr/share/java/colt.jar:/usr/share/java/junit.jar:/usr/share/java/xmlParserAPIs.jar:/usr/share/java/commons-collections-3.1.jar > ./edu/uci/ics/jung/io/MatrixFile.java: In class > `edu.uci.ics.jung.io.MatrixFile': > ./edu/uci/ics/jung/io/MatrixFile.java: In method > `edu.uci.ics.jung.io.MatrixFile.save(edu.uci.ics.jung.graph.Graph,java.lang.String)': > ./edu/uci/ics/jung/io/MatrixFile.java:150: error: Can't find method > `format(D)' in type `corejava.Format'. > > writer.write(labelFormat.format(matrix.getQuick(i,j)) + " "); > ^ > 1 error > > I see corejava-format-2002-11-16 is a colt dep, but I don't > know how to resolve it. > > all the best, > Dan. > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Jung-support mailing list > Jun...@li... > https://lists.sourceforge.net/lists/listinfo/jung-support > |