JMeter - Webdriver error : java.lang.NoClassDefFoundError: com/sun/jna/platform/win32/Kernel32
Asked Answered
P

2

5

This error:

appears everytime I run a testscript in Jmeter. But everything works...

It is just this error that appears everytime in log after the actual script had run.

Can I ignore this error? Or will it influences my test?

Jmeter: 2.13
Java: 1.8.0.45
Jmeter Plugin : 1.3 (Standard,Extras,ExtraLibs, Webdriver)

Pileous answered 22/7, 2015 at 12:19 Comment(0)
D
7

Your issue is due to missing jar that contains :

  • com/sun/jna/platform/win32/Kernel32

You should be able to download it with its dependency here:

And put it in jmeter/lib folder.

See a full tutorial on this at:

Dedie answered 22/7, 2015 at 15:11 Comment(3)
Ok, should I cpoy the jar in lib or anywhere else? I can't find that value in System property. But I use Windows Server 2008 R2.Pileous
Copy it in jmeter/lib yesDedie
You are right. I'm not getting this error anymore. But after I copy the jar in lib and start JMeter as admin I got a new error: pastebin.com/HwCxmEbJ . So download this jar here: java2s.com/Code/Jar/j/Downloadjna325jar.htm and copy it in lib too. This worked for me.Pileous
V
0

For me just helped changing

<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
</properties>

From 1.7 to 1.8 for source and target

Valdavaldas answered 2/11, 2016 at 14:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.