Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
|
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 16th, 2003, 02:53 AM
Authorized User
 
Join Date: Jul 2003
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default Java NoClassDefFoundError

Pls help.......

   I got the following :

c:\jws1_examples\ch03\com\deitel\jws1\xml\Validato r.class
c:\jws1_examples\ch03\Fig03_1_2\welcome.xml
c:\jws1_examples\ch03\Fig03_1_2\welcome.dtd

I wrote a bat file as follows:
java -classpath com.deitel.jws1.xml.Validator ch03/Fig03_1_2/welcome.xml

and save under c:\jws1_examples\welcome.bat

When I try to run this batch file ( c:\jws1_examples\welcome.bat ) under DOS, I got the following errors:

Exception in thread "main" java.lang.NoClassDefFoundError : ch03/Fig03_1_2/welcome/xml

pls help !!
 
Old August 19th, 2003, 01:22 AM
Authorized User
 
Join Date: May 2003
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

I think u want to run the Validator.class for this u have to use

java Validator

This will run your program

Regards

Yashraj Chauhan
Java\J2EE Specialist
Wiley Support Team





Similar Threads
Thread Thread Starter Forum Replies Last Post
java.lang.NoClassDefFoundError when trying to crea Nimeshkd EJB 2 July 12th, 2012 01:30 AM
Exception : java.lang.NoClassDefFoundError haifriends J2EE 1 July 26th, 2006 07:22 PM
NoClassDefFoundError Crava J2EE 3 January 30th, 2004 12:48 PM
java.lang.NoClassDefFoundError: org/xml/sax/XMLRea kcheung XSLT 0 August 8th, 2003 08:03 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.