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

JDime script does not work #24

Closed
mernst opened this issue Oct 24, 2023 · 2 comments
Closed

JDime script does not work #24

mernst opened this issue Oct 24, 2023 · 2 comments

Comments

@mernst
Copy link

mernst commented Oct 24, 2023

I tried to follow the instructions for running JDime after building it.

The JDime script does not appear at the location stated in README.md. See #23.

Running build/scripts/JDime yields

Error: Could not find or load main class de.fosd.jdime.Main
Caused by: java.lang.ClassNotFoundException: de.fosd.jdime.Main

I edited build/scripts/JDime by hand to change build/lib/JDime.jar to build/libs/JDime.jar.

Then, running build/scripts/JDime yields

Error: Unable to initialize main class de.fosd.jdime.Main
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException
@GSeibt
Copy link
Collaborator

GSeibt commented Oct 24, 2023

These scripts are produced by the Gradle application plugin. The plugin places the scripts in the build/scripts folder temporarily before the distribution is assembled in build/install/JDime. This causes your first problem.

You need to call the JDime script from the build/install/JDime/bin folder. The script will then setup the classpath correctly and the second problem will not occur. Make sure to use Java 8 for running JDime.

@mernst
Copy link
Author

mernst commented Oct 24, 2023

I was using ./gradlew assemble which I am accustomed to creating all the artifacts, whereas I should have used ./gradlew installDist.

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