• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

class problem

 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,
Im trying to install javaMail and JAF on my pc with win2k and tomcat 3.3.
problem is here:
1. I've puted javamail and jaf in c:\jdk\.
2. then I've puted CLASSPATH in enviroment variables like that: %CLASSPATH%;C:\jdk\javamail-1.3\mail.jar;C:\jdk\jaf-1.0.2\activation.jar;
And here is error i have:
org.apache.jasper.JasperException: Unable to compile C:\tomcat\work\DEFAULT\ROOT\ladu2\a_1.java:7: Package javax.mail not found in import.
import javax.mail.*;
^
C:\tomcat\work\DEFAULT\ROOT\ladu2\a_1.java:8: Package javax.mail.internet not found in import.
import javax.mail.internet.*;
Ok, i tryed to put activation.jar and mail.jar in tomcat/webapps/root/web-inf/lib folder
Still same error..
what im doing wrong? plz help
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
plz mention one more thing, where u r setting the classpath for mail n jaf api. u need to set the classpath for tomcat server in tomcat.bat in bin folder.
try this one n reply soon.
 
Ilja Smoli
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi RAJESH.
thx for yr reply, but still not working...
I've done as u say, here is fragment of tomcat.bat:
set _TOMCAT_HOME=%TOMCAT_HOME%
set _TOMCAT_INSTALL=%TOMCAT_INSTALL%
set _CLASSPATH=%CLASSPATH%;C:\jdk\javamail-1.3\mail.jar;C:\jdk\jaf-1.0.2\activation.jar;
And jsp file:
<%@ page import="java.util.*"%>
<%@ page import="javax.mail.*"%>
<%@ page import="javax.mail.internet.*"%>
....
And also my guess: I have a context in tomcat/conf folder like:
<?xml version="1.0" encoding="ISO-8859-1"?>
<webapps>
<Context path=""
docBase="here is path to folder where jsp files are stored and executed through apache"
debug="0"
reloadable="true" >

</Context>
</webapps>
So compiled classes appearing not in tomcat\webapps\root but in tomcat\work\default\root , and for instance there is no web-inf folder...
maybe it helps u to help me
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic