asadmin批处理文件未打开命令提示符

asadmin批处理文件未打开命令提示符

本文介绍了Glassfish asadmin批处理文件未打开命令提示符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hiii我的机器上安装了两个glassfish版本3.1.1和4.0.当我单击glassfish 3.1.1/bin/asadmin窗口批处理文件时,它将打开命令提示符,我可以在其中创建服务和删除服务,等等.

HiiiI have two glassfish versions 3.1.1 and 4.0 installed on my machine.When i click on glassfish 3.1.1/bin/asadmin window batch file ,it opens command prompt where i can create service and delete service and so on.

但是当我单击glassfish 4.0/bin/asadmin时,命令提示符会闪烁一秒钟并终止.甚至我也看不到异常或错误.

But when i click on glassfish 4.0/bin/asadmin ,command prompt blinks for a second and terminates.Even i can not see the exception or error.

我认为这是由于进行了2次安装.有人可以提出解决方案,以便我可以代替glassfish 3.1.1来以管理员身份打开glassfish 4.0.

I think its due to 2 installations.Can someone suggest a solution so that instead of glassfish 3.1.1, i can open asadmin of glassfish 4.0.

谢谢.

推荐答案

两次安装Glassfish不会引起问题.

Two installations of Glassfish shouldn't cause problems.

我猜想asadmin.bat尝试启动它时会抛出诸如找不到Java ..."之类的错误.

I guess the asadmin.bat throws some error like "Java not found..." or similar when you try to start it.

要在窗口关闭前实际看到此错误,必须通过已打开的命令提示符启动asadmin.bat.

To actually see this error before the window closes you have to start asadmin.bat via an already opened command prompt.

单击开始按钮,然后在搜索字段中键入cmd,然后启动cmd.exe.在命令提示符下,导航到Glassfish\bin文件夹,然后键入asadmin.这应该会显示一条错误消息,指出问题所在.

Click the Start button and type cmd in the search field, then start cmd.exe. In the command prompt, navigate to your Glassfish\bin folder and type asadmin. This should print an error message indicating the problem.

这篇关于Glassfish asadmin批处理文件未打开命令提示符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 14:08