• 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

Help! Compiler Error

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am on p.81 of HFS&JSPs... and running windows... :s

Firstly - it's not really very clear where I am to put my Java file (I put it in the beer/web-inf/classes/com/example/web dir) - so this may be the problem?

Anyway - I typed in the required text and got the following error in dos:

C:\%CATALINA_HOME%\webapps\Beer v1>javac -classpath %CATALINA_HOME%\common\lib\servlet-api.jar:classes:. -d classes src\com\example\web\BeerSelect.java
error: cannot read: src\com\example\web\BeerSelect.java
1 error

If you could help me I would be extremely grateful!

Also have you any recommendations as to a good DB I can use instead of Oracle 9? I am doing a servlet for a company as a final year dissertation. I already have the DB strecture, synonyms and some sample data all in sql format - however Oracle is a pig to install and run, and also has a tendancy to run as a server and conflict with Apache whilst I am developing. I understand it will be quite simple to change the database settings after I have developed the servlet in my environment and then adapt it to the companie's oracle environment (they're also running on the Oracle 10g Application Server - another pig to try and use!).

Any help would be most appreciated - especially as I am about 5 months behind with this now!!!

Thanks

Gemma
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry I won't answer the first part, I'd suggest taking a step back and have a look at your directory structure. It's all quite convoluted but I don't think they're all where you think they are.

re:Oracle - If it's already there set up for Oracle, it'll probably be easiest to stick with it. You can stop the Oracle HTTP server in the windows services without any problems. I always do.

[EDIT - standard Oracle smilie error. I should know better]
[ February 15, 2005: Message edited by: David O'Meara ]
 
Gemma Cameron
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the super fast reply!

OK - I will go back and check everything... I may be back soon...
 
Gemma Cameron
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Found it all - page 72! D'oh!

Thanks so much!
 
Then YOU must do the pig's work! Read this tiny ad. READ IT!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic