简体   繁体   English

覆盖IcedTea Java小程序Firefox插件的类路径

[英]Override classpath for icedTea java applet plugin for firefox

I wish to override behavior of FileDialog call of awt library so as to not invoke any native calls to open up file chooser. 我希望重写awt库的FileDialog调用的行为,以便不调用任何本机调用来打开文件选择器。 I am planning to achieve it by overriding FileDialog with a stub library and forcing it to load before standard ones whenever an applet is loaded using icedTea firefox java plugin. 我打算通过使用存根库重写FileDialog并强制它在每次使用icedTea firefox java插件加载小程序之前在标准对话框之前加载来实现此目的。

For an intermittent fix, I have come up with a hack to replace standard JRE with custom one, wherein FileDialog's show method is overridden to a no-op. 对于间歇性修复,我想出了一种方法,用自定义变量替换标准JRE,其中FileDialog的show方法被覆盖为无操作。 Then, the location of custom JRE is specified in ~/.icedtea/deployment.properties file using custom.jre property.(Please confirm property name for your version of icedtea plugin by referring source code.) 然后,使用custom.jre属性在〜/ .icedtea / deployment.properties文件中指定自定义JRE的位置。(请通过参考源代码确认您的icedtea插件版本的属性名称。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM