Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Deploy an SWT app(Can I fit it in just one .jar?)
Deploy an SWT app [message #511795] Tue, 02 February 2010 22:05 Go to next message
Brad Larson is currently offline Brad LarsonFriend
Messages: 2
Registered: February 2010
Junior Member
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 15:02 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
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
Previous Topic:how to export images into a product?
Next Topic:Awkward thing happens when I call shell.open() on a certain computer
Goto Forum:
  


Current Time: Fri Dec 06 04:56:59 GMT 2024

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

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

Back to the top