Problem in finding java class file

I am writting an application using servlets , JSP and a simple java classfile. The simple java class file is for connection pool and the name of connection pool class is DBConnectionManager . I am using JavaWebserver2.0 and I have placed this class file in .\JavaWebserver2.0\classes
I am placing my servlets in .\JavaWebserver2.0\servlets folder. Since I am using wfm package so my servlets are placed in .\JavaWebserver2.0\servlets\wfm .
The problem is with compiling the servlet placed in wfm folder . I get the following error:-
TestServlet.java:11:cannot resolve symbol
symbol: class DBConnectionManager
location: class wfm.TestServlet
However when I try to compile this class in servlets folder and remove the package statement from the source file, it compiles and works very fine. I am having lot of confusion as the class DBConnectionManager is in classpath but even then compiler gives error. The same class when placed in servlets folder and package statement is removed works very fine.
Kindly help.

Hi,
Is the DBConnectionManager class declared public?
Does the TestServlet import the package that contains the DBConnectionManager?
This is all I can come up with, with the current information.
Cheers,
--Arnout                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Where to find Java Class File Specification for Java 5.0?

    Where to find Java Class File Specification for Java 5.0?
    thank you in advance.

    same place you found it for 1.4Can u give more details? I thought the class spec for Java 1.4 is the same as Java 1.2.
    anyone can tell where to find Java Class File Specification for Java 5.0?
    Thanks.

  • Error occured when using javap (Java Class File Disassembler)

    Hi,
    I have tried to use Java Class File Disassembler by using javap and i'm getting the error shown below,
    C:\> javap abc.class
    ERROR: Could not find abc.class
    abc.class present in C:\ drive.
    Please let me know how to solve the problem
    Thanks in Advance
    Soundar

    Hi,
    Thanks for your information, it works fine. Please let me know is there any option to display the method and variable implemation in abc.class.
    I have tried javap abc it displays the method name only.
    Thanks in advance,
    Soundar

  • Coverting java .class files to .bin files

    Dear all :
    I am in a need to convert a java .class files to binary format file (i.e.) bin i mean an executable files in Linux.
    Is there any possibility using JNI or anyother method to achieve it.
    Please post me your suggestions...
    Thanks in advance
    hope my problem will be solved.
    regards
    silviya

    I can help on this subject, I heard about some
    programs that can convert the .exe files to .bin
    files, so you can go and search for such programs, if
    you hava found them you should go to the following
    URL:
    http://www.ej-technologies.com/products/exe4j/overv
    iew.html
    so you can get the exe4j program which
    can made exe files for Java programs then after
    installing the program you must enter the license key
    and the user name and the company name, user name and
    company name can be anything you want, but the
    license key must be a valid license key here I'm
    giving you one of them and I hope it will work
    successfully: ( A-XVK103616F-3jpbhxrlcljd )
    after that you should declare a .exe file for your
    project in java after that you must use the
    exe2bin program to convert the .exe
    file to a .bin file and I hope that you will be
    successful in your target.
    And I'm ready to help you anytime, cause you seems to
    be a good girl trying hard to learn and be successful
    person in this life.i did as u said n i got a problem after i convert jar file to exe....i can't find any program which can convert .exe file to .bin file can u give me any suggestion

  • How to convert java .class file to .dll file

    hi,
    I got a problem, I have to convert my java .class file to .dll file. Microsoft VC++ program will invoke the converted .dll file.
    Is there any other possibility.
    I was confused.
    Cam any body help me. If you are having solution for the can you send to my [email protected] account.
    thanks,

    No, it is not possible to do what you are suggesting. Yes, you could produce a DLL that wraps the JVM and loads your java class exposing a C and/or C++ callable interface, but that is a lot to go through unless your class is VERY complex. Otherwise, you might want to just create and maintain two implementations.

  • In which directory should i keep java class files in oracle apps

    hi
    I have one problem, In which Top & directory should i keep java class files in oracle apps
    krishna

    Hi
    By itself its available in oracle\visappl\au\11.5.0\java\
    thats were the location needs to be placed in the apps.zip.
    Thanks
    Riyas

  • Cannot find the class file

    Hi All,
    Can any one help me regarding the issue?
    Error:
    package com.support.misc.feedback
    I am getting the following error for the above line. But I have created the Hierarchy in folder structure. But still it is throwing the error.
    1. Cannot find the class file for com.sapportals.htmlb.page.DynPage
    2. This compilation unit indirectly references the missing type com.sapportals.htmlb.page.DynPage (typically some required class file is referencing a type outside the class path)     FeedbackBean.java
    Thanks in Advance.
    Message was edited by: Gowsika Kannan

    Hi Gowsika,
    the class needed is located in htmlb.jar which can be found under <irj-root>/WEB-INF/portal/portalapps/com.sap.portal.htmlb/lib
    You need to integrate this jar in your .classpath
    Hope this helps,
    Robert
    PS: Please do not post the same question 3 times

  • Cannot find the class file for com.sap.portal.services.api.connectorgateway

    Hi,
    I was trying the "How to BI JAVA SDK in a Portal iView and get the following error.
    The project was not built since its classpath is incomplete. Cannot find the class file for com.sap.portal.services.api.connectorgateway.IConnectorGatewayService. Fix the classpath and try rebuilding this project.
    I have the following in my portalapp.xml file
    <property name="SharingReference" value="com.sap.portal.ivs.connectorservice"/>
    and i have also added the jar file "com.sap.portal.ivs.connectorservice_api" in the set of lib's
    Has some faced a similar issue? or can someone suggest how I could possibly resolve this.
    Thanks,
    Smitha

    Hi Smitha:
       My webdynpro dc was build failed for "This compilation unit indirectly references the missing type com.sap.engine.services.webservices.espbase.client.dynamic.content.GenericObject (typically some required class file is referencing a type outside the classpath)".
    How should i do?  Thank you!

  • Where to keep the java class file which is being used from a form?

    Hi,
    Actually I am developing a form which has a bean area and the data will be displayed in the bean area in the form of grid. And I will register this form with apps and will run the from Oracle apps. I want to know that there is a java class file that is being refered by the form, where should this java class file be placed and is there any other places where any changes are required so that the form runs correctly from the Oracle apps and can find the java class file.
    I am very thankful to each and everyone who will be able answer this question of my.

    do you mean decompiling? there are tons of java decompilers available out there, what exactly are you trying to do here?

  • Loading Java Class File in JSP page

    I'm trying to load a java class file from a jsp page.
    (e.g. MyFile.java <-- Source "MyFile.class<--Class file of MyFile.java")
    jsp page
    <%@ include file = "MyFile.class" %>
    <HTML> // HTML Tags are here
    MyFile.java
    A normal java source file that has "public static void main" in it.
    My jsp page can display it's contents, 'except' for showing e.g. "1235%%215648%%public%%$$@##" through out the page...
    My guess is that it can't display my java class file..
    Can anyone please help me solve this problem of mine ?
    Thanks in advance : )
    Yours Sincerely,
    RainbowEnergies

    This is my JSP file.
    <HTML>
    <HEAD>
    <TITLE>Activity Games</TITLE>
    </HEAD>
    <%
    String name = "";
    String id = "";
    name = session.getAttribute("name").toString();
    session.setAttribute("name",name);
    id = session.getAttribute("id").toString();
    session.setAttribute("id",id);
    %>
    <BODY bgcolor="#cc99ff" text="#000000" link="#E3E3E3" vlink="#CCCCCC" alink="#FF0000">
    <H3><%=name%>, you have enter Activity Games</H3>
    <%@ page import="Games.Lufia.*" %>
    <%Lufia lufia = new Lufia();%>
    </BODY>
    </HTML>
    After I execute...
    An error occurred at line: 18 in the jsp file: /jsp/ActivityGames.jsp
    error: File C:\Program Files\Apache Tomcat 4.0\webapps\website\WEB-INF\classes\Games\Lufia\Lufia.class does not contain type Games.Lufia.Lufia as expected, but type Lufia. Please remove the file, or make sure it appears in the correct subdirectory of the class path.
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\Standalone\localhost\website\jsp\ActivityGames$jsp.java:85: Class Games.Lufia.Lufia not found.
    Lufia lufia = new Lufia();
    But if I comment this out....
    This is my JSP file.
    <HTML>
    <HEAD>
    <TITLE>Activity Games</TITLE>
    </HEAD>
    <%
    String name = "";
    String id = "";
    name = session.getAttribute("name").toString();
    session.setAttribute("name",name);
    id = session.getAttribute("id").toString();
    session.setAttribute("id",id);
    %>
    <BODY bgcolor="#cc99ff" text="#000000" link="#E3E3E3" vlink="#CCCCCC" alink="#FF0000">
    <H3><%=name%>, you have enter Activity Games</H3>
    <%@ page import="Games.Lufia.*" %>
    <%//Lufia lufia = new Lufia();%> <--- comment this out.... (HERE)
    </BODY>
    </HTML>
    The page shows but did not run my java class file..
    Thanks again for trying to help me solve this problem of mine. : - )
    Regards,
    RainbowEnergies

  • SQLPLUS: How to verify that java class file have been loaded

    Hi All,
    I just loaded my Java class file using CREATE OR REPLACE JAVA.
    Java was created sucessfuly, but how can I check or find out if my file have been loaded correctly.
    I also found a command :
    SQL>exec myjava.showobjects
    but i don't have the loadjava utility install....is there any command from SQL PLUS?
    thanks

    Thanks for the sql command....after that query what do I do next to see if for example tree.class is in the dba_object.
    Sorry, I am a newbie and the question may be a bit generic .....

  • Editor fails to close a java class file.

    jdev 10.1.3.4
    Even if I click the X on the editor tab, jdev editor does not close the file.
    File-->Close does not close the file either.
    File-->Close All closes all files, however.
    Instead of closing the file, it just jumps to the next file in the editor.
    This has been happening to me for a some time, and it happens with Java class files only.
    jsp or xml files do close no problem.
    Any idea how to fix this?
    Thanks for your help.
    Edited by: Yunki on Jan 7, 2009 2:54 PM

    Hi,
    since this doesn't reproduce on other machines, please let us know how this can be reliably reproduced
    Frank

  • Can't find Java Class of a standard UI Command

    Hello everybody,
    Where can i find Java classe source and Bundle file of a standard UI Command "AppDetails"
    for example ?
    Thanks & Regards,
    Hassan Mounim

    Hi Hassan,
    You can find the UIDetailsCommand class here:
    ..\WEB_INF\portal\portalapps\com.sap.km.cm.ui.flex\private\lib\km.appl.ui.flex.uicommand_core.jar
    And the bundle file UIConst here:
    ..\WEB_INF\portal\portalapps\com.sap.km.cm.ui.flex\lib\km.shared.ui.flex.uicommand_api.jar
    Hope this helps,
    Robert

  • Importing a PAR file ---- not able to retrieve java class files(components)

    hi all....
    i've gota .par file....which i imported into NWDS.
    i can find all da files except the component classes i.e java class files...in the corresponding packages.
    can anyone help me.....
    thanx in advance....
    regards,
    Sudheer

    Hi Sudheer,
    you do not need the NWDS to find out what's in a PAR file. Basically, PAR files are ZIP archives. Rename the the PAR file (change the suffix to ".zip") and open it with your standard archive tool (WinZip, WinRar, etc.)
    Best regard,
    Martin

  • How to create .exe files from Java class files?

    I'm new to Java and I just wonder if it is possible to make executable files out of Java class files. I've checked the Java online help and several search engines, but I still couldn't find anything about that. Is it possible to do so? If not, why not?
    Thanx a lot for any help.

    I don't remember if there is a program that converts the class file,
    but I do know that there are a few that either convert the class file,
    or the .java file. You might try searching for ".java to .exe" in the
    search engine and seeing what that pulls up.

Maybe you are looking for

  • Default Audit policy in 11g

    Hi all, 11.2.0.3.11 aix6 What v$view can I select all information about our database Audit Policy Setting? That shows type of actions, events, and captured information? Thanks, mk

  • Agent discovery through one GW

    Hi! If I have installed one SCOM GW in one untrusted domain. Then I will be able to install the SCOM Agent on the servers, in the same untrusted domain as the GW. Do i still only need to have the TCP Port 5723 open between GW and MS or do I need more

  • My phone turned off and im not able to turn it back on

    my phone turned off and im not able to turn it back on

  • Error in account determination: table T030K key 1000 BED Message no. FF709

    Hi, the following is error i am getting Error in account determination: table T030K key 1000 BED Message no. FF709 I have maintained the account assignment of cmr mmr in vkoa combinations and also in ob40 maintained tax codes for bed account key but

  • Need help with how to shrink DIV boxes with text in them

    Hi, I am coming up the learning curve with Dreamweaver CS3. Within a container section, I have enclosed text with DIV tags, creating a CSS ID to add color to the background, and then applied other class styles to the text. Result is that now the text