错误执行BlazeDS的批处理文件 [英] Error Executing Batch file of BlazeDS

查看:229
本文介绍了错误执行BlazeDS的批处理文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图在我的网页上看到BlazeDs的样本,如本网页上的教程所示。

I'm trying to see samples of BlazeDs in my web brower as shown in the tutorial on this webpage.

我启动tomcat后,在浏览器中打开localhost链接8400 / samples,如图所示在输入网址后,我在浏览器中显示以下页面。

After I have started tomcat i open the localhost link 8400/samples in my browser as shown below.After entering the url i get the following page in my browser..

之后我尝试根据网页开头的方框中给出的说明启动示例数据库。在我的命令提示符上运行指定的命令后,我收到以下错误消息..

After that i try to start the sample database according to the instructions given in a box at the starting of the webpage. After i run the specified command on my command prompt i get the following error message..

我似乎无法理解错误。即使我已将JAVA_HOME变量设置如下,我仍然收到此错误..

I can't seem to understand the error.Even though i have set the JAVA_HOME variable as follows still i am getting this error..

是这个错误是由于防火墙问题?或其他什么?

Is this error due to firewall problem? or something else??

请帮助..

推荐答案

java 不是 cmd.exe 的内部命令。

由于此命令没有文件扩展名且没有完整路径,Windows首先在当前目录 C:\ blazeds \sampledb 中搜索 java。* 以查找 java.com java.exe java.bat java.cmd 以及其他一些文件扩展名。

As this command is without file extension and without full path, Windows searches first in current directory C:\blazeds\sampledb for java.* to find either java.com, java.exe, java.bat, java.cmd and some other file extensions.

文件扩展名在环境变量 PATHEXT中定义用分号分隔,可以在命令提示符窗口中使用命令查看设置PATHEXT

The file extensions are defined in environment variable PATHEXT separated by semicolons which can be viewed in a command prompt window with command set PATHEXT

如果没有分号当前目录中文件名为 java 的文件,Windows在环境变量 PATH 中以分号分隔的所有目录中搜索。在命令提示符窗口中输入路径设置路径会导致显示这些目录。 ( set path 列出 PATH 的目录和 PATHEXT 的文件扩展名,因为两个环境变量都以字符串开头路径。)

If there is no such file with file name java in current directory, Windows searches in all directories specified separated by semicolons in environment variable PATH. Entering just path or set path in a command prompt window results in a display of those directories. (set path lists the directories of PATH and the file extensions of PATHEXT as both environment variables start with the string "path".)

Java包本身和其他应用程序可能需要环境变量 JAVA_HOME ,但Windows绝对不会读取找到名为 java 的可执行文件。

The environment variable JAVA_HOME is needed perhaps by the Java package itself and other applications, but is definitely not read by Windows to find an executable file with name java.

搜索包含 java.exe 的目录并附加目录这个文件到PATH。在命令行上,这可以通过以下方式完成:

Search for the directory containing java.exe and append the directory of this file to PATH. On command line this can be done with:

PATH=%PATH%;Full path to directory containing java

即使包含java.exe的目录的完整路径包含1个或多个空格字符,也不要输入双引号。

Do not enter double quotes even if the full path to directory containing java.exe contains 1 or more space characters.

或者使用命令行运行java应用程序

Or you run the java application with the command line

"Full path to directory\java.exe" -cp hsqldb.jar org.hsqldb.Server

这篇关于错误执行BlazeDS的批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆