Sean Rhone
Greenhorn
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?

Sean Rhone
Greenhorn
Posts: 12
Guess I should have posted some of the code -

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
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
Posts: 13411
There is a Sun One forum under Products on this site.