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.lang.NoClassDefFoundError: scala/Option in 'resources-example' #579

Open
sake92 opened this issue Jan 12, 2018 · 0 comments
Open

java.lang.NoClassDefFoundError: scala/Option in 'resources-example' #579

sake92 opened this issue Jan 12, 2018 · 0 comments

Comments

@sake92
Copy link
Contributor

sake92 commented Jan 12, 2018

PS C:\cbt\examples\resources-example> cbt direct runFlat
INFO: Could not find files for the given pattern(s).
Exception in thread "main" java.lang.NoClassDefFoundError: scala/Option
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
        at java.lang.Class.privateGetPublicMethods(Class.java:2902)
        at java.lang.Class.getMethods(Class.java:1615)
        at cbt.reflect.Module$$anonfun$findStaticMethod$3.apply(reflect.scala:154)
        at cbt.reflect.Module$$anonfun$findStaticMethod$3.apply(reflect.scala:155)
        at scala.Option.flatMap(Option.scala:171)
        at cbt.reflect.Module$class.findStaticMethod(reflect.scala:153)
        at cbt.Stage1Lib.findStaticMethod(Stage1Lib.scala:14)
        at cbt.reflect.Module$class.findStaticExitMethod(reflect.scala:139)
        at cbt.Stage1Lib.findStaticExitMethod(Stage1Lib.scala:14)
        at cbt.reflect.Module$class.findMain(reflect.scala:75)
        at cbt.Stage1Lib.findMain(Stage1Lib.scala:14)
        at cbt.DependencyImplementation$$anonfun$mainClass$1.apply(resolver.scala:93)
        at cbt.DependencyImplementation$$anonfun$mainClass$1.apply(resolver.scala:93)
        at scala.collection.TraversableLike$$anonfun$filterImpl$1.apply(TraversableLike.scala:248)
        at scala.collection.immutable.List.foreach(List.scala:381)
        at scala.collection.TraversableLike$class.filterImpl(TraversableLike.scala:247)
        at scala.collection.TraversableLike$class.filter(TraversableLike.scala:259)
        at scala.collection.AbstractTraversable.filter(Traversable.scala:104)
        at cbt.DependencyImplementation$class.mainClass(resolver.scala:93)
        at Build.mainClass(build.scala:2)
        at cbt.DependencyImplementation$class.mainClassOrFail(resolver.scala:87)
        at Build.mainClassOrFail(build.scala:2)
        at cbt.DependencyImplementation$class.runMain(resolver.scala:85)
        at Build.runMain(build.scala:2)
        at cbt.BaseBuild$class.run(BasicBuild.scala:217)
        at Build.run(build.scala:2)
        at cbt.DynamicOverrides$class.runFlat(DynamicOverrides.scala:83)
        at Build.runFlat(build.scala:2)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at cbt.Lib$$anonfun$cbt$Lib$$callInternal$1$$anonfun$apply$9$$anonfun$apply$11$$anonfun$apply$12.apply(Lib.scala:155)
        at cbt.reflect.Module$$anon$1.run(reflect.scala:178)
        at cbt.reflect.Module$$anon$1.run(reflect.scala:177)
        at cbt.reflect.TrapSystemExit.run(TrapSystemExit.java:15)
        at cbt.reflect.Module$class.trapExitCodeOrValue(reflect.scala:176)
        at cbt.Stage1Lib.trapExitCodeOrValue(Stage1Lib.scala:14)
        at cbt.Lib$$anonfun$cbt$Lib$$callInternal$1$$anonfun$apply$9$$anonfun$apply$11.apply(Lib.scala:155)
        at cbt.Lib$$anonfun$cbt$Lib$$callInternal$1$$anonfun$apply$9$$anonfun$apply$11.apply(Lib.scala:153)
        at scala.Option.map(Option.scala:146)
        at cbt.Lib$$anonfun$cbt$Lib$$callInternal$1$$anonfun$apply$9.apply(Lib.scala:153)
        at cbt.Lib$$anonfun$cbt$Lib$$callInternal$1$$anonfun$apply$9.apply(Lib.scala:150)
        at scala.Option.map(Option.scala:146)
        at cbt.Lib$$anonfun$cbt$Lib$$callInternal$1.apply(Lib.scala:150)
        at cbt.Lib$$anonfun$3.cbt$Lib$$anonfun$$g$1(Lib.scala:103)
        at cbt.Lib$$anonfun$3$$anonfun$apply$5.apply(Lib.scala:105)
        at cbt.Lib.cbt$Lib$$callInternal(Lib.scala:175)
        at cbt.Lib.getReflective(Lib.scala:143)
        at cbt.Lib.callReflective(Lib.scala:106)
        at cbt.Stage2$.run(Stage2.scala:35)
        at cbt.Stage2.run(Stage2.scala)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at cbt.Stage1$.run(Stage1.scala:210)
        at cbt.Stage1.run(Stage1.scala)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at cbt.NailgunLauncher.main(NailgunLauncher.java:123)
Caused by: java.lang.ClassNotFoundException: scala.Option
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 65 more

OS: Windows
Same without using Nailgun.

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