Re: Giving an application a window icon in a sensible way



On Tue, 21 Nov 2006 14:32:55 -0000, Twisted <twisted0n3@xxxxxxxxx> wrote:

Ian Wilson wrote:
You must be aware that Eclipse has a wizard for creating Jars. I find it
a lot less complex than your method of encoding image data within
class files seems.

Create a jar every edit-test-debug cycle? That adds up when you are
rapidly tweaking and adjusting something. As opposed to something you
can just "set and forget".

It should take less than a second to create a JAR file, unless you have hundreds of classes in it or a very slow machine. It should also be trivial to make it part of the automated build process even if you are not using Ant.

One advantage of building the JAR every time is that you will be testing the build that you will eventually deploy, rather than running from a classes directory that won't be deployed. With a JAR file you don't have to worry about setting a classpath to run your program and both the main class and any dependent JAR files can be specified in the manifest.

The problem I see with your approach is there is a lot more work if you want to change the image. This might not be a problem right now but is something to keep in mind.

Dan.

--
Daniel Dyer
http://www.uncommons.org
.



Relevant Pages

  • Re: jar files and CLASSPATH
    ... > Are the third-party classes included into the foo.jar? ... When you run a jar file, ... CLASSPATH is used to point to the classes needed -- either in *.class files ...
    (comp.lang.java.developer)
  • Re: how to make java application executable (exe)
    ... The JAR file can be placed anywhere at all, ... Sorry Oliver but the manifest file is not automatically generated into the jar file using the export. ... You shouldn't need to select the generated .class files; rather, you select the .java files, and the corresponding class files will get exported. ... I won't comment on "Export class files with compile errors" because if it actually matters, you should be thinking long and hard about why you're exporting a project which has compile errors. ...
    (comp.lang.java.help)
  • Re: How to create a JAR that contains only the class files needed
    ... Kuki Szabolcs wrote: ... I even have it clean up the class files ... Knute Johnson ... Then rebuild the jar file with only that list of file. ...
    (comp.lang.java.programmer)
  • Re: Mark Daniel and/or Hein van den Huevel or anyone really
    ... The funny thing is I tried giving the Object Tag a FTP URL instead of HTTP ... the .class files, going back to http, and IE appears to be sated. ... persist with the JAR file for hopefully more reasonable browsers and script ...
    (comp.os.vms)