[ 
https://issues.apache.org/jira/browse/AXIS2-6000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17345065#comment-17345065
 ] 

Robert Lazarski commented on AXIS2-6000:
----------------------------------------

This should be fixed in the master branch on github ... wsdl2java.sh invokes 
axis2.sh and that is where the problem was. We are releasing soon. Please test.

git clone [https://github.com/apache/axis-axis2-java-core.git]

Fix:

Date: Mon Nov 9 14:18:09 2020 -0500

AXIS2-5990 fix axis2.sh with JDK 9 and above

diff --git a/modules/tool/script/axis2.sh b/modules/tool/script/axis2.sh
index 733860d704..505673322a 100644
--- a/modules/tool/script/axis2.sh
+++ b/modules/tool/script/axis2.sh
@@ -46,7 +46,9 @@ do
 
 if [ "$prearg"=-classpath ] || [ "$prearg"=-cp ]
 then
- AXIS2_CLASSPATH="$arg":"$AXIS2_CLASSPATH"
+ if [[ $arg == "*.jar" ]]; then
+ AXIS2_CLASSPATH="$arg":"$AXIS2_CLASSPATH"
+ fi
 fi

 

 

 

 

 

> JDK11 issue with wsdl2java.sh : Error: -classpath requires class path 
> specification
> -----------------------------------------------------------------------------------
>
>                 Key: AXIS2-6000
>                 URL: https://issues.apache.org/jira/browse/AXIS2-6000
>             Project: Axis2
>          Issue Type: Bug
>    Affects Versions: 1.7.9
>            Reporter: Shruti Chincholkar
>            Assignee: Robert Lazarski
>            Priority: Blocker
>
> JDK11 has issue with wsdl2java.sh - 
> Error: -classpath requires class path specification.
> Is there a solution for this error?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to