I'm trying to learn java 9 modularity.
In my project I have 3 modules - 1. com.red30tech.database 2. com.red30tech.cache 3. com.red30tech.backend.
1 is depend on 2, 3 and 2 is depend on 3.
The source code of the project is here.
when I try to compile the project I get below error.
Exercise1> javac -d mods/ --module-source-path src $(find src -name "*.java")
src/com.red30tech.backend/com/red30tech/backend/Processor.java:10: error: package com.red30tech.cache does not exist
db = com.red30tech.cache.api.Cache(db);
^
1 error
If I comment this line, then the compilation is successful.
I've exported the package in module cache here and added the requires in backend module here.
Any reason why my package is not recognized in backend module?