akeranen / the-one

The Opportunistic Network Environment simulator
Other
208 stars 198 forks source link

Fix: Replace deprecated -extdirs option with -cp in JDK 9+ #109

Closed Jxpro closed 1 year ago

Jxpro commented 1 year ago

This PR is to solve the following problem: In JDK 9 and above, the-extdirs option to specify additional class library directories is no longer supported. JDK 9 Release Notes: https://www.oracle.com/java/technologies/javase/9-relnotes.html

The following quote is from PR #97

issue related:

Jxpro commented 1 year ago

The -cp option is also compatible with jdk8, as shown in the figure:

image
Jxpro commented 1 year ago

Sorry, I will create a new branch to resubmit this PR instead of on the master branch to prevent subsequent commit from being mistakenly assigned to this PR.