Bruno Estrozi - 2S

Hello, is possible I develop a gadget which use java applet I develop one but when I try to use, the sidebar close

unexpectedly.
The HTML code is:

<html>
<head>
<title>Economia</title>
<body>
<div id="cotacoes">
<table>
<tr class="ibovespa">
<th rowspan="1" colspan="1">IBOV</th>
<td rowspan="1" colspan="1">
<applet codebase="http://ultimosegundo.ig.com.br/economia/painel/" code="Ticker.class" width="40" height="13" BGCOLOR="#FFFFFF" MAYSCRIPT>
<param name="arquivo" value="bvsp.txt">
<param name="controle" value="0">
</applet>
</td>
</tr>
</table>
</div>
</body>
</html>

Help please!


Re: Sidebar Gadget Development Gadget to use Java Applet

Jonathan Abbott

You can't use Java in Gadgets at the moment. It doesn't comply with Data Execution Prevention (DEP) and also crashes IE if you run it under DEP.




Re: Sidebar Gadget Development Gadget to use Java Applet

sakurai_youhei

this problem is reported bug.
http://bugs.sun.com/bugdatabase/view_bug.do bug_id=6545701

i cant also create gadgets including Java applet.





Re: Sidebar Gadget Development Gadget to use Java Applet

Jonathan Abbott

Thanks for the info, I didn't realise it had been reported already.

I wouldn't hold your breath on a fix though, the last bug I reported took nearly two years to resolve.




Re: Sidebar Gadget Development Gadget to use Java Applet

sakurai_youhei

i've tried various ways to load java applet,
and almost of ways occured DEP error.

but only this way doesn't occur DEP error.
following code in Javascript is to create ActiveX Object of Java-Plugin.

var plugin = new ActiveXObject("JavaPlugin.160_02");

does anyone know how to load java-applet classes after this code
or it's impossible

************************************************************
Vista(32bit) + JRE1.6.0_02
************************************************************





Re: Sidebar Gadget Development Gadget to use Java Applet

sakurai_youhei

more info for someone.

************************************************************
[IE7] tool>internet option>program>manage addons

"Java Plug-in 1.6.0_02" : ActiveX Control : ssv.dll
"Java Plug-in 1.6.0_02" : ActiveX Control : ssv.dll
"Java Plug-in 1.6.0_02" : ActiveX Control : npjpi160_02.dll
************************************************************
[export functions of ssv.dll]

ordinal: 0001 name: RedirectAllStaticVersionKeys
ordinal: 0002 name: DllCanUnloadNow
ordinal: 0003 name: DllGetClassObject
ordinal: 0004 name: DllRegisterServer
ordinal: 0005 name: DllUnregisterServer
************************************************************
[export functions of npjpi160_02.dll]

ordinal: 0001 name: NP_GetEntryPoints
ordinal: 0002 name: NP_Initialize
ordinal: 0003 name: NP_Shutdown
ordinal: 0004 name: NSCanUnload
ordinal: 0005 name: NSGetFactory
ordinal: 0006 name: NSRegisterSelf
ordinal: 0007 name: NSUnregisterSelf
ordinal: 0008 name: DllCanUnloadNow
ordinal: 0009 name: DllGetClassObject
ordinal: 000A name: DllRegisterServer
ordinal: 000B name: DllUnregisterServer
************************************************************

I don't know the details of an ActiveX Object, ActiveX Control,
Automation object, and a COM compornent...





Re: Sidebar Gadget Development Gadget to use Java Applet

Jonathan Abbott

The only way you'll get Java running in a Gadget is by disabling DEP. This isn't really an option other than for personal use.