I know that this a familiar and well-known issue that happens a lot.
Most of the time the issue is that the user did not specify the package if the class is in package. However I made sure that my case is different.
I tried the following
1- I made sure that the all the java files of the project are in the same folder (4 java files one with main class)
2- I made sure that non of the classes are in any packages
Then I tried to run the program as following (It is a storm hello-world example in case you are familiar with it)
1- Compile using the following command (The jar is needed for storm)
javac -classpath ~/Public/apache-storm-0.9.4/lib/storm-core-0.9.4.jar *.java
2- Run Main class using the following command (The jar is also needed here otherwise I'll get another error)
java -cp ~/Public/apache-storm-0.9.4/lib/storm-core-0.9.4.jar HelloStorm
What I get is the error below
Error: Could not find or load main class HelloStorm
I double checked that HelloStorm is the name of the main class (with no spelling mistakes)
I am not familiar with running framework from command line .. so I might have missed something, however searching similar problem, reading oracle documentation and trying different approaches did not help unfortunately
What would you be your suggestions?