Results 1 to 1 of 1
  1. #1
    AZMichael is offline Member
    Join Date
    Jan 2008
    Rep Power

    Default JAR library is found on local computer, but not from server

    I created an applications with NetBeans IDE, and I have a lib file with several JARs in it. The application and all its classes and images are in one Jar file in the dist folder, and the 3rd party jars are in dist/lib folder. If I run this from my own computer through a jnlp file, all is good. I upload the jnlp file, jar and lib to the server, everything works, except the lib can't be found by the application, even though it is on the site. What am I missing here?

    Here's the manifest:

    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.7.1
    Created-By: 11.0-b15 (Sun Microsystems Inc.)
    Main-Class: jflashcalc.JFlashTable
    Class-Path: lib/freehep-export-2.1.jar lib/freehep-graphics2d-2.1.jar
    lib/freehep-graphicsio-2.1.jar lib/freehep-graphicsio-emf-2.1.jar lib
    /freehep-graphicsio-java-2.1.jar lib/freehep-graphicsio-pdf-2.1.jar l
    ib/freehep-graphicsio-ps-2.1.jar lib/freehep-graphicsio-svg-2.1.jar l
    ib/freehep-graphicsio-swf-2.1.jar lib/freehep-graphicsio-tests-2.1.ja
    r lib/freehep-io-2.0.2.jar lib/freehep-swing-2.0.2.jar lib/freehep-ut
    il-2.0.1.jar lib/freehep-util-2.0.2.jar lib/freehep-xml-2.0.1.jar lib
    /jas-plotter-2.0.jar lib/jdom-1.0.jar lib/junit-3.8.2.jar lib/openide
    X-COMMENT: Main-Class will be added automatically by build

    Here's the site with the library files:

    u.arizona edu /~michaelo/lib

    and the html files and jnlp called from the html are in (u. arizona .edu)/~michaelo/
    (forum won't let me type in the whole link yet)

    Java console error is:

    Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/freehep/util/export/ExportDialog
    at jflashcalc.JFlashTable.actionPerformed(JFlashTable .java:637)
    at javax.swing.AbstractButton.fireActionPerformed(Unk nown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed (Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed (Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(Unknown Source)
    at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(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.LightweightDispatcher.retargetMouseEvent( Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(U nknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unkno wn 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.pumpOneEventForFilter s(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(U nknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at Source)
    Caused by: java.lang.ClassNotFoundException: org.freehep.util.export.ExportDialog
    at$ Source)
    at Method)
    at Source)
    at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    ... 27 more

    Copying the lib folder to my user home on the local machine didn't help, either.

    Last edited by AZMichael; 11-30-2008 at 11:03 PM.

Similar Threads

  1. Replies: 28
    Last Post: 09-15-2010, 11:21 AM
  2. Software Engineer...Computer Science Major
    By giganews35 in forum Introductions
    Replies: 2
    Last Post: 09-14-2008, 10:19 AM
  3. Tell me jar file for library library org.bouncycastle.cms
    By 82rathi.angara in forum New To Java
    Replies: 10
    Last Post: 09-09-2008, 06:11 AM
  4. searching the local ip server from the WAN machine
    By Amruth Shreyass in forum Networking
    Replies: 0
    Last Post: 08-21-2008, 02:52 PM
  5. How to scan your computer for ports in use
    By Java Tip in forum
    Replies: 0
    Last Post: 04-07-2008, 09:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts