Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT and JWS with HP-UX motif?
SWT and JWS with HP-UX motif? [message #459772] Tue, 16 August 2005 08:13 Go to next message
Andreas Niemeyer is currently offline Andreas NiemeyerFriend
Messages: 40
Registered: July 2009
Member
Hi

I would like to distribute an swt application about jnlp.

We have some HP-UX workstations motif based with mozilla and plan to
change our distribution concept.

I found a note that since version 2.1 motif isn't supported?!

http://dev.eclipse.org/viewcvs/index.cgi/*checkout*/platform -swt-home/faq.html?rev=1.140#javawebstart

NOTE: As of 2.1, SWT Java Web Start apps can only be deployed on Windows
and GTK.



Is that true? Are there a workaround exists?

Best regards,
Andreas
Re: SWT and JWS with HP-UX motif? [message #459792 is a reply to message #459772] Wed, 17 August 2005 06:34 Go to previous messageGo to next message
Andreas Niemeyer is currently offline Andreas NiemeyerFriend
Messages: 40
Registered: July 2009
Member
Hi all!

....ok, what I have found was a similar situation for OS X, how to thread
to run a patched java_swt instead of the java launcher (snip block
below).

Before I start and try to type a wrapper class, I would like to know
what potential problems might occur. Therefore some questions and I
hope, someone could point me to get a workaround.

If a wrapper class is to defined which has to launch the SWT program
about a system call, all vm args, program args and the classpathes needs
to pass through.

To understand the launching order, first javws is launched and calls the
regular java on the system and provide the environment for that?

What is about security, if the wrapper itself and the SWT program in
order take use of system resources? Has the regular java launcher
problems to read the signed jars?


Many thanks for some hints!

Cheers,
Andreas N.





<snip>
Dane Summers wrote:

> I've done a little snooping and learned that SWT and webstart do not
appear to work at all on Mac OS X, because you cannot specify that the
webstart launcher user the 'java_swt' hacked launcher instead of 'java'.
>
> Does anybody know of any workarounds for this?


The ugly hack I ended up doing was to make a jar which contained a .zip
of the self-contained application bundle and a small .class to unzip and
run it. Oooogly, but it does run functionally when a Mac user clicks the
web start icon. You do end up with double dock icons and generally
startup feels non-native.

If you don't need WebStart specifically, in general I'd recommend
packaging a Mac version as an application bundle in a .dmg disk image,
the same way most downloadable Mac software is packaged. Unfortunately
you can only build a .dmg on Mac OS X, but a .zip file will often be
good enough if you need to do automated builds from another OS.

When making your .zip (or extracting one from Java code) be sure to set
the executable bit on java_swt (this can be done in Ant by fiddling with
the zipfile task).

-- brion vibber (brion @ pobox.com)

</snip>




Andreas Niemeyer wrote:
> Hi
>
> I would like to distribute an swt application about jnlp.
>
> We have some HP-UX workstations motif based with mozilla and plan to
> change our distribution concept.
>
> I found a note that since version 2.1 motif isn't supported?!
>
> http://dev.eclipse.org/viewcvs/index.cgi/*checkout*/platform -swt-home/faq.html?rev=1.140#javawebstart
>
>
> NOTE: As of 2.1, SWT Java Web Start apps can only be deployed on Windows
> and GTK.
>
>
>
> Is that true? Are there a workaround exists?
>
> Best regards,
> Andreas
Re: SWT and Java Web Start under Motif for Solaris and HP-UX ? [message #460320 is a reply to message #459792] Wed, 24 August 2005 08:43 Go to previous messageGo to next message
Andreas Niemeyer is currently offline Andreas NiemeyerFriend
Messages: 40
Registered: July 2009
Member
Hi all!

I have posted some of my questions in a HP Dev Resource Central forum
and here are the answers from Eniac Zhang

http://devresource.hp.com/forums/thread.jspa?threadID=3721

One remaining and most important question I have:

What are the reasons for the unsupported Motif?
(The SWT FAQ only say: not supported since 2.1)

This means on Solaris and HP-UX no SWT about JWS can launched?!


Thank you for answers,
ANdreas


Andreas Niemeyer wrote:
> Hi all!
>
> ...ok, what I have found was a similar situation for OS X, how to thread
> to run a patched java_swt instead of the java launcher (snip block
> below).
>
> Before I start and try to type a wrapper class, I would like to know
> what potential problems might occur. Therefore some questions and I
> hope, someone could point me to get a workaround.
>
> If a wrapper class is to defined which has to launch the SWT program
> about a system call, all vm args, program args and the classpathes needs
> to pass through.
>
> To understand the launching order, first javws is launched and calls the
> regular java on the system and provide the environment for that?
>
> What is about security, if the wrapper itself and the SWT program in
> order take use of system resources? Has the regular java launcher
> problems to read the signed jars?
>
>
> Many thanks for some hints!
>
> Cheers,
> Andreas N.
>
>
>
>
>
> <snip>
> Dane Summers wrote:
>
> > I've done a little snooping and learned that SWT and webstart do not
> appear to work at all on Mac OS X, because you cannot specify that the
> webstart launcher user the 'java_swt' hacked launcher instead of 'java'.
> >
> > Does anybody know of any workarounds for this?
>
>
> The ugly hack I ended up doing was to make a jar which contained a .zip
> of the self-contained application bundle and a small .class to unzip and
> run it. Oooogly, but it does run functionally when a Mac user clicks the
> web start icon. You do end up with double dock icons and generally
> startup feels non-native.
>
> If you don't need WebStart specifically, in general I'd recommend
> packaging a Mac version as an application bundle in a .dmg disk image,
> the same way most downloadable Mac software is packaged. Unfortunately
> you can only build a .dmg on Mac OS X, but a .zip file will often be
> good enough if you need to do automated builds from another OS.
>
> When making your .zip (or extracting one from Java code) be sure to set
> the executable bit on java_swt (this can be done in Ant by fiddling with
> the zipfile task).
>
> -- brion vibber (brion @ pobox.com)
>
> </snip>
>
>
>
>
> Andreas Niemeyer wrote:
>
>> Hi
>>
>> I would like to distribute an swt application about jnlp.
>>
>> We have some HP-UX workstations motif based with mozilla and plan to
>> change our distribution concept.
>>
>> I found a note that since version 2.1 motif isn't supported?!
>>
>> http://dev.eclipse.org/viewcvs/index.cgi/*checkout*/platform -swt-home/faq.html?rev=1.140#javawebstart
>>
>>
>> NOTE: As of 2.1, SWT Java Web Start apps can only be deployed on
>> Windows and GTK.
>>
>>
>>
>> Is that true? Are there a workaround exists?
>>
>> Best regards,
>> Andreas
Re: SWT and Java Web Start under Motif for Solaris and HP-UX ? [message #460373 is a reply to message #460320] Wed, 24 August 2005 13:38 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Andreas,

I think the FAQ entry is slightly misleading in two ways:

1. "As of 2.1" is not meant to imply that this worked previous to 2.1 and
then stopped working. I believe that this entry was added to the FAQ in the
2.1 timeframe, with the hope that it would be resolved in a future version.

2. The problem as I remember it was caused by SWT and AWT (AWT is used by
the JWS mechanism) attempting to access the same motif libraries on linux
simultaneously, and there being a resulting synchronization problem. I'm
not sure if this was ever actually tried on the other motif platforms
though, so if the ones you care about are hpux and solaris then it is worth
giving them a quick try.

Grant

"Andreas Niemeyer" <andreas.niemeyer@gutzmann.com> wrote in message
news:dehbvk$oik$1@news.eclipse.org...
> Hi all!
>
> I have posted some of my questions in a HP Dev Resource Central forum
> and here are the answers from Eniac Zhang
>
> http://devresource.hp.com/forums/thread.jspa?threadID=3721
>
> One remaining and most important question I have:
>
> What are the reasons for the unsupported Motif?
> (The SWT FAQ only say: not supported since 2.1)
>
> This means on Solaris and HP-UX no SWT about JWS can launched?!
>
>
> Thank you for answers,
> ANdreas
>
>
> Andreas Niemeyer wrote:
> > Hi all!
> >
> > ...ok, what I have found was a similar situation for OS X, how to thread
> > to run a patched java_swt instead of the java launcher (snip block
> > below).
> >
> > Before I start and try to type a wrapper class, I would like to know
> > what potential problems might occur. Therefore some questions and I
> > hope, someone could point me to get a workaround.
> >
> > If a wrapper class is to defined which has to launch the SWT program
> > about a system call, all vm args, program args and the classpathes needs
> > to pass through.
> >
> > To understand the launching order, first javws is launched and calls the
> > regular java on the system and provide the environment for that?
> >
> > What is about security, if the wrapper itself and the SWT program in
> > order take use of system resources? Has the regular java launcher
> > problems to read the signed jars?
> >
> >
> > Many thanks for some hints!
> >
> > Cheers,
> > Andreas N.
> >
> >
> >
> >
> >
> > <snip>
> > Dane Summers wrote:
> >
> > > I've done a little snooping and learned that SWT and webstart do not
> > appear to work at all on Mac OS X, because you cannot specify that the
> > webstart launcher user the 'java_swt' hacked launcher instead of 'java'.
> > >
> > > Does anybody know of any workarounds for this?
> >
> >
> > The ugly hack I ended up doing was to make a jar which contained a .zip
> > of the self-contained application bundle and a small .class to unzip and
> > run it. Oooogly, but it does run functionally when a Mac user clicks the
> > web start icon. You do end up with double dock icons and generally
> > startup feels non-native.
> >
> > If you don't need WebStart specifically, in general I'd recommend
> > packaging a Mac version as an application bundle in a .dmg disk image,
> > the same way most downloadable Mac software is packaged. Unfortunately
> > you can only build a .dmg on Mac OS X, but a .zip file will often be
> > good enough if you need to do automated builds from another OS.
> >
> > When making your .zip (or extracting one from Java code) be sure to set
> > the executable bit on java_swt (this can be done in Ant by fiddling with
> > the zipfile task).
> >
> > -- brion vibber (brion @ pobox.com)
> >
> > </snip>
> >
> >
> >
> >
> > Andreas Niemeyer wrote:
> >
> >> Hi
> >>
> >> I would like to distribute an swt application about jnlp.
> >>
> >> We have some HP-UX workstations motif based with mozilla and plan to
> >> change our distribution concept.
> >>
> >> I found a note that since version 2.1 motif isn't supported?!
> >>
> >>
http://dev.eclipse.org/viewcvs/index.cgi/*checkout*/platform -swt-home/faq.html?rev=1.140#javawebstart
> >>
> >>
> >> NOTE: As of 2.1, SWT Java Web Start apps can only be deployed on
> >> Windows and GTK.
> >>
> >>
> >>
> >> Is that true? Are there a workaround exists?
> >>
> >> Best regards,
> >> Andreas
Previous Topic:Showing ProgressBar after hiding it does not work
Next Topic:serialize Image
Goto Forum:
  


Current Time: Thu Apr 25 07:21:20 GMT 2024

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

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

Back to the top