Good day, Vineet, Welcome to Beam 👋. We also have starter kits. I've pasted the link below which references various supported languages:
https://beam.apache.org/blog/beam-starter-projects/ These might allow a developer to have what is minimally needed to get started. Please feel free to reach out here if you get stuck. Best, Damon On Sat, Dec 16, 2023, 4:40 PM Vineet <vineet.formast...@gmail.com> wrote: > I already tried that and it worked. I want to modify the examples and add > one of my own. > > On Sat, 16 Dec 2023, 6:15 pm XQ Hu via dev, <dev@beam.apache.org> wrote: > >> 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! >>> >>