https://kotlinlang.org logo
#science
Title
# science
b

bjonnh

08/21/2019, 6:53 PM
I was struggling finding a nice solution for plotting
a

altavir

08/21/2019, 7:56 PM
Please do provide a feedback. We've migrated only tiny portion of plotly functionality, but we will add it quickly on demand.
b

bjonnh

08/21/2019, 8:00 PM
Exception in thread "main" java.lang.NoClassDefFoundError: scientifik/plotly/Plotly at DynamicServerKt.main(dynamicServer.kt:24) at DynamicServerKt.main(dynamicServer.kt) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:567) at com.intellij.rt.execution.application.AppMainV2.main(AppMainV2.java:131) Caused by: java.lang.ClassNotFoundException: scientifik.plotly.Plotly at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ... 7 more
that's my first feedback
freshly imported in intellij (java 12)
a

altavir

08/21/2019, 8:05 PM
Oh, wow, it seems to be some kind o classpath error, not actually a code error. Could you please open an issue? Maybe it is somehow related to Java 12. It is night here, so I will look at it tomorrow
It seems like it is a Gradle problem. You can try Dev branch. Examples are made standalone there
b

bjonnh

08/21/2019, 8:09 PM
I just reran it and it works
really weird
the only thing I did was run static
a

altavir

08/21/2019, 8:12 PM
For some reason main project was not compiled. Maybe you used idea build without resync.
b

bjonnh

08/21/2019, 8:13 PM
I thought it would do it by itself
I'll try to integrate that in my project see what happen
oh wow you are building with an eap version of kotlin
a

altavir

08/21/2019, 8:15 PM
Just remember to use bintray reference and all repositories.
b

bjonnh

08/21/2019, 8:15 PM
yeah I'm not sure I am doing that right
a

altavir

08/21/2019, 8:15 PM
We have to. There was a plugin bug in the older one.
You can use build config from examples in Dev branch.
I think I've add all instructions in the readme, but I am not sure. Sadly, we have to write all of the repositories. Gradle does not allow to include them in dependency.
b

bjonnh

08/21/2019, 8:25 PM
yeah that works using what is in the example
I got my first plots
2 Views