Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2007

Tip: Looking for answers? Try searching our database.

jogl

Thread view: 
ivan danicic - 15 Feb 2007 11:56 GMT
Hello All, in order to write an applet using JOGL I need a *SIMPLE* example
using no special libraries etc. Would some kind person please supply one.
I can write JOGL non applet programs.
Ivan
Andrew Thompson - 15 Feb 2007 12:10 GMT
> Hello All, in order to write an applet
> using JOGL I need a *SIMPLE* example

If you want 'simple', deploy using web start.

> using no special libraries etc.

You want a 'rabbit out of the hat' with that?

>..Would some kind person please supply one.

What is your budget for this example?

Andrew T.
Chris Uppal - 15 Feb 2007 18:29 GMT
> > Hello All, in order to write an applet
> > using JOGL I need a *SIMPLE* example
[quoted text clipped - 8 lines]
>
> What is your budget for this example?

Andrew, I think you have misinterpreted the tone of the OP's request.

To the OP: but Andrew's advice to forget applets and use webstart for this is
almost certainly correct.  Personally I don't know much about JOGL (except that
it runs very badly on my machine), but it /needs/ add-on libraries and I don't
think that is (or should be) possible for an applet[*].

([*] maybe if it's signed ?  But then you are definitely not talking
'simple'...)

   -- chris
Andrew Thompson - 15 Feb 2007 19:43 GMT
On Feb 16, 5:29 am, "Chris Uppal" <chris.up...@metagnostic.REMOVE-
THIS.org> wrote:

> ...Personally I don't know much about JOGL (except that
> it runs very badly on my machine), but it /needs/ add-on libraries and I don't
> think that is (or should be) possible for an applet[*].

I managed to get JOGL running as an applet,
only after the JOGL binaries were installed,
and then only once each browser session.

The problem seemed to be that JOGL was
calling functionality that is not available
to applets (System.exit() AFAIR), failing,
and failing to clean up after itself.

Further JOGL applets (or the same page
refreshed) would have the applet fail
to start.

> ([*] maybe if it's signed ?  But then you are definitely not talking
> 'simple'...)

I tried supplying the classes and
natives to the applet, could not get
it to work, signed or otherwise.

OTOH - a web start launch is simplicity
itself.  The JOGL libs. are available
as a JWS <component-descriptor> that
the developer can simply link to from
within their own JNLP.

Andrew T.
ivan danicic - 15 Feb 2007 21:16 GMT
> On Feb 16, 5:29 am, "Chris Uppal" <chris.up...@metagnostic.REMOVE-
> THIS.org> wrote:
[quoted text clipped - 30 lines]
>
> Andrew T.
Hello, does that mean that if I have a JOGL "application" (containing a
"main()") I can get this to run in my web page? What extra work needs to be
done? Any comments gratefully received.
Ivan
Andrew Thompson - 15 Feb 2007 21:29 GMT
> Hello, does that mean that if I have a JOGL "application" (containing a
> "main()") I can get this to run in my web page?

Nothing I was talking about works 'in'
a web page.  Web start launches a free
floating frame or applet, but it can
be launched using a JNLP (web start)
file linked *from* a web page.

E.G. <http://www.physci.org/jws/#jtest>

>..What extra work needs to be
> done?

Web start can launch applets.

> ..Any comments gratefully received.

Even if they are not (what you would
consider to be) 'polite'?   ;-)

Andrew T.
Alex Hunsley - 15 Feb 2007 23:31 GMT
>> Hello, does that mean that if I have a JOGL "application" (containing a
>> "main()") I can get this to run in my web page?
[quoted text clipped - 6 lines]
>
> E.G. <http://www.physci.org/jws/#jtest>

Interesting page, thanks. JNLP isn't widely enough known about/used,
methinks.
Are you the AndrewThompson64 user you mention on your webpage above? I'm
just curious. Same name, but you talk about them in 3rd person, which
looks like it isn't you....
Andrew Thompson - 16 Feb 2007 00:13 GMT
> > E.G. <http://www.physci.org/jws/#jtest>
>
> Interesting page, thanks.

You're welcome.

>..JNLP isn't widely enough known about/used,
> methinks.

I will continue to do my bit to promote
this wonderful deployment technology, from
suggesting it every time I here the word
'applet' or any application deployment
suited to JWS, to putting up complete
examples of use of web start and the JNLP
API.

> Are you the AndrewThompson64 user you mention on your webpage above?

Yes.  I would link to my posts on usenet,
but those Sun posts are generally more
specific to web start.

>..I'm
> just curious. Same name, but you talk about them in 3rd person, which
> looks like it isn't you....

umm.. had not realised.  I was probably
just trying to get away from my excessive
use of the word 'I'.   ;-)

Andrew T.
ivan danicic - 16 Feb 2007 12:35 GMT
>> > E.G. <http://www.physci.org/jws/#jtest>
>>
[quoted text clipped - 28 lines]
>
> Andrew T.
Hello all, I still have not got an answer to my previous question: if I want
to put a java application onto my web page (for all to run) using web start
what do I need to do? Obviously this would be wonderful as I wouldn't have
to convert the application to an applet first.
Ivan
Michael Rauscher - 16 Feb 2007 12:43 GMT
> Hello all, I still have not got an answer to my previous question: if I want
> to put a java application onto my web page (for all to run) using web start
> what do I need to do? Obviously this would be wonderful as I wouldn't have
> to convert the application to an applet first.

You'd have to create a jnlp-file.

And please refrain from full-posting in the future since the reader
expects to get something from you to read and not to waste time for
searching your response.

Bye
Michael
Andrew Thompson - 16 Feb 2007 13:10 GMT
> > Hello all, I still have not got an answer to my previous question: if I want
> > to put a java application onto my web page (for all to run) using web start
> > what do I need to do?

I partly misread your earlier question..

> >..Obviously this would be wonderful as I wouldn't have
> > to convert the application to an applet first.

Aha!  I thought you were talking about
converting an applet, and I wanted to get
that sorted first.  OK..

> You'd have to create a jnlp-file.

Yep.

Now I know you are 'on board' with the
idea of launching via JWS, I hunted down
the relevant info. on my javasaver site..

Here is an example lauch file..
<http://www.javasaver.com/testjs/jws/04/glclock.jnlp>

The content of that JNLP file is..
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0"
     codebase="http://www.javasaver.com/testjs/jws/04/"
     href="glclock.jnlp">
 <information>
   <title>Preview - GLClock</title>
   <vendor>SaverBeans - JDIC</vendor>
   <description>Preview of the GLClock SaverBeans Screensaver</
description>
   <description kind='tooltip'>GLClock Preview</description>
   <icon kind="splash" href="sb-jws-splash.gif" width="450"
height="250" size="16075" />
   <icon href="smallbean-32x32.gif" width="32" height="32"
size="1044" />
   <offline-allowed/>
   <shortcut online="false">
     <!-- create desktop shortcut -->
     <desktop/>
     <menu submenu="SaverBeans Screensaver"/>
   </shortcut>
 </information>
   <resources>
     <j2se href="http://java.sun.com/products/autodl/j2se"
version="1.5+"/>
     <jar href="glclock.jar" size="4917"/>
     <jar href="saverbeans-api-dev.jar" main="true" />
     <jar href="other.zip" size="4246" />
     <extension name="jogl" href="https://jogl.dev.java.net/webstart/
jogl.jnlp" />
     <property name="jnlp.saverName" value="GLClock"/>
     <property name="jnlp.config" value="/glclock.xml"/>
   </resources>

 <application-desc main-
class="org.jdesktop.jdic.screensaver.ScreensaverFrame">
   <argument>org.jdesktop.jdic.screensaver.clock.GLClock</argument>
 </application-desc>
</jnlp>

Most of the resource mentioned there can
be seen in the directory listing for ..
<http://www.javasaver.com/testjs/jws/04/>
..they proabably amount to around 100Kb,
but the bulk of it is coming straight off
the JOGL area of the JDIC site.

Ironically, amongst all the fluff from
my site (icons and such) the smallest part
is probably the actual screensaver jar
that all this is meant to display.  The
gjclock.jar is less than 5Kb.

Note there were some package changes last
year(?) to the JOGL api., and I suspect
they must have provided a new URL for
the repackaged classes, check the JOGL/JDIC
site for latest information.

HTH

Andrew T.
Ian Wilson - 16 Feb 2007 09:54 GMT
<Andrew mentions JWS>

> Interesting page, thanks. JNLP isn't widely enough known about/used,
> methinks.

Really? Sometimes it seems to me that fully half of Andrews postings
tell folk how JWS is the solution to their problem. I find this frequent
advocacy of JWS rather hard to miss.

(the other half of Andrew's postings are admonishing spammers)

(I wouldn't be at all surprised if some postings do both :-)
Andrew Thompson - 16 Feb 2007 10:42 GMT
> <Andrew mentions JWS>
>
[quoted text clipped - 4 lines]
> tell folk how JWS is the solution to their problem. I find this frequent
> advocacy of JWS rather hard to miss.

I must admit, I am still not entirely
sure that Lex was not simply 'taking
the piss'*.

* Is that an expression known anywhere
outside Australia?  TTP -> making fun
of a person/people.

Andrew T.
Alex Hunsley - 16 Feb 2007 12:12 GMT
>> <Andrew mentions JWS>
>>
[quoted text clipped - 7 lines]
> sure that Lex was not simply 'taking
> the piss'*.

Nope, I wasn't extracting the pee-pee - I meant what I wrote.
When I said "JNLP isn't widely enough known about/used, methinks", I
meant it in a general way, and not in the context of myself, or even
this newsgroup... it's not like I've just found out about JNLP, but I've
not looked at it much before, either.
lex
Chris Uppal - 16 Feb 2007 17:53 GMT
> I must admit, I am still not entirely
> sure that Lex was not simply 'taking
[quoted text clipped - 3 lines]
> outside Australia?  TTP -> making fun
> of a person/people.

Most definitely known here in the UK.

   -- chris
Lew - 16 Feb 2007 20:46 GMT
Andrew Thompson wrote:
>> I must admit, I am still not entirely
>> sure that Lex was not simply 'taking
[quoted text clipped - 3 lines]
>> outside Australia?  TTP -> making fun
>> of a person/people.

> Most definitely known here in the UK.

In the U.S., "to take a piss" means "to urinate". There is also "to piss off",
"to anger or annoy"; "pissed", "angry", "annoyed", or less commonly, "drunk";
"a pisser", meaning in some regions, "a really good time" or "an interesting
thing"; "piss off!" as a command, "go away!"; "piss-poor", "really penurious"
or "incredibly bad"; "pissing in the wind", "engaging in futile effort";
"pissing on an electric fence", "urinating on an electric fence" (a metaphor
for innocently causing oneself pain or harm); "pissing contest", "a conflict
over an insignificant issue"; "piss test" (also "pissing in a cup", "pissing
in a jar"), "urinalysis to detect illegal substance abuse"; and likely others
with which I am not familiar. I have never encountered "taking the piss" in
U.S. parlance.

What a pisser, eh?

- Lew
Chris Uppal - 17 Feb 2007 18:11 GMT
> In the U.S., "to take a piss" means "to urinate".

"To piss" in that sense is almost certainly universal, since it pre-dates the
expansion of English across the world.

But I think the specific form "take a piss" is a US-ism.  In British English
(B.E. hereinafter) it would be "have a piss"; I don't know about the other
English speaking nations.

(BTW, when I say "British English" I mean English as I hear and see it used
today -- which is by no means representative of all British subcultures.)

> There is also "to piss off", "to anger or annoy";

Same in B.E.  But the shorter form, "pissed", meaning annoyed, is not (although
it may be creeping in).

Incidentally, I gather that in US English "ticked off"/"ticked" is roughly
equivalent to "pissed off"/"pissed" -- that /doesn't/ carry through into B.E,
where "tick off" is a verb meaning "reprimand", and "ticked" is something that
a clock has done.

> "pissed", "angry", "annoyed", or less
> commonly, "drunk";

Nearly always in B.E "pissed", as an adjective, means "drunk" (inebriated with
alcohol -- other substances/causes don't count).

> "a pisser", meaning in some regions, "a really good
> time" or "an interesting thing"

Completely unknown in B.E. (and therefore highly likely to give offence).
"Pisser" in the opposite sense, meaning some unwelcome fact or occurrence, is
creeping in (as is "bummer").

>; "piss off!" as a command, "go away!";

Common in B.E.

> "piss-poor", "really penurious" or "incredibly bad";

Reasonably common, but only as a US import (I think).

> "pissing in the wind", "engaging in futile effort";

Would have to be "pissing INTO the wind" to make sense in B.E; it's not a
common-enough phrase to have lost its roots as a pungent metaphor.

Though, now I come to think of it, I'm sure I've heard "pissing DOWN the wind"
too -- I'm not sure what special sense, if any, that has.  To me, here, today,
it seems to suggest wasteful (as distinct from futile) activity.

> "pissing on an electric fence",
> "urinating on an electric fence" (a metaphor for innocently causing
> oneself pain or harm);

Unknown in B.E, but would probably be understood as a one-off metaphor.
(Although I'm not sure that the implication of an /innocent/ mistake would come
across -- it might be understood as causing oneself harm through stupidity).

> "pissing contest", "a conflict over an
> insignificant issue";

Similar meaning in B.E.  But the sense is more of a pointless /competition/.
Usually understood as a contest where the real issue is dominance and status,
rather than the (trivial) issue which is the nominal point of the contest.  As
in masculine head-butting, or ego-driven competition between rival companies
(the name "Oracle" springs to mind ;-).

> "piss test" (also "pissing in a cup", "pissing in a
> jar"), "urinalysis to detect illegal substance abuse"; and likely others
> with which I am not familiar.

Never heard that here -- but then we don't often talk about dope tests except
in the context of professional sport (where they tend to be called just "dope
tests").

> I have never encountered "taking the piss"
> in U.S. parlance.

In B.E. it can also be used for something like "abusing the system for gain",
or "taking unfair advantage of what's offered".  The underlying sense is
"making a mockery", so it's not far off the usual meaning, but there is no
suggestion of (unkind) humour, and the tone is definitely disapproving.

A topical example: most Westerners see Japanese "research" whaling activities
as taking the piss.

   -- chris
Mark Space - 16 Feb 2007 02:25 GMT
> Hello, does that mean that if I have a JOGL "application" (containing a
> "main()") I can get this to run in my web page?

I think Andrew was trying to say "No", it doesn't work. At all.

> What extra work needs to be
> done? Any comments gratefully received.
> Ivan

From Andrew's description in the previous port, it sounds like JOGL has
serious flaws as a applet.  You'd have to do some serious debugging (and
code fixing) in the JOGL library itself.
Andrew Thompson - 16 Feb 2007 09:30 GMT
..
> > What extra work needs to be done?
..
>  From Andrew's description in the previous port, it sounds like JOGL has
> serious flaws as a applet.  You'd have to do some serious debugging (and
> code fixing) in the JOGL library itself.

Perhaps not, I was unaware of the changes
mentioned by RGB (to be honest - it had
been more than a year since I had carefully
looked at JOGL).

Andrew T.
ivan danicic - 15 Feb 2007 19:23 GMT
>> Hello All, in order to write an applet
>> using JOGL I need a *SIMPLE* example
[quoted text clipped - 10 lines]
>
> Andrew T.
Hello, No rabbit, no budget, just want a polite reply.
Ivan
RedGrittyBrick - 15 Feb 2007 22:08 GMT
> Hello All, in order to write an applet using JOGL I need a *SIMPLE* example
> using no special libraries etc. Would some kind person please supply one.
> I can write JOGL non applet programs.
> Ivan

Googling for jogl reveals

https://jogl-demos.dev.java.net/applettest.html

"The new JOGL Applet Launcher enables the creation and deployment of
applets using 3D graphics via OpenGL without requiring the applet to be
signed or performing any manual installation of software on users'
computers. It has been tested and should work on any OS/CPU combination
supported by JOGL with a Java Runtime Environment version 1.4.2 or later
installed into the web browser. Here is an example of the standard Gears
demo running as an applet:"

Not knowing jogl I have no way of telling if what the page refers to
meets your requirements of "simple" and "no special libraries" but the
wording strongly suggests that this may be the case.
Chris Uppal - 16 Feb 2007 18:01 GMT
> Googling for jogl reveals
>
[quoted text clipped - 7 lines]
> installed into the web browser. Here is an example of the standard Gears
> demo running as an applet:"

Interesting.

For me, what seems to happen is that the applet displays the usual
applet-loading screen, while it downloads something (presumably the JOGL DLL,
since it takes ages), and /then/ puts up a "do you want to trust XXX?" popup --
which I refuse (naturally).  The applet then closes down.

Ideally, I would get the trust prompt /before/ (or at least while) the long
download was happening.

I haven't yet looked to see if the DLL is still in any sort of cache anywhere
on my system (I hope not).

I would like to know what the security architecture is here.  Presumably it's
something like
   jogl itself can be downloaded (if I accept it)
   if it /has/ been downloaded then unsigned applets can use it.
If so, then I'm pretty unhappy about it.  Makes a mockery of having a security
architecture at all.

   -- chris


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.