-
Notifications
You must be signed in to change notification settings - Fork 121
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.lang.ClassNotFoundException error when project has java source files #166
Comments
That seems correct, but not sure why it's not compiling in your case. I have a similar setup here, and it compiles fine using both |
@insaneparachute @yogthos I encountered this same problem |
Hi, Is this the correct way to go about this or is there a better way to do this, @yogthos ? |
@insaneparachute @yogthos , I think I run into the same issue. The project is generated using +site. |
I was able to make a minimal project to reproduce the issue I see. https://github.com/lsyoyo/test-repl-error, clone and run |
After some digging, I found this issue - luminus-framework/luminus-template#319, and it might be helpful for whoever gets here. |
So, the problem was that the |
I created a basic luminus app using
lein new luminus myapp
and added
:java-source-paths ["src/java"] in project.clj file
and added a simple java file
src/java/com/example/Hello.java
In src/clj/myapp/routes/home.clj, I'm referencing this function getFoo()
When I run
lein javac
It gives me an error
java.lang.ClassNotFoundException: com.example.Hello
The text was updated successfully, but these errors were encountered: