| Author |
Writing Manifest file for jar
|
|
|
| Hi,
I have a project which i wanted to jar it. I wanted to make a jar
file of all the files inside the project. My problem is i have no main
class in the project as it is directly invoked by eclipse when it is
run. I tried creating jar using the eclipse IDE but it gives the error
as no main class found. When i searched over the forums the answer i
got is give jar the manifest file specifying the main class of the
project. But my main class doensnt have public static void main
method.Is the jar file searching for something like this?If not then
please let me know how could i build a jar for my project.
Thanks & Regards,
Ram
| |
| Knute Johnson 2008-02-19, 10:22 pm |
| ram wrote:
> Hi,
>
> I have a project which i wanted to jar it. I wanted to make a jar
> file of all the files inside the project. My problem is i have no main
> class in the project as it is directly invoked by eclipse when it is
> run. I tried creating jar using the eclipse IDE but it gives the error
> as no main class found. When i searched over the forums the answer i
> got is give jar the manifest file specifying the main class of the
> project. But my main class doensnt have public static void main
> method.Is the jar file searching for something like this?If not then
> please let me know how could i build a jar for my project.
>
> Thanks & Regards,
> Ram
Just create a main() method and use that as the entry point. Is this a
Swing application? Remember that you need to create the GUI on the EDT.
If you are using 1.6 you can specify an entry point with the jar
program. If you have other required jars then they need to be listed in
the manifest classpath.
--
Knute Johnson
email s/nospam/knute/
--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDem
| |
| Roedy Green 2008-02-19, 10:22 pm |
| On Tue, 19 Feb 2008 10:30:12 -0800 (PST), ram <rambhavaraju@gmail.com>
wrote, quoted or indirectly quoted someone who said :
>If not then
>please let me know how could i build a jar for my project.
you can use Jar.exe see http://mindprod.com/jgloss/jarexe.html
or your can use the jar classes and do in programmatically.
See http://mindprod.com/jgloss/jar.html
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
| |
|
|
|
|
|
|