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

Front page HelloWorld example does not work out of the box #5014

Closed
dims12 opened this issue Jan 24, 2017 · 7 comments
Closed

Front page HelloWorld example does not work out of the box #5014

dims12 opened this issue Jan 24, 2017 · 7 comments

Comments

@dims12
Copy link

dims12 commented Jan 24, 2017

Library version is follows:

         <dependency>
            <groupId>io.reactivex.rxjava2</groupId>
            <artifactId>rxjava</artifactId>
            <version>2.0.4</version>
        </dependency>

Code is follows:

import io.reactivex.*;
public class HelloWorld {


   public static void main(String[] args) {
      Flowable.just("Hello world").subscribe(System.out::println);
   }

}

error messge is follows:

Error:(12, 15) java: cannot access org.reactivestreams.Publisher
class file for org.reactivestreams.Publisher not found

@akarnokd
Copy link
Member

Are you using just plain maven? You have to manually reference `org.reactivestreams:reactive-streams:1.0.0' as dependency in maven or switch to Gradle.

@dims12
Copy link
Author

dims12 commented Jan 24, 2017

There is a maven snippet on the page and no any word about org.reactivestreams:reactive-streams

@akarnokd
Copy link
Member

This will be addressed with the release of 2.0.5.

@akarnokd
Copy link
Member

Closing via #5015.

@xxLestadxx
Copy link

Hi, I started a Gradle project in intellij, but I am having the same problem, any thoughts?

@akarnokd
Copy link
Member

akarnokd commented Jul 9, 2018

Works for me:

image

@xxLestadxx
Copy link

Thank you very much! ... had a typo...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants