Incorporating data files into packages and accessing internally
- From: Todd <todd.heidenthal@xxxxxxxx>
- Date: Tue, 31 Jul 2007 13:42:56 -0700
Hello,
I hope that I am not posting to an inappropriate group with these
questions. If I am and you have the name of another more appropriate
group, please let me know of that group and I will repost.
Anyway, I have developed a small Mercator projection class. I also
have data files with coastal data so that I can get a pretty little
map of the Earth.
What I want to do is include the coastal data files into the package
that I have my Earth class in, so that when I jar up the whole thing,
the data is included with the jar. Do I just create a folder within
my structure that holds the data files and then jar in the normal
manner? (BTW, I am using NetBeans).
Furthermore, I would like to be able to open and read the contents of
the data files within the package without having to know its path on
the disk. I would like to think that I can access a data file within
a package in a manner similar to accessing another class in the
package. If so, how do I do this?
I have played with this for several hours with no luck, so I
appreciate any help that you may have.
Todd
.
- Follow-Ups:
- Re: Incorporating data files into packages and accessing internally
- From: Roedy Green
- Re: Incorporating data files into packages and accessing internally
- From: Philipp Taprogge
- Re: Incorporating data files into packages and accessing internally
- Prev by Date: OT. RSS feed.
- Next by Date: Re: Generate serialVersionUID in Eclipse for serializable object
- Previous by thread: OT. RSS feed.
- Next by thread: Re: Incorporating data files into packages and accessing internally
- Index(es):
Relevant Pages
|