LWJGL Forum

Programming => General Java Game Development => Topic started by: Wolftein on February 25, 2010, 18:18:16

Title: Java System Property
Post by: Wolftein on February 25, 2010, 18:18:16
Hello!, i have an issue. Inside the lwjgl launcher i put this -> System.setProperty("HelloTest","Test"); and in my applet game when i call System.getProperty("HelloTest"); it return null, why is that?
Title: Re: Java System Property
Post by: princec on February 26, 2010, 12:44:11
You can't set system properties from applets.

Cas :)
Title: Re: Java System Property
Post by: broumbroum on February 26, 2010, 21:04:10
if using plugin2 it should be possibl, shouldn't it? => java-vm-args in an <applet>enclosure.
Title: Re: Java System Property
Post by: kappa on February 26, 2010, 21:06:58
yes, but really why would you want to break backward compatibility on plugin1 just to use System Properties? :)

besides can't you just use Applet Parameters instead when using applets?