javaantivymodule-pathopenjdk-11

Migrating java application from Java 8 to Java 11


Advance thanks, who are be going to help me.

Story: till date my application is using JDK8, but right now I am migrating my application to Open JDK11 and using IVY as dependency manager and Ant as a build tool.

Problem: I was facing compile-time issues in eclipse for javax, but then I change JRE lib in the build path, from classpath to Modulepath. Now everything is working fine. But now the main problem is, while running antbuild.xml using Ant, this still giving me the same compile-time errors. I think I know what to do now, but how to do I don't know. I have to add Open JDK11 as module path somewhere in antbuild.xml.

Main Question: How to set Open JDK11 as module path in antbuild.xml (BASICALLY ANT BUILD FILE).

if the question is still not understandable, please let me know.


Solution

  • After 11 months I am able to post the answer because I understand the actual problem and now I have a solution that I implement in my project and its working flawlessly, all the compile-time errors are fixed.

    What solution I implement.


    Reason for this problem

    See Java changes its file structure, so a lot of packages moved here and there. Some new packages are used, some got replaced and renamed.

    So the basic problem is just this.


    Solution That We can implement to resolve compile-time errors

    This solution helped me. If you are facing the same issue, please connected me, I might help you with this.