This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unable to load class

 
Sean Rhone
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 87
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64186
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Sun One forum.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic