Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet error

 
jose santelices
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In addition to posting the applet tag, also tell us where all the involved files are located.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic