Posted By:
Andreas_Nauerz
Posted On:
Friday, August 2, 2002 01:41 PM
Hi, I am (still) fighting :-) against ANT under Eclipse. I have a project structure like this: /project/de/test/src/... (with sourcefiles) /project/de/test/lib/... (with external packages) /project/de/test/images/ (with ome gif images) /project/de/test/sounds/ (with some au sounds) /project/de/test/help/... (with help html files) I have build a JAR files with ANT using this build.xml: <?xml version="1.0"?> build and deploy -->
More>>
Hi,
I am (still) fighting :-) against ANT under Eclipse.
I have a project structure like this:
/project/de/test/src/... (with sourcefiles)
/project/de/test/lib/... (with external packages)
/project/de/test/images/ (with ome gif images)
/project/de/test/sounds/ (with some au sounds)
/project/de/test/help/... (with help html files)
I have build a JAR files with ANT using this build.xml:
<?xml version="1.0"?>
I also get a output with the structure I want or at least I think I want, but when executing I get error messages when the files in images, sounds or help are accessed. Everything else is working fine. Only the files in these dirs cannot be accessed, so I have no sound or pictures in my program anymore.
I access the images for example with a code like this:
File file = new File(Constants.ODT_PICTURE);
ivjIconLabel_Picture.setIcon(new javax.swing.ImageIcon(file.getAbsoluteFile().toURL()));
Where the constants thing is some String like:
public static final String ODT_PICTURE = "images/OneDtappingA.gif";
Any ideas ?
<<Less