Error Executing Batch file of BlazeDS

喜欢而已 提交于 2019-12-12 06:38:43

问题


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

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..

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??

Please Help..


回答1:


java is not an internal command of cmd.exe.

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.

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

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".)

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.

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

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

Or you run the java application with the command line

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


来源:https://stackoverflow.com/questions/24424665/error-executing-batch-file-of-blazeds

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!