Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
arpanaj@gmail.com - 31 Mar 2006 21:05 GMT
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;
Jon Martin Solaas - 04 Apr 2006 12:09 GMT
> I am trying to compile my webapp. The directory structure is
>
[quoted text clipped - 16 lines]
> Application.java
> import main.table;

What's in the PATH variable? Usually it's the OS search-path for
executables. Doesn't make much sense to put that in your classpath.
Maybe you can use the `pwd`command? (Note backward quotes).

javac -classpath `pwd`/WEB-INF/lib/foo.jar Application.java


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.