Check if library will work on a specific verion of Java

后端 未结 2 645
说谎
说谎 2021-01-13 22:15

What approach can be taken to verify that a library is compatible on a specific version of Java?

Example: Library X was compiled on Java 1.7, therefor it might not w

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-13 22:40

    compile with the version you want:

    javac -target ...
    

    see that: How do i compile a .java with support for older versions of java?

    and check jar dependencies: with Jdepend for example

    Analyze JAR dependencies in a Java project

提交回复
热议问题