[jbossws-issues] [JBoss JIRA] Created: (JBWS-2760) wsconsume.bat and wsprovider.bat require JAVA_HOME environment variable in Winodws OS
Denny Xu (JIRA)
jira-events at lists.jboss.org
Tue Sep 15 03:57:23 EDT 2009
wsconsume.bat and wsprovider.bat require JAVA_HOME environment variable in Winodws OS
-------------------------------------------------------------------------------------
Key: JBWS-2760
URL: https://jira.jboss.org/jira/browse/JBWS-2760
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: tools-jaxws
Reporter: Denny Xu
Priority: Critical
Recently, JBDS users usually report "path not found" error when they user JBossWS tools to generate Web Service code in Windows OS, after I got Windows OS installed in my desktop and reproduced the issue, the issue is that JAVA_HOME is empty, so that the wsconsume.bat and wsprovider.bat do not work.
I read the code in the two files, it try to get the "java" command path by the following code:
set JAVA=%JAVA_HOME%\bin\java
if users do not set JAVA_HOME, it does not work, no sure if you guys have any special consideration.
run.bat of JBossAS do it like this:
f "x%JAVA_HOME%" == "x" (
set JAVA=java
echo JAVA_HOME is not set. Unexpected results may occur.
echo Set JAVA_HOME to the directory of your local JDK to avoid this message.
) else (
set "JAVA=%JAVA_HOME%\bin\java"
if exist "%JAVA_HOME%\lib\tools.jar" (
set "JAVAC_JAR=%JAVA_HOME%\lib\tools.jar"
)
)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbossws-issues
mailing list