Results 1 to 3 of 3

Thread: hello to all

  1. #1
    willemjav is offline Senior Member
    Join Date
    Dec 2007
    Location
    Spain
    Posts
    1,075
    Rep Power
    8

    Default hello to all

    I am new to this forrom and java
    haven been studying for 5 month now
    David Ecks introduction to java
    and now reading the thinking java book
    writting small app like memory cards for kids

    my first question is:
    WHY THE JAR FILE COMPILED BY NETBEANS
    ON A MAC DOES NOT RUN ON PC?

  2. #2
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    757
    Rep Power
    8

    Default

    Hello,

    Can you post the error message when you were executing your jar file. It will help us to understand you problem better.

  3. #3
    willemjav is offline Senior Member
    Join Date
    Dec 2007
    Location
    Spain
    Posts
    1,075
    Rep Power
    8

    Default

    hola wsaryada

    I do not realy know who work forums as well

    I might be a hopeless programmer?

    wrote a small application memorycards for kids (images music etc.)
    compiled from MAC through netbeans. The program works fine on mac by just 2xclicking on the jar. But on a pc of a friend he gets the following message


    Notice that tries to find a file jar.clas on the path D:\MemoryCards\.

    Modalidad de receptor registrada

    Invocando método JS: document

    Invocando método JS: URL

    Referencia a cargador de clases: sun.plugin.ClassLoaderInfo@17a4989, contador de referencia=1

    Cargando miniaplicación...

    Inicializando miniaplicación...

    Iniciando miniaplicación...

    cargar: clase MemoryCards.jar no encontrada.

    java.lang.ClassNotFoundException: MemoryCards.jar

    at sun.applet.AppletClassLoader.findClass(Unknown Source)

    at java.lang.ClassLoader.loadClass(Unknown Source)

    at sun.applet.AppletClassLoader.loadClass(Unknown Source)

    at java.lang.ClassLoader.loadClass(Unknown Source)

    at sun.applet.AppletClassLoader.loadCode(Unknown Source)

    at sun.applet.AppletPanel.createApplet(Unknown Source)

    at sun.plugin.AppletViewer.createApplet(Unknown Source)

    at sun.applet.AppletPanel.runLoader(Unknown Source)

    at sun.applet.AppletPanel.run(Unknown Source)

    at java.lang.Thread.run(Unknown Source)

    Caused by: java.io.FileNotFoundException: D:\MemoryCards\jar.class (El sistema no puede hallar la ruta especificada)

    at java.io.FileInputStream.open(Native Method)

    at java.io.FileInputStream.<init>(Unknown Source)

    at java.io.FileInputStream.<init>(Unknown Source)

    at sun.net.http://www.protocol.file.FileURLConn...nect(Unknow n Source)

    at sun.net.http://www.protocol.file.FileURLConn...ream (Unknown Source)

    at sun.applet.AppletClassLoader.getBytes(Unknown Source)

    at sun.applet.AppletClassLoader.access$100(Unknown Source)

    at sun.applet.AppletClassLoader$1.run(Unknown Source)

    at java.security.AccessController.doPrivileged(Native Method)

    ... 10 more

    Excepci&#243;n: java.lang.ClassNotFoundException: MemoryCards.jar

Posting Permissions

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