无法运行两个 java webstart 实例
我无法在任何给定时间运行多个 java webstart 实例。
例如,我无法同时运行生产和运行。一次应用程序的 QA 实例,这两个实例都是通过 java webstart 启动的。此外,我无法同时运行 java webstart 缓存查看器作为应用程序的生产或 QA 实例。
然而,当上述三个 Webstart 启动彼此独立运行时,我能够运行它们中的任何一个。当我尝试提出第二个选项时,我看到“Java Loading...”屏幕,然后该屏幕消失并且没有任何反应。
此外,我尝试删除 webstart 缓存(通过 java webstart 缓存查看器),但无论我指向哪个 JRE,都会收到以下错误:
“安装错误。调用 Java VM (execv) 时出错” 'path to my javaw.exe'"
我希望我上面提到的两个问题都是相互关联的。我不相信我最近更改了任何配置,而且我多年来一直愉快地运行 java webstart。
以前有人见过这样的问题吗?
谢谢, Jack
编辑:当 webstart 的第二个实例尝试运行时,在显示“Java Loading...”屏幕期间,我可以在任务管理器中看到生成了一个新的 javaw.exe 进程。但这个过程几乎立即终止。我不确定如何检查该过程中的失败,但我希望它与尝试通过 webstart 缓存查看器清除缓存时的失败类似。
I am unable to run more than one instance of java webstart at any given time.
For example, I am unable to run both the production & QA instance of an application at once, both of which are launched via java webstart. Additionally, I am unable to run the java webstart cache viewer at the same time as either the production or QA instance of my application.
I am however able to run any of the above three webstart launches when they are run in isolation of each other. When I try to bring up a second option, I see the 'Java Loading...' screen which then disappears and nothing happens.
Additionally, I have tried to delete the webstart cache (via the java webstart cache viewer) and I receive the following error regardless of which JRE I point to:
"Bad installation. Error invoking Java VM (execv)
'path to my javaw.exe'"
I expect both the problems I mention above are interlinked. I do not believe I have changed any configuration recently and I have been happily running java webstart for years.
Has anyone seen such a problem before?
Thanks,
Jack
EDIT: When the second instance of webstart attempts to run, during the display of the 'Java Loading...' screen I can see in the task manager that a new javaw.exe process is spawned. This process almost immediately dies though. I'm not sure how to inspect the failure in that process, but I expect it is similar to the failure when trying to clear my cache through the webstart cache viewer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您也许可以使用
javaws< /code>
从命令行以
-offline
模式运行第二个实例。verbose
选项也很方便。You may be able to use
javaws
from the command line to run a second instance in-offline
mode. Theverbose
option is handy, too.我认为这是因为应用程序的两个实例都使用与当前工作目录相同的文件夹。我不太记得了,但它位于用户主目录下的某个位置,并且该文件夹包含应用程序名称或其他内容...
因此,如果这是正确的,解决方案是更改应用程序名称,例如“我的应用程序 - QA”与“我的应用程序” ” 用于生产。
该名称位于 jnlp.xml 中的某个位置。
I think it is because both instances of the application use the same folder as current working directory. I do not remember exactly but it is somewhere under user home and the folder contains the application name or something...
So, if this is correct the solution is to change the application name like "My Application - QA" vs. "My Application" used on production.
The name is somewhere in jnlp.xml.
原因可能是客户端 java/javaw 的启动参数不允许运行多个 Java 实例。例如因为设置了调试端口。这些参数可以在命令行中设置,也可以在Java控制面板->Java中设置。 Java->按钮查看。
The reason may be the startup parameters for client java/javaw, which do not allow to run more than one instance of Java. For example because of set debug port. These parameters can be set in the command line or in the Java Control Panel -> Java -> button View.
就我而言,该问题的原因是我在 java 面板中设置了“运行时参数”(java 控制面板 --> java --> 查看按钮)。
消除这些参数后,我就能够使用 JWS 启动多个实例。
In my case, the cause of that problem was that I had "runtime parameters" set in the java panel (java control panel --> java --> view button).
Once these parameters were eliminated, I was able to launch several instances with JWS.