i have a simple Selenium Test Code:
public static void main(String[] args) {
System.setProperty(\"webdriver.chrome.driver\", \"/home/chromedriver\");
I hope, your trying a method without having class. Please try to put your main method inside class. please let me know if you are getting any error further.
class Test{
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver", "youHaveToUseLocationWhereYouHaveYourChromeDriver");
WebDriver driver= new ChromeDriver();
driver.get("http://google.com");
} }