Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Java Basics
|
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java 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 November 29th, 2006, 08:17 AM
Registered User
 
Join Date: Oct 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default setting classspath in nested package compilation

hi all,

i have one problem in my Java code design now.

actually i have user defined packages in the hierarchy com/dia/comp/Elements

I have one class MainWnd.java in com/dia/ package is referring Style.java in comp and Tag.java in Elements package.

I have included import comp.Style and import comp.Elements.Tag inside MainWnd.java file.

But when i compile MainWnd.java using javac command its displaying


MainWnd.java:1138: cannot find symbol
symbol : class Tag
location: class com.dia.MainWnd
Tag tag1 = tag.getElement(j);
^

MainWnd.java:2519: cannot find symbol
symbol : class Style
location: class com.dia.MainWnd
public static Style mySty = new Style("PIXEL");
^
For sample only i have mentioned two classes.


Tag.java file is also using two more java files. Packages are nested and classes inside one package are referring classes in other packages..

I just want how to set classpath for overcoming this error.

i am not able to proceed because of this.

Please help me...

Expecting your earliest reply

Thanking you

Prakash







Similar Threads
Thread Thread Starter Forum Replies Last Post
Compilation Error allyant ASP.NET 2.0 Basics 1 August 5th, 2006 05:51 PM
HowtoRun package from .asp from Package Store? Tom de Koning BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9 0 June 21st, 2006 08:08 AM
don't run my package when i schedule package Isra2005 SQL Server DTS 1 May 17th, 2005 01:34 AM
Setting environment variable from msi package jacob VS.NET 2002/2003 2 March 25th, 2004 06:42 PM
compilation of c# yescarthik C# 3 January 3rd, 2004 07:52 AM





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