Issue while building with Java 1.7

21 views
Skip to first unread message

Ashish Uniyal

unread,
Sep 17, 2017, 3:57:35 PM9/17/17
to Serenity BDD Users Group
Hi,

I have to run my test in Java 1.7 Environment. I specified a maven goal.
But when I did, I am getting below error :

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.025 sec <<< FAILURE! - in features.xxxxxx.New
build	17-Sep-2017 15:48:09	initializationError(features.xxxxx.New)  Time elapsed: 0.019 sec  <<< ERROR!
build	17-Sep-2017 15:48:09	java.lang.UnsupportedClassVersionError: com/google/common/base/Optional : Unsupported major.minor version 52.0
build	17-Sep-2017 15:48:09		at java.lang.ClassLoader.defineClass1(Native Method)
build	17-Sep-2017 15:48:09		at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
build	17-Sep-2017 15:48:09		at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
build	17-Sep-2017 15:48:09		at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
build	17-Sep-2017 15:48:09		at java.net.URLClassLoader.access$100(URLClassLoader.java:71)


This issue never came when I build using maven in Java 1.8. 
Can you please help. I am stuck.

Thanks a lot
Ashish

John Smart

unread,
Sep 17, 2017, 3:59:02 PM9/17/17
to Ashish Uniyal, Serenity BDD Users Group
Selenium 3 and Serenity 1.5.x require Java 8.

--
You received this message because you are subscribed to the Google Groups "Serenity BDD Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-use...@googlegroups.com.
To post to this group, send email to thucydid...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
___________________________________________________
John Smart | Wakaleo Consulting  |  +44 7398 832273
Making smart teams collaborate better
http://johnfergusonsmart.com  |  john....@wakaleo.com
___________________________________________________

We love breaking down silos and helping smart teams collaborate better! Ask about our tailored on-site workshops in Agile Product Planning, BDD Requirements Discovery,  BDD, TDD and Clean Coding, and Advanced BDD Test Automation.

Need some help with Serenity BDD? Check out our Serenity BDD training and support packages here.
___________________________________________________
Message has been deleted
Message has been deleted

Ashish Uniyal

unread,
Sep 17, 2017, 8:04:58 PM9/17/17
to Serenity BDD Users Group
Hi John,
 
Does this mean that if we are using Selenium 3, but an older version of Serenity like 1.1.x, still we will require Java 1.8 ?

I was trying to resolve this for like 2 hours.
 
Thanks a lot for the quick response John. Much appreciated.

Regards
Ashish
Reply all
Reply to author
Forward
0 new messages