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.

java.lang.ClassNotFoundException: org.mozilla.javascript.Rhino Excepti

DonnaMooresDonnaMoores Members
edited January 2009 in Sahi - Open Source
I am getting the following error when I am trying to upgrade to version 2 of Sahi and run sahi from my build.xml file

[java] Caused by: java.lang.ClassNotFoundException: org.mozilla.javascript.Rhino
Exception

I am guessing I am missing a jar file.

Please can you help.

Cheers
Donna

Comments

  • narayannarayan Administrators
    Donna,

    If you are running from a build.xml file, add this extlib/rhino/js.jar and extlib/apc/commons-codec-1.3.jar to your classpath.
    <target name="start" description="starts proxy">
            <java classname="net.sf.sahi.Proxy" fork="true" dir="bin">
                <env key="MOZ_NO_REMOTE" value="1"/>
                <classpath location="lib/sahi.jar">
                    <pathelement location="extlib/rhino/js.jar"/>
                    <pathelement location="extlib/apc/commons-codec-1.3.jar"/>
                    <fileset dir="extlib" includes="*.jar"/>
                </classpath>
            </java>
        </target>
    
Sign In or Register to comment.