简体   繁体   中英

Multiple Java versions running concurrently on Windows 7

The application runs on Java 1.6 version but my selenium project work on java 1.8 version. So, I want to run this project on that application. How do we set up different java versions? Is it possible ?

yes ofcourse you are just automating the application right. Your project has nothing to do with that application's code itself. You can put in your maven POM.xml to use java 1.8 in your project with a plugin. Or do you mean that you want to integrate your automation code inside the existing project of the application itself? Here is the plugin anyway:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM