Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
129 views
in Technique[技术] by (71.8m points)

jar - Error Executing Batch file of BlazeDS

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

tutorial

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

BlazeDs Sample

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

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

JAVA_HOME

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

Please Help..

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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:lazedssampledb 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 directoryjava.exe" -cp hsqldb.jar org.hsqldb.Server

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...