| Error: Could not find or load main class  [message #1222630] | 
Fri, 20 December 2013 18:29   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Hi, 
 
When I try to run my java project, I get "Error: Could not find or load main class." 
 
I've recreated the project a few times and I also tried running the class created by the New Class wizard, without modifying it, to eliminate syntax issues, and I get the same result. 
 
I'm running Fedora 17, 64 bit. 
[Updated on: Fri, 20 December 2013 18:56] by Moderator  
 |  
 |  
  | 
 | 
 | 
| Re: Error: Could not find or load main class  [message #1729873 is a reply to message #1222630] | 
Tue, 19 April 2016 14:51   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
package sourcebits; 
import io.appium.java_client.ios.IOSDriver; 
 
import java.net.MalformedURLException; 
import java.net.URL; 
  
import org.openqa.selenium.By; 
import org.openqa.selenium.remote.DesiredCapabilities; 
import org.testng.annotations.AfterMethod; 
import org.testng.annotations.BeforeMethod; 
import org.testng.annotations.Test; 
public class mobile { 
IOSDriver driver; 
	 
	@Test 
	public void setUp() throws MalformedURLException { 
		DesiredCapabilities caps = new DesiredCapabilities(); 
		caps.setCapability("platformName", "iOS"); 
		caps.setCapability("platformVersion", "9.2.1"); //Replace this with your iOS version 
		caps.setCapability("deviceName", "SBMOB/0110"); //Replace this with your simulator/device version 
		caps.setCapability("app", "/Users/balaji/Downloads/Genie.ipa"); //Replace this with app path in your system 
		driver = new IOSDriver(new URL("http://0.0.0.0:4723/wd/hub"), caps); 
	} 
	 
	 
} 
 
 
I am using the above code and as per the attached screenshot what changes should I do run the application successfully
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.09539 seconds