[jbossws-issues] [JBoss JIRA] Updated: (JBWS-2760) wsconsume.bat and wsprovider.bat require JAVA_HOME environment variable in Winodws OS
Alessio Soldano (JIRA)
jira-events at lists.jboss.org
Thu Sep 17 08:06:23 EDT 2009
[ https://jira.jboss.org/jira/browse/JBWS-2760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alessio Soldano updated JBWS-2760:
----------------------------------
Priority: Major (was: Critical)
> 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
> Assignee: Jim Ma
> Fix For: jbossws-cxf-3.2.1, jbossws-native-3.2.1, jbossws-metro-3.2.1
>
>
> 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