wood burning stoves 2.0*
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
Author

unable to load class

Sean Rhone
Greenhorn

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 com.es.taglib.etags.ViewTag. 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 com.es.tablib.etags.ViewTag

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

Thanks for all your help
Sean Rhone
Greenhorn

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

jsp

<%@ page import="com.es.nbs.consts.*" %>
<%@ page import="com.es.util.*" %>
<%@ 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
Sheriff

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.
http://www.coderanch.com/forums


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

Joined: Jan 10, 2002
Posts: 60774
    
  65

Moving to the Sun One forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: unable to load class
 
Similar Threads
Embedding Struts in JBoss
Integrating Struts2 with BEA Weblogic10
unable to load class
Can't locate class - first program attempt
JasperException: Unable to load JSP