18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Error Configuring sahi with eclipse

gopikannangopikannan Members
edited November -1 in Sahi - Open Source
I created a framework using sahi . Now i am trying to integrate my script with eclipse. So i gone through the below URL and Video for configure sahi with eclipse.


http://sahi.co.in/forums/viewtopic.php?id=1051

http://blog.sahi.co.in/2009/06/configuring-eclipse-for-sahi.html


While trying above steps, Run As -> Start sathi ... facing below error message in console.

How can i overcome this issue. Can someone give me the one by one step to configure sahi with eclipse.

There is no proper forum available ..

I have to execute my sahi through my eclipse ..
SAHI_HOME: ..
SAHI_USERDATA_DIR: ..\userdata
SAHI_EXT_CLASS_PATH:
Error: Could not find main class net.sf.sahi.Proxy
java.lang.NoClassDefFoundError: net.sf.sahi.Proxy
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:198)
Caused by: java.lang.ClassNotFoundException: net.sf.sahi.Proxy
at java.net.URLClassLoader$1.run(URLClassLoader.java:299)
at java.net.URLClassLoader$1.run(URLClassLoader.java:288)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:287)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:327)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:195)
Exception in thread "main"

Comments

  • Hi

    try if theres is a way to add some variables to your execution environment. Its somewhere in Run as -> Configure.
    When there is a way... set the SAHI_HOME manually to your sahi dir

    Regards
    Wormi
  • Hi

    Thanks For your reply... Can you eloborate your comments please

    Thanks
    Gopi
  • Well.. read this post again please and make sure you set your sahi dir right
    http://sahi.co.in/forums/viewtopic.php?pid=3014#p3014

    As far as i know, you can set variables in your Run Configurations. I don't really know where it is found, but just click around maybe you can find it.

    Setting SAHI_HOME to your sahi dir, will resolve the error, I'd say.
  • Hi

    I followed all the instructions.. Can you give me exact link of eclipse IDE.. whether Java EE or Javascript EE to be installed.. I am still facing above issue.. I tried many solutions..

    Please help me.
Sign In or Register to comment.