Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (534)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  webstart problem  (Read 1646 times)
0 Members and 1 Guest are viewing this topic.
Offline MasterOfDisaster

Junior Member




O_o


« Posted 2005-02-06 09:00:48 »

hi all,

since all webstart applications have to be signed (afaik) and i use an untrusted test certificate to sign my .jar's there is this security warning popping up, when someone starts my game for the first time.
most people wet their pants when they see that
"... aplication requires unlimited access over your machine ..." warning. as a result they don't dare to execute the application.
i wonder if i can do anything against that.
i already tried to make a starter applet which opens the game window but i get a security exception. haven't found out yet what the exact problem is...

Offline oNyx

JGO Coder


Medals: 1


pixels! :x


« Reply #1 - Posted 2005-02-06 09:17:11 »

>since all webstart applications have to be signed

Only if you ask for permissions.

If you don't go fullscreen, don't read/write files, don't connect to other machines (except the server it came from), don't load native code...

...then you don't need any special permissions at all (and therefore no cert).

It's pretty much the same thing with applets.

弾幕 ☆ @mahonnaiseblog
Offline MasterOfDisaster

Junior Member




O_o


« Reply #2 - Posted 2005-02-06 10:42:26 »

well then i misunderstood keving glass' tutorial about webstart applications. he said that all used jars have to be signed.

i use the gage timer. is this what you call "loading native code"?


Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline oNyx

JGO Coder


Medals: 1


pixels! :x


« Reply #3 - Posted 2005-02-06 11:09:57 »

> i use the gage timer. is this what you call "loading native code"?

Eventually Smiley

The GAGE timer also kinda works without the dll, but the resoulution will be pretty bad then. If you want to use the dll, you'll need to sign it.

Btw 1.5 comes with build in a hi-perf timer (nanoTime).

弾幕 ☆ @mahonnaiseblog
Offline MasterOfDisaster

Junior Member




O_o


« Reply #4 - Posted 2005-02-06 12:21:45 »

i removed all the signing and stuff now and encountered a new problem.
the app cannot load the images any more and i have no idea why.
i checked the images.jar which is stored in the javaWS cache and everything looks ok.
very strange ...

Offline oNyx

JGO Coder


Medals: 1


pixels! :x


« Reply #5 - Posted 2005-02-06 12:27:13 »

> the app cannot load the images any more and i have no idea why.

Me neither.

But that's because I can't know why Tongue

So... how do you load em?

弾幕 ☆ @mahonnaiseblog
Offline MasterOfDisaster

Junior Member




O_o


« Reply #6 - Posted 2005-02-06 12:34:27 »

i think it was related to this one:
http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=2D;action=display;num=1103276803

anyway, now the image loading doesn't throw an exception anymore. instead the game window appears and then the window closes itself without saying me what the problem was.  Huh
i will post more info as soon as i have more logs ...

Offline MasterOfDisaster

Junior Member




O_o


« Reply #7 - Posted 2005-02-06 12:41:43 »

strange....
now it works. i noticed two things:
1.) the window has now a "status line" with the text "Java Application Window". very beautiful ... :-/
2.) the timing is completely f**ked up.
fps=170 => game is unplayable.
but we all know that this is because the gage timer is now no longer working.

aaah, i love it! Sad

i assume the solutions is to completely remove the gage timer and require java version 1.5, right?

Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #8 - Posted 2005-02-06 12:50:53 »

Quote
i assume the solutions is to completely remove the gage timer and require java version 1.5, right?


Actually, if you require 1.5, then GAGETimer doesn't need the DLL. It uses the Nanotimer automatically. :-)

Java Game Console Project
Last Journal Entry: 12/17/04
Offline MasterOfDisaster

Junior Member




O_o


« Reply #9 - Posted 2005-02-06 13:02:41 »

just upgraded to 1.5. timing is working properly now.
but something happened to the sound playback!
i only hear the background sound playing. the sound fx are not played anymore.

man, i didn't think that there are so many consequences when you want an unsigned webstart application.

ok, the image problem wasn't directly related to the signing thing, but the sound problem seems to be.

do you know of any sound changes/bugs in 1.5?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline tom
« Reply #10 - Posted 2005-02-06 13:21:03 »

Have a look at this thread: [1.5.0]sampled stuff isn't working anymore

Offline oNyx

JGO Coder


Medals: 1


pixels! :x


« Reply #11 - Posted 2005-02-06 13:21:30 »

>the image problem wasn't directly related to the signing
>thing, but the sound problem seems to be.

No. 1.5's sound behaves a bit different. You need to select the software mixer (1.4's default) in order to get it working.

Over at the sound forum is a thread (started by me)... there you can find some code snippets.

弾幕 ☆ @mahonnaiseblog
Offline MasterOfDisaster

Junior Member




O_o


« Reply #12 - Posted 2005-02-06 13:35:47 »

thx. i already discovered the sound thread where possible solutions are shown.


Offline javatypo

Junior Member





« Reply #13 - Posted 2005-02-22 20:20:08 »

Quote
>since all webstart applications have to be signed

Only if you ask for permissions.

If you don't go fullscreen, don't read/write files, don't connect to other machines (except the server it came from), don't load native code...

...then you don't need any special permissions at all (and therefore no cert).

It's pretty much the same thing with applets.



what the? really? i thought webstart allowed u to make programs that ran off the internet and had the same permissions as applications? that would be better in my opinion, because the user can control them with the appp manager, so if some loser makes some retarded "virus" with java then the user would likely not run it.


Offline oNyx

JGO Coder


Medals: 1


pixels! :x


« Reply #14 - Posted 2005-02-22 21:04:26 »

>i thought webstart allowed u to make programs that ran off
>the internet and had the same permissions as applications?

No. They are more like applets. They can't do any harm (except wasting traffic or cpu cycles). If you want to do anything "critical" you need to sign it and the user needs to accept the certificate.

It's pretty good the way it is. I only wish there would be some granuality like only asking for small things (eg fullscreen permission)... and not full access to the machine or nothing.

弾幕 ☆ @mahonnaiseblog
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

pw (35 views)
2014-07-24 01:59:36

Riven (33 views)
2014-07-23 21:16:32

Riven (21 views)
2014-07-23 21:07:15

Riven (24 views)
2014-07-23 20:56:16

ctomni231 (55 views)
2014-07-18 06:55:21

Zero Volt (47 views)
2014-07-17 23:47:54

danieldean (38 views)
2014-07-17 23:41:23

MustardPeter (43 views)
2014-07-16 23:30:00

Cero (59 views)
2014-07-16 00:42:17

Riven (56 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!