0

https://github.com/dwdyer/uncommons-maths

Need to analyze this software for a project, and our group doesn't understand how to get this running. I'm hoping someone here can help! I've imported it to eclipse and tried running a few things but no luck.

KenP
  • 77
  • 1
  • 9

1 Answers1

0

This project build with Ant. So to run this download Ant https://ant.apache.org/bindownload.cgi or use provided by your IDE (if there is, maybe some plugin is needed too), go to your project root directory (with build.xml file) and type this command in your terminal: ant all (assuming you have ant in your $PATH)

After successful build go to ./dist directory and run generated jar: java -jar file-name.jar

Mcmil
  • 795
  • 9
  • 25
  • I was able to compile the Build.xml file, and it was recognized as being Ant. However, it throws this error, and i have a JDK installed that compiles etc: jar:file:/home/kennyp/git/uncommons-maths/lib/compiletime/uncommons-antlib-0.3.1.jar!/org/uncommons/antlib/antlib.xml:118: The following error occurred while executing this line: jar:file:/home/kennyp/git/uncommons-maths/lib/compiletime/uncommons-antlib-0.3.1.jar!/org/uncommons/antlib/antlib.xml:83: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. So I am going to try with the alternative option. – KenP Nov 17 '16 at 20:43
  • You need to have JAVA_HOME environment variable pointing to your JDK directory. – Mcmil Nov 17 '16 at 20:45
  • it appears to already be pointing there. Did an echo call and it points to /usr/lib/jvm/java-8-openjdk-amd64/jre – KenP Nov 17 '16 at 20:53
  • Sorry, try to set like this JAVA_HOME = /usr/lib/jvm/java-8-openjdk-amd64 – Mcmil Nov 17 '16 at 20:58
  • kennyp ~ $ echo $JAVA_HOME: /usr/lib/jvm/java-8-openjdk-amd64 But, it doesn't seem to change in eclipse. – KenP Nov 17 '16 at 21:07
  • Try to reload eclipse, reload terminal. check JAVA_HOME and try manually and in eclipse. You can check which JDK eclipse uses too. – Mcmil Nov 17 '16 at 21:16
  • Have you soved this? If this answer is correct please approve. – Mcmil Dec 28 '16 at 00:33
  • This was not the correct solution. There was a demo.jnlp file that a friend had found and was required to run the project after doing some updates. Thank you though! – KenP Dec 29 '16 at 22:58