I have already come across this error. I couldn't figure out today also.
package com.example.cassandra;
public class test
{
public static void main(String[] a)
{
System.out.println("test");
}
}
This is my java file. My working directory is
com/example/cassandra
Compile command is
javac test.java
Changed working directory to parent directory of com
cd ../../..
Run command
java test
Says
could not find or load main class test
Any body please explain what's the problem here?