简体   繁体   English

无法运行Java WebStart的两个实例

[英]Cannot run two instances of java webstart

I am unable to run more than one instance of java webstart at any given time. 我无法在任何给定时间运行多个Java Webstart实例。

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. 例如,我无法同时运行应用程序的生产和质量检查实例,这两个实例都是通过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. 此外,我无法与应用程序的生产实例或质量检查实例同时运行Java Webstart缓存查看器。

I am however able to run any of the above three webstart launches when they are run in isolation of each other. 不过, 能够运行,当他们在彼此隔离运行任何上述三个Webstart的启动的。 When I try to bring up a second option, I see the 'Java Loading...' screen which then disappears and nothing happens. 当我尝试提出第二个选项时,我看到“ Java Loading ...”屏幕,然后消失,什么也没有发生。

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 : 此外,我尝试删除webstart缓存(通过java webstart缓存查看器),并且无论我指向哪个JRE,我都会收到以下错误消息:

"Bad installation. Error invoking Java VM (execv) 'path to my javaw.exe'" “错误的安装。调用Java VM(execv)'我的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. 我不相信我最近已经更改了任何配置,并且我已经愉快地运行java webstart多年了。

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. 编辑:当webstart的第二个实例尝试运行时,在“ Java Loading ...”屏幕的显示过程中,我可以在任务管理器中看到生成了一个新的javaw.exe进程。 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. 我不确定如何检查该过程中的故障,但是我希望它与尝试通过Webstart缓存查看器清除缓存时的故障类似。

You may be able to use javaws from the command line to run a second instance in -offline mode. 您可能可以从命令行使用javaws-offline模式下运行第二个实例。 The verbose option is handy, too. verbose选项也很方便。

javaws -offline -verbose MyApplication.jnlp

The reason may be the startup parameters for client java/javaw, which do not allow to run more than one instance of Java. 原因可能是客户端java / javaw的启动参数,该参数不允许运行多个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->按钮视图中设置。

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. 名称在jnlp.xml中的某个位置。

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

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