Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 09:08 Go to next message
Crystal is currently offline CrystalFriend
Messages: 3
Registered: July 2009
Junior Member
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 18:05 Go to previous messageGo to next message
Ivan Markov is currently offline Ivan MarkovFriend
Messages: 61
Registered: July 2009
Member
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] Wed, 27 October 2004 02:34 Go to previous messageGo to next message
Crystal is currently offline CrystalFriend
Messages: 3
Registered: July 2009
Junior Member
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 06:05 Go to previous messageGo to next message
Benjamin Pasero is currently offline Benjamin PaseroFriend
Messages: 337
Registered: July 2009
Senior Member
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 10:11 Go to previous messageGo to next message
Paul Singleton is currently offline Paul SingletonFriend
Messages: 37
Registered: July 2009
Member
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 10:46 Go to previous messageGo to next message
Ivan Markov is currently offline Ivan MarkovFriend
Messages: 61
Registered: July 2009
Member
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 14:27 Go to previous message
Geoffrey Ritchey is currently offline Geoffrey RitcheyFriend
Messages: 42
Registered: July 2009
Member
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 Oct 24 17:30:32 GMT 2020

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

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

Back to the top