I am trying to run a java file from selenium using cmd. Just adding libraries means that the java command (in command lines) does not work (javac works, the file is compiled). Does anyone know any hint?
package folder;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.support.ui.Select;
public class fileJava{
public static void main(String[] args){
System.out.print("Hello World");
}
}
folder.fileJava
. Doublecheck if you do really have such file because it looks like a mix of folder and filename.