File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JNLP and Web Start and the fly likes ClassNotFound Exception.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "ClassNotFound Exception.." Watch "ClassNotFound Exception.." New topic

ClassNotFound Exception..

Nilu Deshmukh

Joined: Aug 03, 2009
Posts: 22
I am trying to run a jnlp application...

i have demotest.jnlp file

contents of jnlp fils are
<?xml version="1.0" encoding="ISO-8859-1"?>
<jnlp spec="1.0+" codebase="http://localhost:8080/jwsdemo"
<title>Demo Test</title>
<description>Demo client by Green</description>
<j2se version="1.3+" />
<jar href="test.jar" main="true" />
<application-desc main-class="com.test" />

my test class is located in com package.

and test.jar is in webcontent of eclipse ...
i am getting exception ClassNotFound..
what' is the problem.. please help.....
Gautam Tandon

Joined: Aug 06, 2009
Posts: 1
for which class are you getting this error?

if it's some 3rd party class or java class (i.e. anything other than your own class), you might want to make sure you have all the required jars in the classpath... (I know really generic answer, but can't make it out unless I know for what class are you getting this error).

You might also want to check out this online tool to find out what jar is missing:
Nilu Deshmukh

Joined: Aug 03, 2009
Posts: 22
Thanks ... Error Solved .. The Class path was wrong in JNLP file.
I agree. Here's the link:
subject: ClassNotFound Exception..
It's not a secret anymore!