Jeff McAffer
unread,Dec 1, 2008, 8:36:14 PM12/1/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to geocraft-user@googlegroups.com >> GeoCraft User Group
Hey Yonghe,
Is the problem finding the file? Typically this happens when people are
expecting the XML file to be located somewhere specific and are using
File IO. The other typical problem relates to resource lookup. If you
are using Classloader.getResource() etc then you have to ensure that the
logical package that contains the needed file is available on the
classpath of the bundle looking it up. Finally, if you are packaging a
bundle that has the file in it, perhaps the build.properties does not
have the file on the bin.includes line so when you build it is not
included in the built bundle.
Short answer is, yes, you should be able to write one class that does
all the parsing both inside and outside Equinox.
Jeff
Yonghe wrote:
> Hi Jeff and Chris,
>
> I have a xml file that is used by a standalone java application, which
> is actually a server. The clients of the server run in a Eclipse
> bundle. I can load the file in the server. However, the file cannot be
> found by the clients that is in a Eclipse bundle. Could I load the
> file in both a standalone java application and a eclipse bundle by a
> same class? or i have to write two different classes, one for server
> and one another one for the clients, to load the file?
>
> Thanks,
>
> Yonghe
> >
>
</div>