wood burning stoves 2.0*
The moose likes Cattle Drive and the fly likes Servlet compile fails, Mac Osx Leopard, cannot find symbol HttpServletRequest Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "Servlet compile fails, Mac Osx Leopard, cannot find symbol HttpServletRequest" Watch "Servlet compile fails, Mac Osx Leopard, cannot find symbol HttpServletRequest" New topic
Author

Servlet compile fails, Mac Osx Leopard, cannot find symbol HttpServletRequest

margaret gillon
Ranch Hand

Joined: Nov 12, 2008
Posts: 318
    
    5

I followed the set up instructions for the Cattle Drive servlets and the Orion server is working fine on my machine. I can run localhost and Orion's test page. My problem comes when trying to compile BeeServlet.java. I thought I installed the entire JEE sdk when I started the cattle drive. Because I am on Mac it is an older version. I am on 1.5 but I compile the class assignments using -target 1.4 and -source 1.4. Can anyone with Mac tell me if this is a classpath problem or if I have to reinstall the Java?
Thanks!
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9046
    
  10
Try reading this thread and see if you can implement any of the suggestions in it. (I'd try the last one I suggested first).


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
margaret gillon
Ranch Hand

Joined: Nov 12, 2008
Posts: 318
    
    5

Thanks, Marilyn. I will try the instructions you posted.
margaret gillon
Ranch Hand

Joined: Nov 12, 2008
Posts: 318
    
    5

Hi Marilyn,

I went to the link in the instructions you posted and the download now is a linux.bin file, not a zip. I searched the sun site for the file name in your instructions but did not find it. The find went to links that went back to the download page with the binary.

Other ideas? I have Netbeans installed but again it is using the 1.5 JEE. I would be willing to install other packages that might have the older JEE in them. I am also curious as to why the class wasn't found since I have the 1.5 JEE installed (path issues?)
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9046
    
  10
Marilyn de Queiroz wrote:Here's an idea that works for me. Take the j2ee.jar out of your classpath and add orion.jar (from the orion install directory) to your classpath.

Can you compile? I could.
margaret gillon
Ranch Hand

Joined: Nov 12, 2008
Posts: 318
    
    5

Thanks, Marilyn. That was it. I am posting below for others to see...

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet compile fails, Mac Osx Leopard, cannot find symbol HttpServletRequest