I follow this starter tutorial.
I can not run the code with this command :
$ java -cp gs-gradle-0.1.0.jar hello.HelloWorld
I have this error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/joda/time/LocalTime
at hello.HelloWorld.main(HelloWorld.java:11)
Caused by: java.lang.ClassNotFoundException: org.joda.time.LocalTime
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 1 more
All import classes are not found. But with gradle command it works :
$ ./gradlew run
Why with java command, it doesn't work ?
Thanks