最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

debugging java jnlp failure after overriding os.name - Stack Overflow

programmeradmin4浏览0评论

so i am trying to get to the bottom of whether mercedes' workshop information system (wis) applet is actually limited to windows only, in spite of being java. it seems counterintuitive for them have designed an entire applet in java only to have it whine:

"Unsupported Operating System!" (wow, that exclamation mark is "classic german", lecturing me for trying run this on an APPUL*)

naturally i ended up on this site upon learning how to override the operating system:

How do I programmatically determine operating system in Java?

where i used -Dos.name="windows" -Dos.version="6.1"

as arguments supplied to the VM.

i also added "-Xrs -dsa -sa" to reduce any operating system-dependent calls.

This got me further, however the applet (maybe unsurprisingly) still fails to launch but this time gives some information that may be related to how i'm doing the override:

upon closing, this is followed by another error:

but -verbose isn't telling me enough to figure out whether i can trick WIS/ASRA or not. is there any information an experienced java developer can give me on this?

here is what verbose says

GagansiMacPro:Downloads Gagan$ javaws -verbose startApp.jnlp 
adding secure arg: <-Xmx896m>
adding secure arg: <-verbose>
adding secure arg: <-Xrs>
adding secure arg: <-da>
adding secure arg: <-dsa>
add secure props: <-Djnlp.versionEnabled=true>
add secure props: <-Djnlp.secure.argument.*=true>
add secure props: <-Djnlp.packEnabled=true>
Java Web Start: Launching: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java
/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java
 -classpath
 /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/deploy.jar
 -Djava.security.policy=file:/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/security/javaws.policy
 -DtrustProxy=true
 -Xverify:remote
 -Djnlpx.home=/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin
 -Djava.security.manager
 -Djnlpx.origFilenameArg=startApp.jnlp
 -Djnlpx.remove=false
 -Dsun.awt.warmup=true
 -Xbootclasspath/a:/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/javaws.jar:/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/deploy.jar:/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/plugin.jar
 -Xmx896m
 -verbose
 -Xrs
 -da
 -dsa
 -Djnlp.versionEnabled=true
 -Djnlp.secure.argument.*=true
 -Djnlp.packEnabled=true
 -Xdock:name=WIS/ASRA
 -Dmacosx.jnlpx.dock.name=WIS/ASRA
 -Xdock:icon=/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/deploy/webStartAppIcon.icns
 -Dmacosx.jnlpx.dock.icon=/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/deploy/webStartAppIcon.icns
 -splash:/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/deploy/splash.gif
 -Djnlpx.jvm="/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java"
 -Djnlpx.vmargs=LVhteDg5Nm0ALXZlcmJvc2UALVhycwAtZGEALWRzYQAtRGpubHAudmVyc2lvbkVuYWJsZWQ9dHJ1ZQAtRGpubHAuc2VjdXJlLmFyZ3VtZW50Lio9dHJ1ZQAtRGpubHAucGFja0VuYWJsZWQ9dHJ1ZQA=
 com.sun.javaws.Main
 -verbose
 -notWebJava
 startApp.jnlp
 
GagansiMacPro:Downloads Gagan$ [Opened /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/rt.jar]
[Loaded java.lang.Object from /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/rt.jar]
[Loaded java.io.Serializable from /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/rt.jar]
...
[Loaded com.sun.javaws.Launcher$CacheUpdateRequiredException from /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/javaws.jar]
[Loaded java.lang.SecurityException from /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/rt.jar]
[Loaded com.sun.deploy.security.BlockedException from /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/deploy.jar]

there is nothing informative about what causes this exception, and using a search engine hasn't yielded much outside of some applications built using oyxgen (maybe this one is, i dunno): .html

but the conclusion is (again, probably unsurprising with the way they're going) APPUL* is the problem, and i was hoping for something more.

* ashton kutcher biopic and bagholder pronunciation; when annunciating the 'U', both cheeks must be inflated to give a balloon deflation-type effect

发布评论

评论列表(0)

  1. 暂无评论