cannot compile web application(jar file in WEBINF/lib)



I am trying to compile my webapp. The directory structure is

src
Application.java
WEB-INF
classes
lib
foo.jar

foo.jar contains
main/table.class

and I am accessing this table object from Application.

When I compile
javac -classpath $PATH/WEB-INF/lib/foo.jar Application.java

I get the error "package main does not exist" in line 1 of
Application.java
import main.table;

.



Relevant Pages

  • Re: Getting started on the HP49g+
    ... either the original HP extable lib ... extable2 lib from http://www.hpcalc.org/details.php?id=3940. ... ask again if you have any problem installing libraries. ... compile the string with ASM (listed in the development lib menu, ...
    (comp.sys.hp48)
  • Re: Help on coredll.dll
    ... I have compiled the code using eVC 3.0 and have no problem, ... So I guess I need an extra lib for SIP support in cVC 4.0. ... I use standard SDK and try to compile for ARM device. ...
    (microsoft.public.windowsce.app.development)
  • Compiling test classes that use mock objects from other Netbeans project
    ... Netbeans project. ... main and lib. ... project) so in the main project I had to add a reference to the lib ... fine and allows B.java to compile perfectly. ...
    (comp.lang.java.help)
  • Re: Compiling from native to managed VC++ /clr option dramatically enlarge static lib size.
    ... I guess that you compile all your souce files with /clr. ... need to compile to managed code. ... in addition to that there is a P/Invoke function ... If the lib contains many functions that wrap another functions 1:1, ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Where can I find a C complier
    ... > usually contain information that is usefull to compile the program. ... If a important lib wasnt found, ... Download the httpd package from apache.org ... Install the kernel-source package for the kernel you are running. ...
    (Fedora)