S
steven acer
Hi all
I have a Java application that i intent to use as a JWS app.
non whenever i start the application from JWS, i get
ClassNotFoundException eventhough the jar where the class resides is
downloaded by JWS but if i run normally using java.exe on the command
line it runs smoothly and i don't have the exception.
The exception seems to come from the following line
Class clazz = Class.forName(className, false,
ClassLoader.getSystemClassLoader());
is it because i am using ClassLoader.getSystemClassLoader?
i don't understand why it runs from the command line normally but not
from JWS, here's my jnlp file
<?xml version="1.0" encoding="utf-8"?>
<jnlp codebase="http://127.0.0.1:8080/awclient" href="AW.jnlp"
spec="1.0+">
<information>
<title>Sample</title>
<vendor>N/A</vendor>
<homepage href=""/>
<description kind="short">Sample</description>
<description kind="tooltip">Sample</description>
<icon href="images/AW_image_install.jpg" />
<icon kind="splash" href="images/AW_image_splash.jpg" />
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se href="http://java.sun.com/products/autodl/j2se" initial-heap-
size="127m" max-heap-size="255m" version="1.5+"/>
<jar href="lib/client.jar" main="true"/>
<jar href="lib/skin.jar" main="false"/>
<jar href="lib/kswing.jar" main="false"/>
<jar href="lib/sslca.jar" main="false"/>
<jar href="lib/admin.jar" main="false"/>
<jar href="lib/adminc.jar" main="false"/>
<jar href="lib/core.jar" main="false"/>
<jar href="lib/intrl.jar" main="false"/>
<jar href="lib/intrlc.jar" main="false"/>
<jar href="lib/server_stub.jar" main="false"/>
<jar href="lib/te.jar" main="false"/>
<jar href="lib/tec.jar" main="false"/>
<jar href="lib/ext/ktl.jar" main="false"/>
<jar href="lib/ext/ktlc.jar" main="false"/>
<jar href="lib/ext/rmisec.jar" main="false"/>
<jar href="lib/si18n.jar" main="false"/>
<jar href="lib/soutil.jar" main="false"/>
<jar href="lib/print.jar" main="false"/>
<jar href="lib/htec.jar" main="false"/>
<jar href="lib/hte.jar" main="false"/>
<jar href="lib/ext/x509-jndi.jar" main="false"/>
<jar href="lib/vectorgraphics.jar" main="false"/>
<jar href="lib/ext/freehep-graphicsio-gif.jar" main="false"/>
<jar href="lib/ext/freehep-graphicsio-ppm.jar" main="false"/>
<jar href="lib/ext/freehep-graphicsio.jar" main="false"/>
<jar href="lib/ext/freehep-graphicsio-pdf.jar" main="false"/>
<jar href="lib/ext/freehep-base.jar" main="false"/>
<jar href="lib/ext/freehep-graphics2d.jar" main="false"/>
<jar href="lib/ext/freehep-graphicsio-ps.jar" main="false"/>
</resources>
<application-desc main-class="so.kernel.client.DesktopMain">
<argument>http://127.0.0.1:8080/help</argument>
</application-desc>
</jnlp>
can you please help
I have a Java application that i intent to use as a JWS app.
non whenever i start the application from JWS, i get
ClassNotFoundException eventhough the jar where the class resides is
downloaded by JWS but if i run normally using java.exe on the command
line it runs smoothly and i don't have the exception.
The exception seems to come from the following line
Class clazz = Class.forName(className, false,
ClassLoader.getSystemClassLoader());
is it because i am using ClassLoader.getSystemClassLoader?
i don't understand why it runs from the command line normally but not
from JWS, here's my jnlp file
<?xml version="1.0" encoding="utf-8"?>
<jnlp codebase="http://127.0.0.1:8080/awclient" href="AW.jnlp"
spec="1.0+">
<information>
<title>Sample</title>
<vendor>N/A</vendor>
<homepage href=""/>
<description kind="short">Sample</description>
<description kind="tooltip">Sample</description>
<icon href="images/AW_image_install.jpg" />
<icon kind="splash" href="images/AW_image_splash.jpg" />
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se href="http://java.sun.com/products/autodl/j2se" initial-heap-
size="127m" max-heap-size="255m" version="1.5+"/>
<jar href="lib/client.jar" main="true"/>
<jar href="lib/skin.jar" main="false"/>
<jar href="lib/kswing.jar" main="false"/>
<jar href="lib/sslca.jar" main="false"/>
<jar href="lib/admin.jar" main="false"/>
<jar href="lib/adminc.jar" main="false"/>
<jar href="lib/core.jar" main="false"/>
<jar href="lib/intrl.jar" main="false"/>
<jar href="lib/intrlc.jar" main="false"/>
<jar href="lib/server_stub.jar" main="false"/>
<jar href="lib/te.jar" main="false"/>
<jar href="lib/tec.jar" main="false"/>
<jar href="lib/ext/ktl.jar" main="false"/>
<jar href="lib/ext/ktlc.jar" main="false"/>
<jar href="lib/ext/rmisec.jar" main="false"/>
<jar href="lib/si18n.jar" main="false"/>
<jar href="lib/soutil.jar" main="false"/>
<jar href="lib/print.jar" main="false"/>
<jar href="lib/htec.jar" main="false"/>
<jar href="lib/hte.jar" main="false"/>
<jar href="lib/ext/x509-jndi.jar" main="false"/>
<jar href="lib/vectorgraphics.jar" main="false"/>
<jar href="lib/ext/freehep-graphicsio-gif.jar" main="false"/>
<jar href="lib/ext/freehep-graphicsio-ppm.jar" main="false"/>
<jar href="lib/ext/freehep-graphicsio.jar" main="false"/>
<jar href="lib/ext/freehep-graphicsio-pdf.jar" main="false"/>
<jar href="lib/ext/freehep-base.jar" main="false"/>
<jar href="lib/ext/freehep-graphics2d.jar" main="false"/>
<jar href="lib/ext/freehep-graphicsio-ps.jar" main="false"/>
</resources>
<application-desc main-class="so.kernel.client.DesktopMain">
<argument>http://127.0.0.1:8080/help</argument>
</application-desc>
</jnlp>
can you please help