Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ClassNotFound Exception..

 
Nilu Deshmukh
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...
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"
href="demotest.jnlp">
<information>
<title>Demo Test</title>
<vendor>Green</vendor>
<description>Demo client by Green</description>
</information>
<resources>
<j2se version="1.3+" />
<jar href="test.jar" main="true" />
</resources>
<application-desc main-class="com.test" />
</jnlp>

*****
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
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
http://www.ellipsissolutions.com/xray.php
 
Nilu Deshmukh
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks ... Error Solved .. The Class path was wrong in JNLP file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic