Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ant build failing with missing files #2

Open
cgoliver opened this issue Feb 6, 2019 · 3 comments
Open

Ant build failing with missing files #2

cgoliver opened this issue Feb 6, 2019 · 3 comments

Comments

@cgoliver
Copy link

cgoliver commented Feb 6, 2019

Hello,

I noticed there is an ant build file in the repo so I'm trying to build using it and I'm getting some compile errors that seem to indicate missing dependencies which I wasn't able to find in the repo with a simple grep. Wondering if you have any tips on how to address this:

$ ant
Buildfile: /home/mcb/cgonza11/SimGNN/src/graph-matching-toolkit/build.xml

build-subprojects:

init:

build-project:
     [echo] graph-matching-toolkit: /home/mcb/cgonza11/SimGNN/src/graph-matching-toolkit/build.xml
    [javac] Compiling 56 source files to /home/mcb/cgonza11/SimGNN/src/graph-matching-toolkit/bin
    [javac] /home/mcb/cgonza11/SimGNN/src/graph-matching-toolkit/src/util/CentralityInterface.java:4: error: package edu.uci.ics.jung.graph does not exist
    [javac] import edu.uci.ics.jung.graph.SparseMultigraph;
    [javac]                              ^
    [javac] /home/mcb/cgonza11/SimGNN/src/graph-matching-toolkit/src/util/CentralityInterface.java:5: error: package edu.uci.ics.jung.graph.util does not exist
    [javac] import edu.uci.ics.jung.graph.util.EdgeType;
    [javac]                                   ^
    [javac] /home/mcb/cgonza11/SimGNN/src/graph-matching-toolkit/src/util/CentralityInterface.java:6: error: package edu.uci.ics.jung.algorithms.scoring does not exist
    [javac] import edu.uci.ics.jung.algorithms.scoring.*;
    [javac] ^
    [javac] /home/mcb/cgonza11/SimGNN/src/graph-matching-toolkit/src/util/CentralityInterface.java:7: error: package edu.uci.ics.jung.algorithms.shortestpath does not exist
    [javac] import edu.uci.ics.jung.algorithms.shortestpath.*;
    [javac] ^
    [javac] /home/mcb/cgonza11/SimGNN/src/graph-matching-toolkit/src/util/CentralityInterface.java:26: error: cannot find symbol
    [javac] 		EdgeType edgeType = graph.isDirected() ? EdgeType.DIRECTED : EdgeType.UNDIRECTED;
    [javac] 		^

Thanks!

@sandervh14
Copy link

Hi @cgoliver, I had the same problem yesterday and found that the missing dependencies (the jung library) can be downloaded from https://sourceforge.net/projects/jung/ (jung2-2_0_1.zip).

Then, the code can be compiled with

cd src/graph-matching-toolkit
javac -d 'bin' -classpath 'jung2-2_0_1/*' src/*/*.java

or using the IDE of your choice (and manually adding the path of the jung libary (like above) to the project dependencies before compiling).

@tiankonghenlan20113046
Copy link

I am trying to run your code ,but it reprots some error ,could you offer some tips for me ?

@tiankonghenlan20113046
Copy link

image
it shows the error above seen in the pic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants