Menu

#22 java.lang.NoClassDefFoundError: Could not initialize class gnu.io.CommPortIdentifier

none
closed-works-for-me
nobody
None (24)
5
2014-10-11
2009-07-20
jfirechief
No

DO NOT EDIT OR ANSWER THIS ISSUE. SEE THE ORIGINAL ISSUE INSTEAD:
https://www.jfire.org/modules/bugs/view.php?id=1180
ORIGINAL REPORTER: marco

java.lang.NoClassDefFoundError: Could not initialize class gnu.io.CommPortIdentifier

Additional information:

java.lang.NoClassDefFoundError: Could not initialize class gnu.io.CommPortIdentifier
at org.nightlabs.connection.rxtx.config.PortMan.getPortIdentifiers(PortMan.java:53)
at org.nightlabs.connection.rxtx.config.SerialConnectionCf.getSerialPortIdentifiers(SerialConnectionCf.java:57)
at org.nightlabs.connection.ui.serial.SerialConnectionCfEditComposite.load(SerialConnectionCfEditComposite.java:84)
at org.nightlabs.connection.ui.serial.SerialConnectionCfEditComposite.<init>(SerialConnectionCfEditComposite.java:65)
at org.nightlabs.connection.ui.serial.SerialConnectionCfEdit._createConnectionCfEditComposite(SerialConnectionCfEdit.java:12)
at org.nightlabs.connection.ui.AbstractConnectionCfEdit.createConnectionCfEditComposite(AbstractConnectionCfEdit.java:63)
at org.nightlabs.keyreader.ui.preference.KeyReaderPreferenceComposite.connectionCfEdit_create(KeyReaderPreferenceComposite.java:290)
at org.nightlabs.keyreader.ui.preference.KeyReaderPreferenceComposite.connectionImplementationCombo_create(KeyReaderPreferenceComposite.java:222)
at org.nightlabs.keyreader.ui.preference.KeyReaderPreferenceComposite.keyReaderImplementationSelected(KeyReaderPreferenceComposite.java:137)
at org.nightlabs.keyreader.ui.preference.KeyReaderPreferenceComposite.keyReaderUseCaseSelected(KeyReaderPreferenceComposite.java:267)
at org.nightlabs.keyreader.ui.preference.KeyReaderPreferenceComposite.access$000(KeyReaderPreferenceComposite.java:40)
at org.nightlabs.keyreader.ui.preference.KeyReaderPreferenceComposite$2.selectionChanged(KeyReaderPreferenceComposite.java:75)
at org.nightlabs.base.ui.selection.SelectionProvider.fireSelectionChangedEvent(SelectionProvider.java:117)
at org.nightlabs.base.ui.selection.SelectionProvider.setSelection(SelectionProvider.java:104)
at org.nightlabs.base.ui.composite.AbstractListComposite.fireSelectionChangedEvent(AbstractListComposite.java:570)
at org.nightlabs.base.ui.composite.ListComposite$1.widgetSelected(ListComposite.java:140)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:65)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2448)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2412)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2278)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.nightlabs.base.ui.app.AbstractApplication.start(AbstractApplication.java:347)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)

Discussion

  • jfirechief

    jfirechief - 2009-07-20
    • labels: --> None
    • milestone: --> 874745
    • status: open --> closed-works-for-me
     
  • jfirechief

    jfirechief - 2009-07-20

    ORIGINAL COMMENT BY marco, VIEW IT HERE:
    https://www.jfire.org/modules/bugs/view.php?id=1180

    Sorry, the file is named "INSTALL" and here it is quoted completely:

    Trent Here. I do those ugly brown pages at rxtx.org. Documentation is not
    what I do well :) So please help me when you see problems or something is
    confusing.

    For more information provided by end users please visit the rxtx wiki at
    http://rxtx.qbang.org/wiki. This is also where you can help.

    Short Install Instructions

    Windows

    RXTXcomm.jar goes in \jre\lib\ext (under java)
    rxtxSerial.dll goes in \jre\bin

    Mac OS X (x86 and ppc) (there is an Installer with the source)

    RXTXcomm.jar goes in /Library/Java/Extensions
    librxtxSerial.jnilib goes in /Library/Java/Extensions
    Run fixperm.sh thats in the directory. Fix perms is in the Mac_OS_X
    subdirectory.

    Linux (only x86, x86_64, ia64 here but more in the ToyBox)

    RXTXcomm.jar goes in /jre/lib/ext (under java)
    librxtxSerial.so goes in /jre/lib/[machine type] (i386 for instance)
    Make sure the user is in group lock or uucp so lockfiles work.

    Solaris (sparc only so far)

    RXTXcomm.jar goes in /jre/lib/ext (under java)
    librxtxSerial.so goes in /jre/lib/[machine type]
    Make sure the user is in group uucp so lockfiles work.

    A person is added to group lock or uucp by editing /etc/groups. Distributions
    have various tools but this works:

    lock:x:54: becomes:
    lock:x:53:jarvi,taj

    Now jarvi and taj are in group lock.

    Also make sure jarvi and taj have read and write permissions on the port.

    If there are problems please help each other on the wiki and ask questions
    on the mail-list. User contributed changes will be used here in the next
    release. If you don't like the documentation, you can improve it.

    --
    Trent Jarvi
    tjarvi@qbang.org

     
  • jfirechief

    jfirechief - 2009-07-20

    ORIGINAL COMMENT BY marco, VIEW IT HERE:
    https://www.jfire.org/modules/bugs/view.php?id=1180

    Just a short note: You don't need to drop the RXTX-JARs into your Java Runtime (though it doesn't hurt if you do), but you must at least copy the DLLs/SOs there.

     
  • jfirechief

    jfirechief - 2009-07-20
    • milestone: 874745 -->
     
  • jfirechief

    jfirechief - 2009-07-20

    ORIGINAL COMMENT BY marco, VIEW IT HERE:
    https://www.jfire.org/modules/bugs/view.php?id=1190

    Seems you're having different versions of client and server. Use the appropriate client version for accessing your server!

     
  • jfirechief

    jfirechief - 2009-07-20
    • milestone: --> none
     
  • jfirechief

    jfirechief - 2009-07-20

    ORIGINAL COMMENT BY marco, VIEW IT HERE:
    https://www.jfire.org/modules/bugs/view.php?id=1180

    Sorry, the file is named "INSTALL" and here it is quoted completely:

    Trent Here. I do those ugly brown pages at rxtx.org. Documentation is not
    what I do well :) So please help me when you see problems or something is
    confusing.

    For more information provided by end users please visit the rxtx wiki at
    http://rxtx.qbang.org/wiki. This is also where you can help.

    Short Install Instructions

    Windows

    RXTXcomm.jar goes in \jre\lib\ext (under java)
    rxtxSerial.dll goes in \jre\bin

    Mac OS X (x86 and ppc) (there is an Installer with the source)

    RXTXcomm.jar goes in /Library/Java/Extensions
    librxtxSerial.jnilib goes in /Library/Java/Extensions
    Run fixperm.sh thats in the directory. Fix perms is in the Mac_OS_X
    subdirectory.

    Linux (only x86, x86_64, ia64 here but more in the ToyBox)

    RXTXcomm.jar goes in /jre/lib/ext (under java)
    librxtxSerial.so goes in /jre/lib/[machine type] (i386 for instance)
    Make sure the user is in group lock or uucp so lockfiles work.

    Solaris (sparc only so far)

    RXTXcomm.jar goes in /jre/lib/ext (under java)
    librxtxSerial.so goes in /jre/lib/[machine type]
    Make sure the user is in group uucp so lockfiles work.

    A person is added to group lock or uucp by editing /etc/groups. Distributions
    have various tools but this works:

    lock:x:54: becomes:
    lock:x:53:jarvi,taj

    Now jarvi and taj are in group lock.

    Also make sure jarvi and taj have read and write permissions on the port.

    If there are problems please help each other on the wiki and ask questions
    on the mail-list. User contributed changes will be used here in the next
    release. If you don't like the documentation, you can improve it.

    --
    Trent Jarvi
    tjarvi@qbang.org

     
  • jfirechief

    jfirechief - 2009-07-20

    ORIGINAL COMMENT BY marco, VIEW IT HERE:
    https://www.jfire.org/modules/bugs/view.php?id=1180

    Just a short note: You don't need to drop the RXTX-JARs into your Java Runtime (though it doesn't hurt if you do), but you must at least copy the DLLs/SOs there.

     

Log in to post a comment.