jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes Help! Compiler Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Help! Compiler Error" Watch "Help! Compiler Error" New topic

Help! Compiler Error

Gemma Cameron

Joined: Feb 15, 2005
Posts: 14
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!!!


David O'Meara

Joined: Mar 06, 2001
Posts: 13459

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

Joined: Feb 15, 2005
Posts: 14
Thanks for the super fast reply!

OK - I will go back and check everything... I may be back soon...
Gemma Cameron

Joined: Feb 15, 2005
Posts: 14
Found it all - page 72! D'oh!

Thanks so much!
I agree. Here's the link: http://aspose.com/file-tools
subject: Help! Compiler Error
It's not a secret anymore!