JRE doesn't find TcpConnection.class

Hi.
I've got a problem using the email-function of the UTL_SMTP package.
I copied the example from the Documentation and tried to make it work, but if i start it following Error occures:
ORA-29540: Class oracle/plsql/net/TCPConnection not found
ORA-06512: in "SYS.UTL_TCP", line 533
Installed is Oracle 8.1.6.1 Enterprise Edt.
When i searched in the Oracle directiory i found the file "TcpConnection.class". The class name is TcpConnection, too, regarding to the output of javap.
Could this be the Prolem? ("TCPConnection" called by Oracle, but class name is "TcpConnection")
And if so, can i solve it or do i need a patch?
Thanks for your help.
Regards,
Christoph

Finally it works!
The Problem was that the Java VM was not installed. The email function uses a Java class, so the VM is needed.
null

Similar Messages

  • Doesn't find import classes...

     

    Hi Wei,
              I removed everything that was related to JVIEW in the script and it's the
              same thing :(... can you explaine one thing to me?
              My GenerateHTML bean is compiled and if I don't import anything in it, it
              works fine and I can call methods of it... no problem. But when I import
              some libraries (jar files) in my, it compiles fine but when I want to use it
              in my jsp page it can't find the import packages... why? It's already
              compiled and those packages are in my system classpath... it even works if I
              open a prompt and do it at the commandline!
              Is there a rule to follow when using a bean in jsp that applies to importing
              packages in that bean?
              Thanks !
              Regards,
              David Pare
              "Wei Guan" <[email protected]> wrote in message
              news:[email protected]...
              > You have JDK and JVIEW in your startup script, and it is hard for me to
              > figure which one you are using. Without accessing your machine, it will be
              > hard for me to figure out what's wrong. If you are using jview, there is
              no
              > /cp to specify classpath in your script.
              >
              > I suggest you make your startup script simple, and check your GenerateHTML
              > is in CLASSPATH (jview) or in WEBLOGIC_CLASSPATH (JDK). If it is still not
              > working, try to use javap to figure whehter your class is in CLASSPATH
              > (jview) or in WEBLOGIC_CLASSPATH (JDK).
              >
              > My 2 cents
              >
              > --
              > Cheers - Wei
              > David Pare <[email protected]> wrote in message
              > news:[email protected]...
              > > Hi Wei,
              > >
              > > I tried that already but it doesn't work...
              > >
              > > I have attached 3 files to this mail:
              > >
              > > - Merchant.jsp
              > > - GenerateHTML.java
              > > - wls.cmd
              > >
              > > if you could take a look I would appreciate it :)
              > >
              > > Thanks in advance!
              > >
              > > Regards,
              > >
              > > David Pare
              > > Accor Corporate Services
              > >
              > > Wei Guan <[email protected]> wrote in message
              > > news:[email protected]...
              > > > Just put these classes in WEBLOGIC_CLASSPATH, do not put them in
              > > > JAVA_CLASSPATH.
              > > >
              > > > My 2 cents.
              > > >
              > > > --
              > > > Cheers - Wei
              > > > David Pare <[email protected]> wrote in message
              > > > news:[email protected]...
              > > > > Hi,
              > > > >
              > > > > I have a simple .jsp file that uses a bean and in that bean
              import
              > > some
              > > > > classes... it compiles perfectly but then when I run my .jsp file,
              WLS
              > > > tells
              > > > > me that it cannot find the classes I'm importing in my bean? I don't
              > get
              > > > it!
              > > > >
              > > > > I've put those import packages in the CLASSPATH and
              > > WEBLOGIC_CLASSPATH...
              > > > > but it doesn't work!
              > > > >
              > > > > Any help would be appreciated :)
              > > > >
              > > > > FYI: I'm using WLS 5.1 SP 3 on NT 4 SP5
              > > > >
              > > > > Thanks!
              > > > >
              > > > > David Pare
              > > > > ACS
              > > > >
              > > > >
              > > > >
              > > > >
              > > > >
              > > > >
              > > >
              > > >
              > >
              > >
              > >
              >
              >
              

  • JRE doesn't find the main class inside a JAR archive file

    Hello everybody,
    I've written a small application in Java, using NetBeans. Running my application inside NetBeans works fine, but I can't run it from the console or by double clicking the jar file.
    Running it from the console I get the following error message:
    java -jar TestApplication.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: tst.Benchmark
       at gnu.java.lang.MainThread.run(libgcj.so.81)
    Caused by: java.lang.ClassNotFoundException: tst.Benchmark not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:TestApplication.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
       at java.net.URLClassLoader.findClass(libgcj.so.81)
       at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.81)
       at java.lang.ClassLoader.loadClass(libgcj.so.81)
       at java.lang.ClassLoader.loadClass(libgcj.so.81)
       at gnu.java.lang.MainThread.run(libgcj.so.81)I know that these errors often come when the class path is not set in the right way, and using a single java file, you can fix this by passing the parameter "-cp ."
    I tried this with the jar file but it does not work and using "-cp TestApplication.jar tst/Benchmark" didn't work either.
    Inside the jar file I have the META-INF Folder and a "tst" Folder which contains all my class files. And I've set tst.Benchmark as the main class, this also stands in the manifest file correctly.
    Do you have any ideas what could be wrong?
    Greetings JavanianGuy

    This line
    at gnu.java.lang.MainThread.run(libgcj.so.81)says that you're using GNU's Java, not Sun's Java. They are not the same. GNU Java is incomplete.
    You'll need to ask this question at the GNU Java site.
    Recommendation: Use Sun's Java

  • JRE can�t find the .class file

    Hello
    I have installed JRE 1.3 on a win98 running Computer. When i execute "jre anforderung.class -classpath C:\test\" in MS-Dos then the following Problem occurs : Cannot find File anforderung.class. I already Typed it in DOS anford~5.cla but the same thing happened. I renamed it into test.class, but always the same Error. What can i do?
    By the way, i came to this idea after i spend many hours to make my applet run in Netscape. The applet uses mySQL-Database Connection, and i�m at end with my ideas and strength. Maybe someone can tell me where i can find professional Help with my always Suffering in making my java-applets run. My last idea is to transform my files into an application, but... takes time. So Please HELP.

    That doesn�t work, but i found out I have to do this by appletviewer.exe and start the index.html.

  • Tomcat 4.1 class problem. Doesn't identify the class.

    Hi
    I just installed J2SDK and tomcat in windows xp. I've made jsp files and beans. The first page is customerlogin.jsp which takes user id and password in a form. It sends the request to authenticate.jsp. Would you please give me a few important steps that need to be done?
    My directory structure is as follows:
    C:\Tomcat 4.1\Webapps\Log -> jsps
    c:\Tomcat 4.1\Webapps\Log\WEB-INF\classes\Log -> java beans
    The jsp doesn't find AuthenBean class. It complains about it.
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 1 in the jsp file: /authenticate.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\Tomcat 4.1\work\Standalone\localhost\Log\authenticate_jsp.java:43: package Log does not exist
    Log.AuthenBean Authen = null;
    ^
    ******** AuthenBean is : *********
    package Log;
    public class AuthenBean{
         String userid;
         String password;
         public void setUserid (String tuserid) {
                   userid = tuserid;
         public void setPassword (String tpassword) {
                   password = tpassword;
         public String getUserid() { return userid; }
         public String getPassword() { return password; }
    ******** Authenticate.jsp ***********
    <jsp:useBean id="Authen" class="Log.AuthenBean" scope="session"/>
    <jsp:useBean id="select" class="Log.ExecuteQuery"/>
    <jsp:setProperty name="Authen" property="*"/>
    <%
    String id = Authen.getUserid();
    String passwd = Authen.getPassword();
    out.print("User id is " + id);
    out.print("Password is " + passwd);
    %>
    <%@ page import="java.util.Vector" %>
    <% Vector aResult = select.getResult();
    select.connect();
    boolean idCheck = false;
    String query = new String();
    query = "SELECT EMPLOYEE_ID, FIRST_NAME, LAST_NAME, PASSWORD, COUNTY, AREA FROM EMPLOYEE, LOCATION WHERE EMPLOYEE_ID = '" + id + "' AND PASSWORD = '" + passwd + "' AND (EMPLOYEE.LOCATION_ID = LOCATION.LOCATION_ID)";
    select.select(query, 6);
    select.disconn();
    int size = aResult.size();
    if(size > 0){
    idCheck = true;
    if(idCheck)
         session.setAttribute("loginId",id);
         session.setAttribute("firstName",(String)aResult.elementAt(1));
         session.setAttribute("lastName",(String)aResult.elementAt(2));
         session.setAttribute("county",(String)aResult.elementAt(4));
         session.setAttribute("area",(String)aResult.elementAt(5));
    %>
    <jsp:forward page="customer.jsp"/>
    <%
    else
    String error_msg = "Error: User Authentication Failed!";
    String link = "customerlogin.jsp";
    session.setAttribute("prevPage", link);
    session.setAttribute("errorMsg", error_msg);
    }%>
    ****** web.xml in Log\WEB-INF is **********
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <servlet>
    <servlet-name>Log\AuthenBean</servlet-name>
    <servlet-class>Log\AuthenBean</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>Log\ExecuteQuery</servlet-name>
    <servlet-class>Log\ExecuteQuery</servlet-class>
    </servlet>
    </web-app>
    Your help would be appreciated
    Thanks!

    Your problem is in web.xml. Only servlet classes need to be mapped. Your bean class should not be.
    ****** web.xml in Log\WEB-INF is **********
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web
    Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <servlet>
    <servlet-name>Log\AuthenBean</servlet-name>
    <servlet-class>Log\AuthenBean</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>Log\ExecuteQuery</servlet-name>
    <servlet-class>Log\ExecuteQuery</servlet-class>
    </servlet>
    </web-app>
    If you have only jsps, u mau use
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web
    Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    </web-app>
    Hope it works.
    Hafizur Rahman
    SCJP

  • Help! - JRE can't find classes that use inner classes!

    Whenever I try to launch an app using the JRE, if the class was built with an inner class definition, the JRE says it can't find the class.
    For instance:
    I created a class called GUI, which contains anonymous inner class definitions for the button handlers: addActionListener(new ActionListener()){, etc. 
    When I compile this class I get GUI.class and GUI$1.class
    When I try to launch this using the JRE:
    jre -cp c:\progra~1\myApps GUI
    The JRE spits out
    'Class not found: GUI'
    BUT if I go back and remove the action handlers so that the only compiled class file is GUI.class (not GUI$1.class) then the JRE can find the class no problem.
    What in the good Lord's name is going on here?

    Thanks for the response. Got the 1.2.2 version of the JRE, where I guess you no longer invoke jre.exe (no such file exists) but java.exe instead (not well documented).
    Also, the newer version of the JRE has no problems locating classes, so I guess I'm OK.

  • JAR: - Could not find main class

    I'm sorry, I know this issue has been posted before but I am a bit confused with my situation.
    After making a jar on my computer, I run it, and the program loads and runs perfectly.
    However, when I try the jar on someone else's computer, it doesn't work, and gives the "could not find main class" message. The other computer has JRE but not JDK, so I don't know if that makes a difference.
    Anyways, my main class file is located in a package called hw2, and the whole project is located in a folder called HW2. So my class file is located in something like C:\School\HW2\hw2\Main.class.
    My Manifest.txt file is located in the \School\HW2 directory and has the following with a new line at the end:
    Main-Class: hw2.Main
    At the command prompt, I go to my C:\School\HW2 directory and I type the following to create the jar:
    jar cvmf Manifest.txt test.jar hw2\*.class
    My jar file has the following contents:
    META-INF/
    META-INF/MANIFEST.MF
    hw2/Bank.class
    hw2/GUIInterface.class
    hw2/Main.class
    Did I write the manifest.txt file correctly? Am I in the right directory when creating the jar file? Am I executing the jar command wrong? How come it works on my computer but not on someone else's?

    Are you certain you're executing the jar in the same way on both machines?
    For example, are you sure you're not executing the unjarred class files when you run on your local machine?

  • Could not find main class program will exit error while installing Oracle Client 32 bit on windows 7 32 bit OS?

    Hi Experts,
    When I am installing Oracle client 32 bit software on Windows 7 32 bit I am getting error as "could not find main class program will exit"
    I have tried installing latest Java software 7 also JDK 1.6.0_34 still I am getting the same problem below is my " oraparam.ini " details
    [Oracle]
    DISTRIBUTION=TRUE
    SOURCE=../stage/products.xml
    LICENSE_LOCATION=
    BOOTSTRAP_COMPS="oracle.swd.oui:11.1.0.6.0,oracle.swd.oui.core:11.1.0.6.0,oracle.jdk:1.5.0.1.1"
    JRE_SCRATCH_LOC=jdk/jre
    JRE_MEMORY_OPTIONS=" -mx96m"
    DEFAULT_HOME_LOCATION=product\11.1.0\client
    DEFAULT_HOME_NAME=OraClient11g_home
    NO_BROWSE=/net
    NLS_ENABLED=TRUE
    BOOTSTRAP=TRUE
    EXT_JLIB=../stage/ext/jlib
    OUI_VERSION=11.1.0.6.0
    ## JRE_VERSION is only for Windows. This is to copy accessbridge dlls
    JRE_VERSION=1.4.2
    ACCESS_DIR=../install/access
    #SHOW_HOSTNAME=ALWAYS_SHOW shows the hostname panel always
    #SHOW_HOSTNAME=NEVER_SHOW does not the hostname panel
    #SHOW_HOSTNAME=CONDITION_SHOW shows the hostname panel on condition
    SHOW_HOSTNAME=NEVER_SHOW
    #THIN_JDBC_FILENAME is optional and defaults to classes12.jar
    #The value specified for this should be packaged with OUI, and should
    #be relative to <OUI expanded stagedir>/jlib/
    THIN_JDBC_FILENAME=classes12.jar
    #RUN_OUICA specifies the batch script name that needs to be run
    #The script is ouica.bat for win32, and ouica.sh for solaris.
    #If the value is not specified, then the OUICA script is not run
    RUN_OUICA=ouica.bat
    CLUSTERWARE={"oracle.crs","10.1.0.2.0"}
    SILENT_VARIABLE_VALIDATION=TRUE
    [Generic Prereqs]
    MIN_DISPLAY_COLORS=256
    [IMAGES]
    FILE1=images/billboards.gif
    LICENSE_LOCATION=license.txt

    Duplicates of the other two times you asked this question:
    https://forums.oracle.com/thread/2559093
    https://forums.oracle.com/thread/2558027
    (and this time, your question does not appear to have anything to do with this particular forum space, either)
    Duplicate is locked.
    Do not EVER multi--post.   That is extremely bad forum etiquette.

  • Cannot find package/class symbol

    hello. i'm using netveans for the first time. i have a java application with 2 classes... pb.java with public class pb int package svr and cl.java with public class cl in package cli
    that is..
    file class package
    pb pb svr
    cl cl cli
    pb.java compiles properly cl.java gioves error.
    the error is in the following lines of code...
    pb obj1 = new pb();
            pb obj2 = new pb();i'm trying to make an object fo type pb from cl.java. the error i get is...
    cannot find symbol
    class pb
    location cli.cl
    i alse tried puttin svr.pb instead of pb but no use.
    the entire cose is as follows...
    pb.java
    * pb.java
    * Created on December 4, 2006, 8:56 AM
    package svr;
    public class pb
        private double balance;
        private double []lt = new double [10];
        private int i=9;
        public void deposit(double amt)
            if(amt<=0)
                System.out.println("Enter amount greater than 0");
            else
                balance=balance+amt;
                if(i>=0)
                    lt=amt;
    else
    for(int j=9;j>=0;j--)
    lt[i]=lt[i-1];
    lt[0]=amt;
    public void withdraw(double amt)
    if(amt<=0)
    System.out.println("Enter amount greater than 0");
    else
    if(amt>balance)
    System.out.println("Balance lower than amount entered");
    else
    balance=balance-amt;
    if(i>=0)
    lt[i]=-amt;
    else
    for(int j=9;j>=0;j--)
    lt[i]=lt[i-1];
    lt[0]=-amt;
    public void bal()
    System.out.println("Balance: "+balance);
    public void lts()
    System.out.println("Last 10 Transactions");
    for(int j=i;j>10;j++)
    System.out.println(lt[j]);
    public void statement()
    lts();
    bal();
    cl.java
    * cl.java
    * Created on December 4, 2006, 8:58 AM
    package cli;
    class cl
        public static void main(String[] args)
            pb obj1 = new pb();
            pb obj2 = new pb();
            obj1.deposit(100.50);
            obj1.statement();
            obj2.deposit(200.75);
            obj2.statement();
            obj1.withdraw(25.50);
            obj1.statement();
            obj2.withdraw(100.25);
            obj2.statement();

    For a beginner these tools are worst, because they
    hide all the stuff a programmer needs to know to find
    his way around Java. They should spend a few weeks
    with the command line and a good text editor before
    switching.
    Just because an IDE does something for you, it
    doesn't mean you don't need to kno wwhat it does.
    Unless you volunteer to handle all "how do I do X in
    Netbeans/Eclipse/Whatever", JAR and classpath
    questions posted here by newbies yourself.I suppose I can agree with that to some extent. I wouldn't suggest to anyone that they just blindly trust whatever code the IDE inserts automatically.
    But there's nothing wrong about learning by example. The IDE is willing to teach proper syntax, and eclipse will give suggestions about capitalizing class names and making constants all-caps.
    There are things that frustrate new programmers where an IDE will be helpful, especially if the entire API is uncharted territory.

  • My JSP can't find a class file

    Hi
    I am trying to view a JSP but I get ClassNotFoundException. I know that it means that it can't find the class but I can't understand why.
    my directory structure:
    Intranet->source
    ->jsp
    ->WEB-INF->classes->source-><class file here>
    first line of .java file:
    package source;
    JSP code:
    <%@page import="java.sql.*, source.*, java.util.*;" %>
    <jsp:useBean id="dbConnect" scope="session" class="source.DBConnect">
    <jsp:getProperty name="dbConnect" property="jdbc:odbc:Auto_Intranet" />
    </jsp:useBean>
    Must I create an environment variable for 'Windows': with classpath " .....\WEB-INF\classes"
    The Windows environment variable doesn't exist----using XP Pro

    Looks right to me.
    You don't need a classpath variable. Web containers ignore it anyway.
    Which class is not found? source.DBConnect?
    Is DBConnect in a package called source?
    Is your database driver in the web-inf/lib directory?
    Please post the full error message with stack trace - it will be easier to sort out.
    Good luck,
    evnafets

  • Cannot find the class!! - URGENT!!!

    I have an JSP archive and I�m using the Tomcat 4. I did a class named ConnectionBean that connect with a database.
    when i start my JSP, the Apache server show me an error page that say it�s impossible to find the class "ConnectionBean". I tryed to put it in the same directory of the JSP file, but happened the same error.
    I tryed to put it in the directory "apache tomcat 4\lib\" but i have the same error.
    I tryed to put it on the directory "jre\lib\ext\ of my JVM, but i have the same error!
    Please, somebody can help me to do my JSP find this class?
    Thanks for all

    after you compile your class you should put the .class in the WEB-INF/classes/ directory
    lets suppose that you wrote in the top of your class
    package com.mydbconnection
    this means that your class should be in
    WEB-INF/classes/com/mydbconnection/MyClass.class
    in your JSP have been like this
    <jsp:useBean id="DBConn" scope="page" class="com.mydbconnection.MyClass" />
    hope this help enough :)

  • Cannot find symbol - class whatever ... Arraylists!

    Hi all,
    Having a problem creating an Arraylist. Firstly, I thought you could have an ArrayList of what ever you wanted. For example, private ArrayList<Anything> myarraylist... that would be an ArrayList of "anything".
    I'm trying to create an ArrayList to store locations. However, these locations are stored inside the objects of another class (as a field).
    When I go to do private ArrayList<Locations> it says it cannot find symbol - class locations. Obviously it's looking for a class that doesn't exist. How would I store the locations of rallies into the collection, that are stored inside the object of another class (i.e. a RoadTrip object which has details of dates, location, codes etc).
    Hope you can understand that...!
    Cheers

    You can create as many RoadTrip ArrayLists as you want, as long as the variables that point to the ArrayLists have unique names.
    ArrayList<RoadTrip> al1 = new ArrayList<RoadTrip>();
    ArrayList<RoadTrip> al2 = new ArrayList<RoadTrip>();Nothing wrong with that.

  • Cannot Find Servlet class Error

    Hello Everybody,
    i have written a simple servlet and compiled it using j2sdk1.4 version and jsdk.jar.But when i try to load the servlet on the javawebserver2.0 it says it is unable to find servlet class though i have put the class file in the servlets directory.i even put the class in the classes directory.It works fine when i compile the same class using j2sdk1.3 version and jsdk.jar.
    Please guide me as to what should be done to overcome this problem.
    Thanks in Advance
    Manikantan Iyer

    Hi mani2k_in ,
    JavaWebserver2.0 --> This web server, by default uses JDK 1.1.8.
    If you have compiled your classes using heigher versions, Webserver won't be able to find those classes which were added after JDK1.1.8.
    That was the first problem regarding the J2sdk versions you have used.
    You can override the default JVM usage of JavaWebServer2.0
    Second the servlet problem.
    Your environment should able to lookup the classes dyanmically jsdk.jar or servlet.jar.
    If you are able to compile the servlet successfully, place it in servlets directory and access the servlet from a browser using the url http://servername:portnumber/servlet/Servletclass
    Although you have placed your class file in servlets directory, you should access by using servlet in the URL.
    If it doesn't solve your problem, please come back with more details.
    Thanks,
    Sanath Kumar

  • "cannot find this class" erro while creating Background Callable Object.

    Hi All,
    I am facing "cannot find this class" while creating Background Callable Object.
    I followed the following document for Creating Background Callable Object.
    [Creating Callable Objects for Background Execution|http://help.sap.com/saphelp_nwce10/helpdata/en/53/cde385301f4aa3b8e77a92cd46bff3/frameset.htm]
    After giving the fully qualified java class name in the Implementation Class Name when i press next i am getting the error.
    Please suggets me in solving this issue.
    Regards,
    S.V.Satish Kumar
    Edited by: Sathish Kumar SV on Apr 4, 2009 10:34 AM

    Hi, kavita.
    First, make sure you choosed the correct container when you created the background CO.
    Second, make sure your package name was "com.examples.bckgco" and class name was "UserDetailsCallableObject". The exception  which you got just means you entered incorrect name.
    It doesn`t relate to your program.
    Best Regards.
    Louis Huang.

  • Cant find my classes when exporting customized MAM application

    Hi all,
    The problem i'm facing here is that the .war of my customized MAM application i deployed through WebConsole cant seem to find the classes i created.
    I've tried to export the war file with and without the source code of the project but it doesn't change anything.
    Have any of you experienced this ?
    Regards

    Hi Sivakumar,
    Thanks for your reply. The home page of the application is shown and i can display every standard menus. The onyl ones i cant manage to display are the customized ones. The error message i get is the following:
    Event handler not found ZonGoRecep in com.sap.mbs.mam.home.control.HomeManagement.
    Component: home
    Display: com.sap.mbs.mam.home.control.HomeManagement
    Event: ZonGoRecep
    Error code: E501
    Error message: com.sap.mbs.core.api.CAFException
    and
    com.sap.mbs.core.api.CAFException: Event handler not found ZonGoRecep in com.sap.mbs.mam.home.control.HomeManagement.

Maybe you are looking for