This week's book giveaway is in the
We're giving away four copies of
Node.js in Action
and have Mike Cantelon, Marc Harter, T.J. Holowaychuk and Nathan Rajlich on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Node.js in Action
this week in the
Package does not exist::Pls. help me out
Joined: Feb 09, 2005
Mar 07, 2005 02:20:00
I am facing a problem related to package.
I have directory structure like this
i am keeping all of my source code in Source\....
and all of my class files are in class\...
I have one
program called primins.java in d:\appl\source\test\mainclass folder and package test.maiclass.
Now one more program in d:\appl\source\test\subclass called priminsuflic.java, in this program i am importing test.mainclass as priminsuflic extends primins class from d:\appl\class\test\mainclass.
Now when i am trying to compile priminsuflic.java, it gives a error that package
I set my classpath like this:
One more thing: i am using CodeGuide IDE for java, is there any issue with that ?? i am using Win2k prof and changing classpath in controlpanel->system->env.variable.
Can anybody pls. help me,i am not getting where its going wrong.
[ March 07, 2005: Message edited by: Sabyasachi Mitra ]
Joined: Aug 19, 2003
Mar 07, 2005 05:02:00
mainclass shud have a package declaration like package appl.source.test and not package test.maiclass
Neways to test the whole prog can u plz post ur code?. Also the exception stack trace?
[ March 07, 2005: Message edited by: Nischal Tanna ]
subject: Package does not exist::Pls. help me out
Package Problem - Help Please
Exception in thread main
SCJP chapter 10 : Development
problem with packages and classpath
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014