• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Pakage does not exist

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

I am getting package does not exist error while compiling the servlet code.
Can you please help me on this..





Thanks in advance..
[ December 31, 2007: Message edited by: Gopi G ]
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Those missing classes can't be found if you compile from within the .../web/ directory, and are not using the classpath option. The easiest would be to compile from within the D:\Gopi\SCWCD\src directory, using a command like "javac com\example\web\CoffeeSelect.java"
 
Gopi G
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ulf Dittmer:
Those missing classes can't be found if you compile from within the .../web/ directory, and are not using the classpath option. The easiest would be to compile from within the D:\Gopi\SCWCD\src directory, using a command like "javac com\example\web\CoffeeSelect.java"



Thanks for the reply..

I have tried to compile it in under Gopi\SCWCD. Then also I am getting the same error. Can you please tell me which classpath option I have to use for compile CoffeeSelect.java .
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was assuming that CoffeEexpert.java has been compiled before, and that CoffeeExpert.class is available in the src/com/example/model directory.

Also note that you should not compile in the Gopi\SCWCD directory (as you said you did) but rather in Gopi\SCWCD\src (which I mentioned in the previous post).

You can also compile both classes in one go by issuing the command

This may be the easiest way.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic