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

Cli tools.jar does not exist [v0.15] #152

Open
waraz opened this issue Mar 11, 2018 · 2 comments
Open

Cli tools.jar does not exist [v0.15] #152

waraz opened this issue Mar 11, 2018 · 2 comments

Comments

@waraz
Copy link

waraz commented Mar 11, 2018

Hi Sebastian,
firstly its a great useful application you have coming from your thesis. Nice handy tool for all Java web developers.

I'm trying out the analyzer to generate a swagger doc. However, had issues with the running jar failing to locate a tools.jar from the JRE.

$ java -jar jaxrs-analyzer.jar -b swagger -cp vmsrjet/target/classes tools.jar
Exception in thread "main" java.lang.IllegalArgumentException: The location 'C:\Program Files\Java\jre1.8.0_162..\lib\tools.jar' does not exist!
at com.sebastian_daschner.jaxrs_analyzer.analysis.ProjectAnalyzer.addToClassPool(ProjectAnalyzer.java:148)
at com.sebastian_daschner.jaxrs_analyzer.analysis.ProjectAnalyzer.(ProjectAnalyzer.java:78)
at com.sebastian_daschner.jaxrs_analyzer.JAXRSAnalyzer.analyze(JAXRSAnalyzer.java:69)
at com.sebastian_daschner.jaxrs_analyzer.Main.main(Main.java:94)

Tried a bunch but somehow it isn't able to pass. Could you help with running it especially in the windows environment. I used the normal cmd.exe as well as GitBash shell on win 10.

I'm using the standalone cli as I had issues with building the project cause Maven pom.xml uses the 1.7sdk.

Error injecting: org.eclipse.jetty.maven.plugin.JettyRunMojojava.lang.TypeNotPresentException: Type org.eclipse.jetty.maven.plugin.JettyRunMojo not present

Also, is it possible to build my project with 1.7 while using 1.8 for jaxrs-analyzer?

@waraz waraz changed the title Cli tools.jar does not exist Cli tools.jar does not exist [v0.15] Mar 11, 2018
@torniketar
Copy link

i have the same problem

@sdaschner
Copy link
Owner

Can you please try again with the 0.17 version of the analyzer?

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