Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Package does not exist::Pls. help me out

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Friends,

I am facing a problem related to package.

I have directory structure like this

d:\appl\source\test\mainclass
d:\appl\source\test\subclass
d:\appl\class\test\mainclass
d:\appl\class\test\subclass

i am keeping all of my source code in Source\....

and all of my class files are in class\...

I have one java 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 test not found.

I set my classpath like this:

classpath=.;d:\appl\class

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.

Regards
Sabya
[ March 07, 2005: Message edited by: Sabyasachi Mitra ]
 
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Curse your sudden but inevitable betrayal! And this tiny ad too!
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic