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 July 25th, 2003, 02:48 AM
Authorized User
 
Join Date: Jun 2003
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Yashraj,
Setting the classpath to " . . . \classes" (as above) gives me the following:

error: cannot read: TechnicalBook.java
1 error


When I do the same, but with the the location of the ChildrenBook file specified (outside the classpath, so:

javac -classpath "c:\. . .\WEB-INF\classes" booklibrary\ChildrenBook.java

I get the previous error:

booklibrary\ChildrenBook.java:28: cannot resolve symbol
symbol : constructor Book (java.lang.String)
location: class booklibrary.Book
    super(title);
    ^

1 error


Regds,
Ped



 
Old July 25th, 2003, 04:44 AM
Authorized User
 
Join Date: May 2003
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi
Can u give me the absolute path of where your java file are residing. Is it c:\jakarta-tomcat-4.0\webapps\begjsp-ch07\WEB-INF\classes\com\wrox\library or else provide me the exact absolute path. Also give me the path in the command prompt where you are running the javac command

Regards


Yashraj Chauhan
Java\J2EE Specialist
Wiley Support Team
 
Old July 25th, 2003, 06:57 AM
Authorized User
 
Join Date: Jun 2003
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by Yashraj Chauhan
 Can u give me the absolute path of where your java file are residing. Is it c:\jakarta-tomcat-4.0\webapps\begjsp-ch07\WEB-INF\classes\com\wrox\library or else provide me the exact absolute path. Also give me the path in the command prompt where you are running the javac command

Absolute path for ChildrenBook.java and TechnicalBook.java is:

c:\Program Files\Apache Softwae Foundation\Tomcat 5.0\webapps\objects\WEB-INF\classes\booklibrary

I am running the command prompt from:

c:\Program Files\Apache Softwae Foundation\Tomcat 5.0\webapps\objects\WEB-INF\classes>

 
Old July 26th, 2003, 12:50 AM
Authorized User
 
Join Date: May 2003
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi
Try the following commands this will compile your code without error
For Book.java
javac -d "c:\Program Files\Apache Softwae Foundation\Tomcat 5.0\webapps\objects\WEB-INF\classes\booklibrary" booklibrary\Book.java

This command will create folder of your package name specified in your Book.java

For ChildrenBook.java
javac -d "c:\Program Files\Apache Softwae Foundation\Tomcat 5.0\webapps\objects\WEB-INF\classes\booklibrary" -classpath "c:\Program Files\Apache Softwae Foundation\Tomcat 5.0\webapps\objects\WEB-INF\classes\booklibrary" booklibrary\ChildrenBook.java

For TechnicalBook.java
javac -d "c:\Program Files\Apache Softwae Foundation\Tomcat 5.0\webapps\objects\WEB-INF\classes\booklibrary" -classpath "c:\Program Files\Apache Softwae Foundation\Tomcat 5.0\webapps\objects\WEB-INF\classes\booklibrary" booklibrary\TechnicalBook.java

Regards

Yashraj Chauhan
Java\J2EE Specialist
Wiley Support Team





Similar Threads
Thread Thread Starter Forum Replies Last Post
exec:java classpath problem mslinn BOOK: Beginning Spring Framework 2 ISBN: 978-0-470-10161-2 2 December 1st, 2008 08:05 AM
problem in setting the classpath. Sibananda Tripathy J2EE 1 May 2nd, 2007 01:08 AM
classpath ekta BOOK: Beginning Java 2 1 March 28th, 2005 11:35 PM
classpath? abdi Java GUI 1 December 8th, 2004 04:44 PM
ClassNotFoundException - CLASSPATH problem? pmckeever JSP Basics 0 December 4th, 2003 10:02 AM





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