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 26th, 2003, 06:37 AM
Registered User
 
Join Date: Aug 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default classes don't compile

Hi,

In chapter 7 the first example worked well. When I entered the code for the TechnicalBook-class and ChildrenBook-class (p. 151 - 152), the compiler returned an error in the line "public class TechnicalBook extends Book {", with an arrow under the "B" of "Book".

The code I entered is :
"package com.wrox.library;

public class TechnicalBook extends Book {

  private String skillLevel;"...
The class "Book" compiled well.

What can be wrong ?

 
Old August 26th, 2003, 08:22 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 175
Thanks: 0
Thanked 0 Times in 0 Posts
Default

To be of help we will need details of the error message that was generated by the compiler. However, if I was a betting man I'd say that it was probably a class path problem and that the compiler couldn't find the Book class.

Cheers

Martyn
 
Old August 27th, 2003, 01:10 AM
Authorized User
 
Join Date: May 2003
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi
Go to this url the problem u have is discussed in detail
http://p2p.wrox.com/topic.asp?TOPIC_ID=1922

Regards

Yashraj Chauhan
Java\J2EE Specialist
Wiley Support Team
 
Old August 28th, 2003, 03:49 AM
Registered User
 
Join Date: Aug 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by Yashraj Chauhan
 Hi
Go to this url the problem u have is discussed in detail
http://p2p.wrox.com/topic.asp?TOPIC_ID=1922

Regards

Yashraj Chauhan
Java\J2EE Specialist
Wiley Support Team
Yashraj,

The addition of "-classpath <path>" to the javac-command did the job. Thank you for your support.

Best regards.:)






Similar Threads
Thread Thread Starter Forum Replies Last Post
compile aspb ASP.NET 2.0 Professional 1 September 12th, 2006 10:22 AM
compile aspb ASP.NET 2.0 Basics 0 September 8th, 2006 10:27 AM
How Compile the First Example ? AlexPerusso BOOK: Beginning Visual C++ 6 3 April 8th, 2005 10:44 AM
Compile Java classes to EXE vb_programmer Java GUI 7 December 14th, 2004 08:16 AM
classes don't compile srisri JSP Basics 1 September 10th, 2003 02:01 AM





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