Deploy an SWT app [message #511795] |
Tue, 02 February 2010 17:05  |
Eclipse User |
|
|
|
Sorry if this is documented elsewhere... I promise I google'd around quite a bit.
I've written an app in SWT to run on Windows, Mac, and Linux. I'd really like to deploy with only one jar. Is that feasible? I've read through the instructions for java web start, but no dice. I need to distribute a .jar which other developers will load up on various platforms. Ideally we will check this .jar into source control, and everyone on the team will check it out.
Is there any way to distribute just one .jar for a cross-platform SWT app?
Thanks!
Brad
|
|
|
Re: Deploy an SWT app [message #512288 is a reply to message #511795] |
Thu, 04 February 2010 10:02  |
Eclipse User |
|
|
|
Hi Brad,
There isn't a way to do this automatically. You _may_ be able to accomplish
this if your app starts by detecting the platform and then using java to
extract the platform-appropriate swt jar somewhere on your file system. The
only problem is that the extracted jar will not be on your classpath.
Perhaps you could then launch a second app within your jar (ie.- your main
app) and include the extracted swt jar on the classpath? I haven't tried
this before, so there could be a roadblock along the way, but it shouldn't
take too long to determine whether this is the case.
HTH,
Grant
"Brad Larson" <bklarson@gmail.com> wrote in message
news:hka7im$c38$1@build.eclipse.org...
> Sorry if this is documented elsewhere... I promise I google'd around quite
a bit.
>
> I've written an app in SWT to run on Windows, Mac, and Linux. I'd really
like to deploy with only one jar. Is that feasible? I've read through the
instructions for java web start, but no dice. I need to distribute a .jar
which other developers will load up on various platforms. Ideally we will
check this .jar into source control, and everyone on the team will check it
out.
>
> Is there any way to distribute just one .jar for a cross-platform SWT app?
>
> Thanks!
> Brad
|
|
|
Powered by
FUDForum. Page generated in 0.19497 seconds