Welcome to Beam!

To test your Java environment, you can just run this gradle task:

./gradlew :examples:java:wordCount




On Sat, Dec 16, 2023 at 6:30 PM Vineet <vineet.formast...@gmail.com> wrote:

> Hi,
>
> I want to run the beam examples locally , building from source (for
> contributing).
> Hence after setting all dependencies (java , etc)
> I ran:
>  ./gradlew :examples:java execute
> -PmainClass=org.apache.beam.examples.WordCount
>
> But I am thrown a build failure:
>
> > Task :examples:java:twitter:execute FAILED
> Caching disabled for task ':examples:java:twitter:execute' because:
>   Gradle would require more information to cache this task
> Task ':examples:java:twitter:execute' is not up-to-date because:
>   Task has not declared any outputs despite executing actions.
> Starting process 'command
> '/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin/java''.
> Working directory:
> /Users/vineet/Documents/apache-beam/beam-1/examples/java/twitter Command:
> /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin/java
> -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant
> org.apache.beam.examples.twitterstreamgenerator.TwitterStream
> Successfully started process 'command
> '/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin/java''
> Error: Could not find or load main class
> org.apache.beam.examples.twitterstreamgenerator.TwitterStream
>
> Can anyone help me with this please?
> Also, I am a first time contributor in college. So apologies in advance if
> I am missing something!
>

Reply via email to