Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsRegister rxJava in Eclipse
https://www.eclipse.org/forums/index.php/mv/msg/1092867/1785691/#msg_1785691
Im trying to add the RXJava (io.reactivex.Observable) librarie into Eclipse but with no success.
First i added a file called rxjava-2.1.12.jar then i added the rxjava-2.1.12.zip.
Eclipse seems to accept those files.
I can browse them and it seems to be the right librarie
No error until i run the program.
This error pops up:
Exception in thread "main" java.lang.NoClassDefFoundError: org/reactivestreams/Publisher
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
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)
at Start.main(Start.java:13)
Caused by: java.lang.ClassNotFoundException: org.reactivestreams.Publisher
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)
... 13 more
I have googled this and 1 suggestion is to alter text in a gradle file.
Its shouldnt be that complicated.
Seems like the editor is satisfied but the runtime isnt.
Please help me.
//Magnus]]>Magnus Magnussson2018-04-18T11:57:27-00:00Re: Register rxJava in Eclipse
https://www.eclipse.org/forums/index.php/mv/msg/1092867/1785722/#msg_1785722
Nitin Dahyabhai2018-04-18T22:22:24-00:00