Main not found when trying to compile Hadoop program Ask Question. Asked 7 years, 1 month ago. Active 3 years, 1 month ago. Viewed 18k times. Main WordCounter. Then I tried javac -version which gave javac 1.
Kudayar Pirimbaev Kudayar Pirimbaev 1, 2 2 gold badges 20 20 silver badges 42 42 bronze badges. Why would the tools. What's your classpath? What is tools. Duplicated by stackoverflow. Add a comment. Active Oldest Votes. This worked for me. It isn't very well documented in the setup of hadoop. Aaron Digulla Aaron Digulla k gold badges silver badges bronze badges.
The following example uses an undocumented, deprecated technique calling com. Normally you would use javax. Here is how you use it:. You too might use this technique for speed to avoid reloading javac. You can also get long command lines with the listOfFiles technique. Capturing the error messages from javac. You can also use the -Xstdout to bypass the problem. Add a comment. Active Oldest Votes. Sign up or log in Sign up using Google. Sign up using Facebook.
Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Related 6.
0コメント