java.lang.NoClassDefFoundError when running JBoss through CYGWIN in Windows

Solution Verified - Updated -

Issue

  • Running run.sh through CYGWIN in Windows results in a NoClassDefFoundError although the class is clearly in the right location
  • The exception message indicates an odd corrupted file path that it was trying to use:
Exception in thread "main" java.lang.NoClassDefFoundError: FilesEnterprisePlatform-5/1/0jboss-ep-5/1nativebin
Caused by: java.lang.ClassNotFoundException: FilesEnterprisePlatform-5.1.0jboss-ep-5.1nativebin
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: FilesEnterprisePlatform-5.1.0jboss-ep-5.1nativebin.  Program will exit.

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 5.1.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.