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

Release 0.6.1 jar is missing some dependencies #95

Closed
DavidBiesack opened this issue Dec 3, 2015 · 4 comments
Closed

Release 0.6.1 jar is missing some dependencies #95

DavidBiesack opened this issue Dec 3, 2015 · 4 comments

Comments

@DavidBiesack
Copy link

I downloaded the 0.6.1 release jar from the Releases page and tried running

java -jar /u/sasdjb/java/lib/japicmp-0.6.1-jar-with-dependencies.jar -o old.jar -n new.jar

and got an error

E: Class not found: com.jayway.jsonpath.Configuration$Defaults
See '--help' or '-h' for more information.

Perhaps the release jar is not properly assembled.

(P.S. Please add instructions to the README for how to run the tool)

@siom79
Copy link
Owner

siom79 commented Dec 3, 2015

It looks like the class com.jayway.jsonpath.Configuration$Defaults is missing on your classpath. To get a fast result you can use the command line switch --ignore-missing-classes.

The next release should have a more expressive error description.

You can also add additional dependencies to the classpath like you would do for a normal standalone application (see for example here):

java -cp japicmp-0.6.1-jar-with-dependencies.jar;otherLibrary.jar japicmp.JApiCmp -n new-version.jar -o old-version.jar

@DavidBiesack
Copy link
Author

Ok, this is reporting a class that my jar depends on; I thought perhaps it was a jar that japicmp depends on but which was missing from japicmp-0.6.1-jar-with-dependencies.jar
Using --ignore-missing-classes gave me a valid report.

@siom79
Copy link
Owner

siom79 commented Dec 3, 2015

I have improved the error message for the next release. I hope this will make it more clear.

E: Could not load 'org.apache.commons.math3.stat.inference.TTest'. Please make sure that all libraries have been added to the classpath (CLASSPATH=) or try the option '--ignore-missing-classes'.
See '--help' or '-h' for more information.

@siom79
Copy link
Owner

siom79 commented Dec 20, 2015

Released with 0.6.2.

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

2 participants