1 2 Previous Next 20 Replies Latest reply: Sep 4, 2008 4:33 AM by 802555 RSS

    J2EE standalone aplication with JRE

    843844
      Hi there,

      Recently I have been asked by one of my clients to add more feature to an existing project [using auto response email] I did that with the help of J2EE [testing it with eclipse it runs smothly]. However, while trying to run it from the command line - it appears that i am not using the correct JRE.

      i get this message:


      C:\eclipse\workspace\USGroups JRE\Application>java -cp USGroups.jar USmain

      java.lang.NoClassDefFoundError: javax/mail/Message
      at USmain.runUSGroups(USmain.java:39)
      at SecurityLog.actionPerformed(SecurityLog.java:205)
      at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow
      n Source)
      at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      at javax.swing.plaf.basic.BasicButtonListener$ReleasedAction.actionPerfo
      rmed(Unknown Source)
      at javax.swing.SwingUtilities.notifyAction(Unknown Source)
      at javax.swing.JComponent.processKeyBinding(Unknown Source)
      at javax.swing.JComponent.processKeyBindings(Unknown Source)
      at javax.swing.JComponent.processKeyEvent(Unknown Source)
      at java.awt.Component.processEvent(Unknown Source)
      at java.awt.Container.processEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
      at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)

      at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Sour
      ce)
      at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Sour
      ce)
      at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Window.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)

      Anyone?
        1 2 Previous Next