Skip to Main Content

Java SE (Java Platform, Standard Edition)

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 set a Path to read a CSV file from a Java Package.

843805Apr 28 2006 — edited May 2 2006
Hi,

For creating a JTable I am reading a csv file and creating.
and the CSV file are in a package called data.
I am accessing the file like this.

File file = new File("data/I-Code_SC.csv");

This is working fine when i run from Eclispe Development environment.
But when i create a jar file it gives a expection saying file not found.

How to retify this.

Thnx
Neel
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 30 2006
Added on Apr 28 2006
4 comments
2,902 views