Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to output all classes including the SWT binary into a single JAR?
How to output all classes including the SWT binary into a single JAR? [message #445103] Tue, 26 October 2004 05:08 Go to next message
Eclipse UserFriend
Hi,

I have developed an applications which use SWT (developed using the VE)

I would like to know how can I JAR the whole package (including the SWT
binary) into a single JAR?

or it is possible?

Thanks in advance
Re: How to output all classes including the SWT binary into a single JAR? [message #445141 is a reply to message #445103] Tue, 26 October 2004 14:05 Go to previous messageGo to next message
Eclipse UserFriend
Placing the DLL inside the JAR package won't work, unfortunately.


"Crystal" <cys02@nospam.com> wrote in message
news:cll3rm$sir$2@eclipse.org...
> Hi,
>
> I have developed an applications which use SWT (developed using the VE)
>
> I would like to know how can I JAR the whole package (including the SWT
> binary) into a single JAR?
>
> or it is possible?
>
> Thanks in advance
Re: How to output all classes including the SWT binary into a single JAR? [message #445146 is a reply to message #445141] Tue, 26 October 2004 22:34 Go to previous messageGo to next message
Eclipse UserFriend
Hi

from this link,
http://www-106.ibm.com/developerworks/opensource/library/os- jws/

they seems to package the dll inside the JAR, aren't they?

But I cannot make it success...

Thanks anyway


Ivan Markov wrote:

> Placing the DLL inside the JAR package won't work, unfortunately.
>
>
> "Crystal" <cys02@nospam.com> wrote in message
> news:cll3rm$sir$2@eclipse.org...
>
>>Hi,
>>
>>I have developed an applications which use SWT (developed using the VE)
>>
>>I would like to know how can I JAR the whole package (including the SWT
>>binary) into a single JAR?
>>
>>or it is possible?
>>
>>Thanks in advance
>
>
>
Re: How to output all classes including the SWT binary into a single JAR? [message #445148 is a reply to message #445146] Wed, 27 October 2004 02:05 Go to previous messageGo to next message
Eclipse UserFriend
Afaik the only way would be to place the DLLs inside the Jar, copy them
from there to the java.library.path directory on startup and then launch
the SWT application.

> Hi

> from this link,
> http://www-106.ibm.com/developerworks/opensource/library/os- jws/

> they seems to package the dll inside the JAR, aren't they?

> But I cannot make it success...

> Thanks anyway


> Ivan Markov wrote:

> > Placing the DLL inside the JAR package won't work, unfortunately.
> >
> >
> > "Crystal" <cys02@nospam.com> wrote in message
> > news:cll3rm$sir$2@eclipse.org...
> >
> >>Hi,
> >>
> >>I have developed an applications which use SWT (developed using the VE)
> >>
> >>I would like to know how can I JAR the whole package (including the SWT
> >>binary) into a single JAR?
> >>
> >>or it is possible?
> >>
> >>Thanks in advance
> >
> >
> >
Re: How to output all classes including the SWT binary into a single JAR? [message #445150 is a reply to message #445103] Wed, 27 October 2004 06:11 Go to previous messageGo to next message
Eclipse UserFriend
Crystal wrote:
> Hi,
>
> I have developed an applications which use SWT (developed using the VE)
>
> I would like to know how can I JAR the whole package (including the SWT
> binary) into a single JAR?
>
> or it is possible?

Probably not, but you might be able to compile the
whole package into a win32 or linux executable with
Excelsior JET (http://www.excelsior-usa.com)

Paul Singleton
Re: How to output all classes including the SWT binary into a single JAR? [message #445172 is a reply to message #445146] Wed, 27 October 2004 06:46 Go to previous messageGo to next message
Eclipse UserFriend
The link you supplied talks about Java Web Start and the JAR archive they
refer to is a Java Web start archive, which has nothing to do with the
regular Java JAR archives you put on the classpath.



"Crystal" <cys02@nospam.com> wrote in message
news:cln15d$l7c$1@eclipse.org...
> Hi
>
> from this link,
> http://www-106.ibm.com/developerworks/opensource/library/os- jws/
>
> they seems to package the dll inside the JAR, aren't they?
>
> But I cannot make it success...
>
> Thanks anyway
>
>
> Ivan Markov wrote:
>
> > Placing the DLL inside the JAR package won't work, unfortunately.
> >
> >
> > "Crystal" <cys02@nospam.com> wrote in message
> > news:cll3rm$sir$2@eclipse.org...
> >
> >>Hi,
> >>
> >>I have developed an applications which use SWT (developed using the VE)
> >>
> >>I would like to know how can I JAR the whole package (including the SWT
> >>binary) into a single JAR?
> >>
> >>or it is possible?
> >>
> >>Thanks in advance
> >
> >
> >
Re: How to output all classes including the SWT binary into a single JAR? [message #445177 is a reply to message #445148] Wed, 27 October 2004 10:27 Go to previous message
Eclipse UserFriend
I have done this by putting the dll into a jar file called
swt-win32-3063.jar. Let's say this is at
http://mylibraries.com/swt-win32-3063.jar.
Then I can get the resource swt-win32-3063.dll (base name gotten from jar
file name) and copy to a local file; then call LoadLibrary on that file.

Benjamin Pasero wrote:

> Afaik the only way would be to place the DLLs inside the Jar, copy them
> from there to the java.library.path directory on startup and then launch
> the SWT application.

> > Hi

> > from this link,
> > http://www-106.ibm.com/developerworks/opensource/library/os- jws/

> > they seems to package the dll inside the JAR, aren't they?

> > But I cannot make it success...

> > Thanks anyway


> > Ivan Markov wrote:

> > > Placing the DLL inside the JAR package won't work, unfortunately.
> > >
> > >
> > > "Crystal" <cys02@nospam.com> wrote in message
> > > news:cll3rm$sir$2@eclipse.org...
> > >
> > >>Hi,
> > >>
> > >>I have developed an applications which use SWT (developed using the VE)
> > >>
> > >>I would like to know how can I JAR the whole package (including the SWT
> > >>binary) into a single JAR?
> > >>
> > >>or it is possible?
> > >>
> > >>Thanks in advance
> > >
> > >
> > >
Previous Topic:Column widths in two tables
Next Topic:Capturing key event F5 in TabFolder
Goto Forum:
  


Current Time: Sat Jul 05 03:25:15 EDT 2025

Powered by FUDForum. Page generated in 0.06839 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top