java.lang.NoClassDefFoundError: javax/comm/CommPortIdentifier

Stack Overflow | Mohit Rai | 7 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0

    Serial Port application not working with exported executable jar

    Stack Overflow | 7 months ago | Mohit Rai
    java.lang.NoClassDefFoundError: javax/comm/CommPortIdentifier
  2. 0
    samebug tip
    A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.
  3. 0
    samebug tip
    If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Check if you didn't forget to instantiate your topic in the kafka broker.
  6. 0
    samebug tip
    NoClassDefFoundError means java has failed to find a class you're trying to instantiate, look if you've added the class you're trying to instantiate to the dependencies.

  1. Alebey 2 times, last 5 days ago
  2. Unknown User 1 times, last 6 days ago
  3. ivanszkypeter 4 times, last 7 days ago
  4. andyglick 2 times, last 1 week ago
  5. stigkj 4 times, last 2 weeks ago
83 more registered users
12 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    javax.comm.CommPortIdentifier

    at java.net.URLClassLoader.findClass()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader.findClass(Unknown Source)
    2. java.lang.ClassLoader.loadClass(Unknown Source)
    3. sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    4. java.lang.ClassLoader.loadClass(Unknown Source)
    4 frames
  3. drdoproject
    GridMap$2.actionPerformed
    1. drdoproject.GridMap.showPorts(GridMap.java:315)
    2. drdoproject.GridMap.showPortsActionPerformed(GridMap.java:371)
    3. drdoproject.GridMap.access$700(GridMap.java:26)
    4. drdoproject.GridMap$2.actionPerformed(GridMap.java:204)
    4 frames
  4. Java RT
    EventDispatchThread.run
    1. javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    2. javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    3. javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    4. javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    6. java.awt.Component.processMouseEvent(Unknown Source)
    7. javax.swing.JComponent.processMouseEvent(Unknown Source)
    8. java.awt.Component.processEvent(Unknown Source)
    9. java.awt.Container.processEvent(Unknown Source)
    10. java.awt.Component.dispatchEventImpl(Unknown Source)
    11. java.awt.Container.dispatchEventImpl(Unknown Source)
    12. java.awt.Component.dispatchEvent(Unknown Source)
    13. java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    14. java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    15. java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    16. java.awt.Container.dispatchEventImpl(Unknown Source)
    17. java.awt.Window.dispatchEventImpl(Unknown Source)
    18. java.awt.Component.dispatchEvent(Unknown Source)
    19. java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    20. java.awt.EventQueue.access$500(Unknown Source)
    21. java.awt.EventQueue$3.run(Unknown Source)
    22. java.awt.EventQueue$3.run(Unknown Source)
    23. java.security.AccessController.doPrivileged(Native Method)
    24. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    25. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    26. java.awt.EventQueue$4.run(Unknown Source)
    27. java.awt.EventQueue$4.run(Unknown Source)
    28. java.security.AccessController.doPrivileged(Native Method)
    29. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    30. java.awt.EventQueue.dispatchEvent(Unknown Source)
    31. java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    32. java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    33. java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    34. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    35. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    36. java.awt.EventDispatchThread.run(Unknown Source)
    36 frames