Use a different Java version for running Taurus Tests

120 views
Skip to first unread message

Ishan Ganeshan

unread,
Aug 10, 2023, 1:08:11 PM8/10/23
to codename-taurus
Hi All. I have jdk 11 set as the default java jdk in my linux server. But the java script which I want to run through is compiled with java 1.8u112. So, when I try to launch the taurus test it gives an error saying that it cannot find the java class.. But, when I make jdk8 as the default jdk then the test works fine and loads the class correctly.

So, the question is, is it possible to run Taurus test with a different jdk version?

Thanks for your help.

Ishan Ganeshan

unread,
Aug 10, 2023, 1:10:29 PM8/10/23
to codename-taurus
Just to clarify, I want to be able to make taurus utilize jdk 8 for running the tests even though the default jdk is 11.

DT

unread,
Aug 11, 2023, 4:47:36 AM8/11/23
to codename-taurus
  1. You can run classes compiled with Java 8 using Java 11 without any issues, but not vice versa. With regards to "cannot find Java class": we're not telepathic enough to guess what executor you're using and what is your configuration, refer to Taurus documentation for your particular executor, it should contain information regarding where to put your source code, .jar files and/or dependencies
  2. Taurus uses java/javac binaries which are first in your operating system PATH
Reply all
Reply to author
Forward
0 new messages