M
mathieu
Hi there
I am reading:
http://java.sun.com/docs/books/tutorial/deployment/jar/appman.html
But I still do not understand how to write my Manifest.txt file. In
the end I am getting the following jar file:
$ jar tvf /usr/lib/DICOMscope.jar | grep DICOMscope.class
7272 Mon Dec 29 12:17:44 CET 2008 DICOMscope/DICOMscope/
DICOMscope.class
$ cat DICOMscope.java
package DICOMscope
....
public class DICOMscope extends JFrame implements MainListener
{
public static void main (String[] args)
{
}
}
Compilation line:
$ javac -classpath . -d ../DICOMscope DICOMscope.java
$ cd ../
$ jar cfm DICOMscope.jar Manifest.txt DICOMscope/
How do I say the main function is in class DICOMscope (I do not
understand why my jar file has two levels of DICOMscope).
Thanks.
I am reading:
http://java.sun.com/docs/books/tutorial/deployment/jar/appman.html
But I still do not understand how to write my Manifest.txt file. In
the end I am getting the following jar file:
$ jar tvf /usr/lib/DICOMscope.jar | grep DICOMscope.class
7272 Mon Dec 29 12:17:44 CET 2008 DICOMscope/DICOMscope/
DICOMscope.class
$ cat DICOMscope.java
package DICOMscope
....
public class DICOMscope extends JFrame implements MainListener
{
public static void main (String[] args)
{
}
}
Compilation line:
$ javac -classpath . -d ../DICOMscope DICOMscope.java
$ cd ../
$ jar cfm DICOMscope.jar Manifest.txt DICOMscope/
How do I say the main function is in class DICOMscope (I do not
understand why my jar file has two levels of DICOMscope).
Thanks.