Just to have the solution in the mailing archives, another issue was that
the code was compiled with JDK 1.6. In which case JMeter also needs to be
run with that JDK or we need to recompile with JDK1.4

regards
deepak

On Wed, Sep 23, 2009 at 9:33 AM, sebb <seb...@gmail.com> wrote:

> Turns out the jar file contained the java source only ... but a good
> idea anyway.
>
> On 23/09/2009, Deepak Shetty <shet...@gmail.com> wrote:
> > did you try running Junit using this jar directly to run your class?
> >
> >  regards
> >  deepak
> >
> >  On Wed, Sep 23, 2009 at 8:19 AM, Anupindi, Satish <
> >
> > satish_anupindi...@cable.comcast.com> wrote:
> >
> >  >
> >  > I am using JUnit3.
> >  >
> >  > -----Original Message-----
> >  > From: sebb [mailto:seb...@gmail.com]
> >  > Sent: Wednesday, September 23, 2009 10:54 AM
> >  > To: JMeter Users List
> >  > Subject: Re: Question on using the JUnit Sampler with JMeter
> >  >
> >  > On 23/09/2009, Anupindi, Satish <satish_anupindi...@cable.comcast.com
> >
> >  > wrote:
> >  > >
> >  > >  Does not seem to work with JMeter 2.3.4 either. Any ideas?
> >  >
> >  > Are you using JUnit3 or JUnit4?
> >  >
> >  > >
> >  > >  -----Original Message-----
> >  > >  From: sebb [mailto:seb...@gmail.com]
> >  > >  Sent: Tuesday, September 22, 2009 6:30 PM
> >  > >  To: JMeter Users List
> >  > >  Subject: Re: Question on using the JUnit Sampler with JMeter
> >  > >
> >  > >  On 22/09/2009, Anupindi, Satish
> >  > <satish_anupindi...@cable.comcast.com>
> >  > >  wrote:
> >  > >  >
> >  > >  >
> >  > >  >
> >  > >  >
> >  > >  >  Hi,
> >  > >  >
> >  > >  >             As a proof of concept, I created a sample JUNit Test
> >  > Java
> >  > >  >  file (which is attached), compiled fine, created a jar file out
> of
> >  > >  the
> >  > >  >  package defined for it. I then, copied the jar file to the
> >  > >  >  "JMeter_root_dir\lib\junit"  directory, and restarted JMeter.
> But
> >  > I
> >  > >  >  could not find the SampleTest under the ClassName option. Any
> >  > ideas
> >  > >  why?
> >  > >  >  I Googled the hell out of it - but to no avail. Please help!!
> >  > >  >
> >  > >
> >  > >  Please don't send attachments to the list (in this case it was
> >  > dropped
> >  > >  anyway).
> >  > >
> >  > >  N.B. JMeter 2.3.4 only supports JUnit3 because it targets Java 1.4+
> >  > >  There will be JUnit4 support in the next release of JMeter (no
> >  > release
> >  > >  date yet, but it will require Java 1.5+).
> >  > >
> >  > >  >
> >  > >  >  Thanks,
> >  > >  >
> >  > >  >
> >  > >  >  Satish
> >  > >  >
> >  > >  >
> >  > >  >
> >  > >  >
> >  > ---------------------------------------------------------------------
> >  > >  >  To unsubscribe, e-mail:
> jmeter-user-unsubscr...@jakarta.apache.org
> >  > >  >  For additional commands, e-mail:
> >  > jmeter-user-h...@jakarta.apache.org
> >  > >  >
> >  > >
> >  > >
>  ---------------------------------------------------------------------
> >  > >  To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
> >  > >  For additional commands, e-mail:
> jmeter-user-h...@jakarta.apache.org
> >  > >
> >  > >
> >  > >
>  ---------------------------------------------------------------------
> >  > >  To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
> >  > >  For additional commands, e-mail:
> jmeter-user-h...@jakarta.apache.org
> >  > >
> >  > >
> >  >
> >  > ---------------------------------------------------------------------
> >  > To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
> >  > For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
> >  >
> >  >
> >  > ---------------------------------------------------------------------
> >  > To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
> >  > For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
> >  >
> >  >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
>
>

Reply via email to