aspose file tools*
The moose likes Applets and the fly likes Applet error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet error" Watch "Applet error" New topic
Author

Applet error

jose santelices
Greenhorn

Joined: Feb 02, 2010
Posts: 4
I got this when i create the class library archive and the JApplet form

init:
Deleting: C:\Documents and Settings\Boris\Mis documentos\NetBeansProjects\HelloApplet\build\built-jar.properties
deps-jar:
Updating property file: C:\Documents and Settings\Boris\Mis documentos\NetBeansProjects\HelloApplet\build\built-jar.properties
compile:
Not copying the libraries.
jar:
BUILD SUCCESSFUL (total time: 0 seconds)


then if i try to run the project itself i get no main class found thats for sure because its only a java class library but why the libraries are not being copyied

when i run the jsp i get this

init:
deps-module-jar:
JavaLibrary1.init:
Deleting: C:\Documents and Settings\Boris\Mis documentos\NetBeansProjects\JavaLibrary1\build\built-jar.properties
JavaLibrary1.deps-jar:
Updating property file: C:\Documents and Settings\Boris\Mis documentos\NetBeansProjects\JavaLibrary1\build\built-jar.properties
JavaLibrary1.compile:
Not copying the libraries.
JavaLibrary1.jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
Incrementally deploying HelloWebApplet
Completed incremental distribution of HelloWebApplet
run-deploy:
Browsing: http://localhost:8080/HelloWebApplet/index.jsp
run-display-browser:
run:
BUILD SUCCESSFUL (total time: 1 second)


And then when i take a look into the page through a browser i get this


cargar: clase org.me.hello.MyApplet no encontrada.
java.lang.ClassNotFoundException: org.me.hello.MyApplet
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:http://localhost:8080/HelloWebApplet/org/me/hello/MyApplet.class
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 7 more
Excepci├│n: java.lang.ClassNotFoundException: org.me.hello.MyApplet




Im using netbeans 6.8 by the way
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Firstly, this is not the JNLP question, best suited in Applet section.
Secondly, no one can help you until you post the HTML you are using. Please check you have valid "archive" attribute declared.


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42608
    
  65
In addition to posting the applet tag, also tell us where all the involved files are located.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet error