Re: Making a Jar for a launchable Swing app

2008-04-14 Thread Lally Singh
Yeah, I follow you. I ended up using the reference info on the jar-with-deps plugin to build the assembly file. The paths are netbeans' default, not mine. Their otherwise-decent tools create them in those places automatically. No point in fighting the system that hard. On Mon, Apr 14, 2008 at

Re: Making a Jar for a launchable Swing app

2008-04-14 Thread Wayne Fay
You should be able to do all of this generally with the jar-with-dependencies configuration in the assembly plugin. Looking at your assembly descriptor, your .groovy, .properties, and .png files should not be in src/main/java but rather src/main/resources. Then they would have been packaged automa

Re: Making a Jar for a launchable Swing app

2008-04-14 Thread Lally Singh
Thank you too for the quick response. Trust me, I've RTFMd for the last 4 days on this. The documentation is great if you already know what you want to do. If you don't then you spend 4 days digging, pulled along with the feeling that it's as simple as the documentation and experts imply. I got

Re: Making a Jar for a launchable Swing app

2008-04-14 Thread Manos Batsis
Lally Singh wrote: Thanks for the quick response. I tried it, but I couldn't figure out how to: 1. Get my .class files in there either. 2. Set up the manifest. Here a sample conf we use that tell the plugin to: 1: Put all class files in one jar (including classes from dependencies) 2: Set the

Re: Making a Jar for a launchable Swing app

2008-04-14 Thread Lally Singh
Thanks for the quick response. I tried it, but I couldn't figure out how to: 1. Get my .class files in there either. 2. Set up the manifest. Here's what I've got so far: dist false jar target/classes *.

Re: Making a Jar for a launchable Swing app

2008-04-14 Thread Wayne Fay
You should just use the assembly plugin directly. It can produce jars and was really created for this kind of use case. You might want to think about shading the dependency classes, too. Wayne On 4/14/08, Lally Singh <[EMAIL PROTECTED]> wrote: > Hey all, a few questions. > > I'm trying to build

Making a Jar for a launchable Swing app

2008-04-14 Thread Lally Singh
Hey all, a few questions. I'm trying to build a swing application that I can launch from java -jar. Setting Main-Class is pretty well documented from my googling. However, including .properties and a few other important file types (some groovy scripts) is troublesome. If I add any sort