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

[Java] - README instructions are insufficient to run the sample code #3141

Open
Tracked by #3143
matthew-carroll opened this issue Dec 28, 2023 · 0 comments
Open
Tracked by #3143

Comments

@matthew-carroll
Copy link

Describe the bug
The Java sample README says to run mvn exec:java from within the simple-console directory. However, for me, that was insufficient. Maven complained about not being able to find the main file - I got a class not found exception at the terminal. I couldn't run the sample.

To Reproduce
Steps to reproduce the behavior:

  1. Clone the repo
  2. Navigate to the simple-console Java directory
  3. Run mvn exec:java

Expected behavior
The sample app runs.

Actual behavior
I get a class not found exception for the Sample class.

Resolution
Running mvn clean install from within the simple-console directory solved the problem. HOWEVER, to get mvn clean install to run, I had to copy the two lint configuration XML files from the top-level Java directory down into the simple-console directory. Without copying those files, mvn clean install was failing on the lint lifecycle.

The README for the sample app should include all necessary steps to build and run the sample app, and that build process shouldn't require copying any files.

Platform (please complete the following information):

  • Platform: Java
  • Environment: console app
  • Version of package: GitHub version: 8d2eeda
@Qqqq0qw Qqqq0qw mentioned this issue Feb 15, 2024
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

1 participant