Using package while running; Error "Could not find or load main class"

Question
classpath=  C:\Program Files\Java\jdk1.8.0_111\jre\lib\;C:\Program Files\Java\jdk1.8.0_111\bin;
path=C:\Program Files\Java\jdk1.8.0_111\bin;C:\Program Files\Java\jre1.8.0_111\bin;
package seleniumTest;
public class SampleTest {

public static void main(String[] args) 

{
  System.out.println("hello");        
}    

}

My question is I am not able run the Java file while using the package. I am new to Java so not able to find the root cause. Please help me out. Its not able to reach the main class.


Show source
| java   | class   2017-01-06 19:01 0 Answers

Answers ( 0 )

◀ Go back