A java class ReadFile1 in the TestA Project. And another class TestRead in project TestB. I want to read that class ReadFile1 in TestRead class. I have the only relative path, then how can i read that.
Example
My class is present in D:\EIX-New-Source\source\message-kernel\src\main\java\com\eix\transform\parser\MessageTransformer.java
message-kernel is the project in source folder.
and I am doing the test in D:\EIX-New-Source\source\msg-Test\src\com\coreJava\rnd\RelativePath.java
when I run this program then I got the result as D:\EIX-New-Source\source\message-kernel\target\classes
But I am expecting the result should be D:\EIX-New-Source\source\message-kernel\src\main\java\com\eix\transform\parser\MessageTransformer.java