is not able to load classes from current directory in EAP6

Solution Verified - Updated -


  • If we write a WebService class as "" as following:
package echo;
public class Echo
   public String echo(String input)
      return input;
  • After compiling it successfully when we try to run the "$JBOSS_HOME/bin/" in order to generate the WebService artifacts on it then it throws the following error:
[userone@localhost WSProvideDemo]$ javac -d . 
[userone@localhost WSProvideDemo]$ $JBOSS_HOME/bin/ -w echo.Echo
Error: Could not load class [echo.Echo]. Did you specify a valid --classpath?
  • Why JBoss EAP6 provided "" script is not able to find the classes present in the current directory?


  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content