Newbie - JAR question
Just created a little Java application which converts degrees Celsius to
Fahrenheit. Uses Swing. So, if I have a lib folder with the swing.jar on
my desktop it will run. I know there has got to be a way to include that
folder in the actual Jar. I've copied it into it, but it still won't
run. In the META-INF folder in the Jar, I've modified the MANIFEST.MF to
read as follows.
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Created-By: 1.5.0_09-b03 (Sun Microsystems Inc.)
Main-Class: learn.CelsiusConverterGUI
Class-Path: swing-layout-1.0.jar
X-COMMENT: Main-Class will be added automatically by build
The Class-Path use to read:
Class-Path: lib/swing-layout-1.0.jar
I am thinking I am on the right track, but it still doesn't work. Any
help would be appreciated. Thank you in advance.
Lee
.
Relevant Pages
- Re: Question on "import" directive and directory structure (also OT question on eclips
... When exporting your jar just export to your classpath default. ... you may include them in your java1.4.2/jre/lib folder. ... > Symon wrote: ... (comp.lang.java.programmer) - Re: Question on "import" directive and directory structure (also OT question on eclipse)
... Scotchy wrote: ... > folder to get the menu and choose properties. ... > When exporting your jar just export to your classpath default. ... to the binaries of some other Java apps I have on my machine. ... (comp.lang.java.programmer) - Re: How does Java Software Get Into A Cell-Phone?
... In that case I needed to use bitpm to connect to the phone to browse the phones file system and place the jar in the appropriate folder. ... This phone was a Samsung phone that only looks in a specific folder for java applications, where this folder is not accessible thru the normal samsung software thats why one has to use bitpm. ... But that is no option for me since I don't own a data flatrate nor do I want to download e.g. an 4MB jar to my phone via wap. ... (comp.lang.java.programmer) - Re: alternative ways to execute a jar application
... * puts the X.class output in this IDE console ... * placing RunXwithCMD.bat, in C folder, the X.class also in C ... I placed my jar into my java project folder ... (comp.lang.java.help) - Re: reading a file from WEB-INF?
... WEB-INF directory though they could be in a regular web folder) that I will ... ServletContext context = getServletContext; ... what happens if I deploy my final product as a jar file? ... (comp.lang.java.programmer) |
|