File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Java Products and Servers and the fly likes unable to load class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "unable to load class" Watch "unable to load class" New topic

unable to load class

Sean Rhone

Joined: Dec 13, 2004
Posts: 12
I think I posted this in the wrong section, so here it is again.

I'm back again with more J2EE questions. I've downloaded Sun ONE Studio 5 and am trying to play around with some changes to the application I have inherited. I've mounted the directory with all the code and have made some minor changes (only hard coded text on a jsp page), I went to "build all" and now I'm getting errors stating "Unable to load class I have the directory and the tag library but I'm guessing the path could be the issue.

Currently the directory I have mounted is c:\source\web which contains all source code. The tag lib are under c:\source\web\web-inf\tlds and the classes are under c:\source\web\web-inf\classes\com\es\taglib\etags.

The etags.tld which is referenced has a <tagclass> of

This all looks (to me) like it should work but is my directory setup correctly?

Thanks for all your help
Sean Rhone

Joined: Dec 13, 2004
Posts: 12
Guess I should have posted some of the code -

error while compiling - web/billing/lineitems/search_li.jsp [1:-1] File "/web/billing/lineitems/condition" not found


<%@ page import="*" %>
<%@ page import="*" %>
<%@ tablib uri="condition" prefix="cnd" %>
<%@ tablib uri="etags" prefix="etags" %>
Gert Cuppens
Ranch Hand

Joined: Jul 13, 2003
Posts: 87
Im' working under Windows XP with Eclipse and Tomcat. So, I might have other ways to solve this problem.
I had to add 2 environment variables, namely JAVA_HOME and CATALINA_HOME, to let Windows know where it should look for the commands like javac. I added these variables using control panel - system - tab "advanced".

Installing Tomcat meant also installing some JAR-files in C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib. If you want to use some classes found in jars, you should install these jars where your web server can find them.

As IDE, I use Eclipse and I had to show Eclipse the path to some JAR's I'd like to use. To do this, I had to change the properties of my Java project and change the Build Path.

I'm sure in whatever environment you are working, the same principles are followed. Try to detect where they are.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

There is a Sun One forum under Products on this site.
They could probably help you set up your environment better than we could.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

Moving to the Sun One forum.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: unable to load class
It's not a secret anymore!