You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I tried execute this command java -jar generate-speedment-sources.jar C:/Users/Emil/Documents/GitHub/speedment, but i obtained this error Error: Unable to initialize main class com.speedment.sources.Main Caused by: java.lang.NoClassDefFoundError: com/speedment/common/codegen/Generator.
The text was updated successfully, but these errors were encountered:
The jar file generate-speedment-sources.jar only contains the classes in the project and not its dependencies (such as codegen). If you open the project in an IDE (like IDEA or Netbeans) and click run, the IDE will take care of putting the dependencies on the classpath.
Also, you would replace the command line parameter with the path to the Speedment source code on your computer.
This project generates some classes in the Speedment project and these classes are included in Speedment. So, there is no need (except for curiosity) to run this project.
Ok, thank you. I thought the project was different.
How can I then execute a query and see what classes the speedment is using during this execution? Because if I make a new maven project and add the dependency of the speedment I do not have access to the source code.
If you use an IDE (such as IDEA IntelliJ), you can start your project in debug mode and step through execution and see exactly what Speedment classes are being used. The IDE also allows you to download the source code from the Maven repository so you can see what is going on. Hope this helps you!
Hi,
I tried execute this command
java -jar generate-speedment-sources.jar C:/Users/Emil/Documents/GitHub/speedment
, but i obtained this errorError: Unable to initialize main class com.speedment.sources.Main Caused by: java.lang.NoClassDefFoundError: com/speedment/common/codegen/Generator
.The text was updated successfully, but these errors were encountered: