Re: Newbie - JAR question



Lee A. Wentzel wrote:
On Thu, 30 Aug 2007 16:45:27 +0000, Andrew Thompson wrote:

So are we referring to 'swing.jar', or 'swing-layout-1.0.jar' or
something else entirely? Please do not 'paraphrase' names when posting
questions to groups, or you waste your time, and our bandwidth.

Sorry. Not "swing.jar" but rather "swing-layout-1.0.jar". I am getting the examples from Sun's website. I'm just trying to understand the inner workings. Of a JAR file.

If I look in the "swing-layout-1.0.jar" there are two directories. One which is "META-INF" and the other is named "org". In the "org" directory is the "jdesktop" directory. In it, is "layout", finally in "layout" there are a whole bunch of files.

I have seen JAR files out there that don't require library folders or other things that aren't already included in the initial JAR. That is what I am hoping to figure out how to do. Thank you.

If your layout JAR is in the same directory as your custom JAR, the custom JAR just has to specify the layout JAR in its manifest's Class-Path attribute.

--
Lew
.



Relevant Pages

  • Re: How to update a jar file for one source file change?
    ... I'm new to java, so, I may get terminilogy wrong, bear with me. ... we've got a BIG jar file that includes thousands of classes. ... updated java source code was not being used. ...
    (comp.lang.java.programmer)
  • Re: App running from JAR cant find files
    ... I actually didn't include the html files in the Jar by mistake. ... Notice that you're not using getResource() in the ImageIcon ... getResource, on the other hand, is looking in the jar file. ...
    (comp.lang.java.help)
  • Re: Unable to run a Java jar on iSeries(AS/400) using command JAVA
    ... Have you tried using the Jar files on a PC? ... If the class name is com.myco.MyClass, the class file must be located at "com/myco/MyClass.class", and EXACTLY that name must be in the Jar file. ... We have to run Java programs on AS/400 and we would prefer to run it ... directly on the system with command JAVA. ...
    (comp.sys.ibm.as400.misc)
  • Re: Creating Jar files
    ... bit confused as to how to go about creating an executable jar file of my application. ... Does this mean that all I have to do is include these jar files in with my class files when creating my jar file or have I misunderstood this? ... The users JVM will search the user's class path to try to find the Xerces JAR, and if it's not there, the users JVM will throw a ClassNotFoundException. ...
    (comp.lang.java.help)
  • Re: Java kxml
    ... The compiler is telling you that the package that ... that the jar is in the CLASSPATH, check manually, by ... opening the jar or directory structure to ensure that the package does ... I have also had problems in the past where the JAR file ...
    (comp.lang.java.help)