pa5 won't compile on the UMB UNIX system

18 views
Skip to first unread message

Christopher G Kelly 5

unread,
Apr 30, 2012, 11:54:15 PM4/30/12
to cs31...@googlegroups.com
It's working fine on Eclipse, no problems.  But, when I try to compile it on the Unix system, it does not work.

From the pa5 folder, I use the following command:
javac -cp src -d build src/cs310/*.java
(the jgrapht zip file uses "build" where we'd normally use "classes," so I just stuck with "build")

When I do, I get error messages like the following:
src/org/jgrapht/ext/JGraphModelAdapter.java:323: cannot find symbol
symbol  : variable GraphConstants
location: class org.jgrapht.ext.JGraphModelAdapter<V,E>
        GraphConstants.setOpaque(map, true);
        ^
src/org/jgrapht/ext/JGraphModelAdapter.java:392: cannot find symbol
symbol  : class DefaultEdge
location: class org.jgrapht.ext.JGraphModelAdapter<V,E>
        return (DefaultEdge) edgeToCell.get(jGraphTEdge);
                ^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
100 errors

That is just the tail end, and there are many more similar messages above that one.  Also, "ant build" does not seem to work for me, when I run it from the pa5 folder.

Anything you could tell me would be greatly appreciated.

Thanks,
Chris

John Liang

unread,
Apr 30, 2012, 11:57:40 PM4/30/12
to cs31...@googlegroups.com
Did you move your class files over to the build/cs310??
and where are you compiling from?
You also have to set class path
javac -classpath fullpath to jar: full path to build -d(destination of class file) full path to build /fullpath to file to compile

Vy Nguyen

unread,
Apr 30, 2012, 11:59:39 PM4/30/12
to cs31...@googlegroups.com
You need to specify the location of the jgraph.jar  in the -cp flag  (-cp ../lib/jgraph.jar:.)

--
Vy

From: Christophe...@umb.edu
To: cs31...@googlegroups.com
Subject: pa5 won't compile on the UMB UNIX system
Date: Tue, 1 May 2012 03:54:15 +0000

Christopher G Kelly 5

unread,
May 1, 2012, 12:15:28 AM5/1/12
to cs31...@googlegroups.com
Vy and John, thanks for your input.  Using that, I was able to figure out how to get them to compile. :-)

From: cs31...@googlegroups.com [cs31...@googlegroups.com] on behalf of Vy Nguyen [oon...@hotmail.com]
Sent: Monday, April 30, 2012 11:59 PM
To: cs31...@googlegroups.com
Subject: RE: pa5 won't compile on the UMB UNIX system

Reply all
Reply to author
Forward
0 new messages