RE: How to integrate a resource file into the final JAR

2024-06-24 Thread Joseph Huber
ate a resource file into the final JAR You don't often get email from ulf.zi...@cosoco.de<mailto:ulf.zi...@cosoco.de>. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification> Hi Stephen, thanks for your inspiration. I'm using an ANT project. I never manag

Re: How to integrate a resource file into the final JAR

2024-06-23 Thread Stephen Parry
I moved to Maven a couple if years ago - it really is pretty painless and the benefits vastly outweigh the learning curve, especially when it comes to importing libraries into your project. On 23 June 2024 19:05:33 BST, Ulf Zibis wrote: >Hi Stephen, > >thanks for your inspiration. > >I'm using

Re: How to integrate a resource file into the final JAR

2024-06-23 Thread Ulf Zibis
Hi Stephen, thanks for your inspiration. I'm using an ANT project. I never managed how to go with Maven. So my file structure is: Project + src   + Java ... + test   + Java ... + resources   + Palm8BitColors.pal + TestData + ... So you mean, that I should move the resource file into the src

Re: How to integrate a resource file into the final JAR

2024-06-23 Thread Stephen G. Parry
Are you using a Java with Maven project? Assuming so, the process for what you are asking is a two step one: 1) Ensure the files you wish to access are located under the src/main/resources folder as shown here: https://i0.wp.com/www.dineshonjava.com/wp-content/uploads/2016/10/Maven-dirctory-struc