Jdk version with maven | Selenium Forum
M
Posted on 19/12/2015
Hi Ashish,

i am getting

strings in switch are not supported in source 1.5

with maven. I am using jdk8 but getting this error.
I added following plugin in pom,, but still getting error


<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>

Thanks

M
Replied on 20/12/2015

please check [color=#FF0000:3bamr69o]JAVA_HOME environmental variable[/color:3bamr69o].


M
Replied on 21/12/2015

JAVA_HOME variable is set to - C:\Program Files\Java\jdk1.8.0_40


M
Replied on 22/12/2015

how are you executing the maven project? in eclipse or cmd prompt?


M
Replied on 23/12/2015

through cmd prompt
by using

mvn clean
mvn install
mvn test


M
Replied on 23/12/2015

zip and upload the project i'll look into it.


M
Replied on 25/12/2015

i have send the project to you email - qtpselenium.supp0rt@gmail.com