Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to access to a resource in the ADF application?

FerezApr 8 2013 — edited May 27 2013
Hi

I have a jasper report file named report.jrxml in the following path in my ADF application named “app”:
app\ViewController\src\org\nmp\app\view\report

I wanna access to this file inside a java file located in the ViewController project as follows:
InputStreaminSt = new FileInputStream(new File(“app\ViewController\src\org\nmp\app\view\report\report.jrxml”));

But I get the following exception:
java.io.FileNotFoundException: app\ViewController\src\org\nmp\app\view\report\report.jrxml (The system cannot find the path specified)

How could I access to this resource in my application? I am using JDev 11.1.2.3

Cheers,
Ferez
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 24 2013
Added on Apr 8 2013
7 comments
1,426 views