Not able to understand someclass=otherclass.class.methodinotherclass

Hello all,
I am trying to understand one application source code, in that i came accross the following assign ment:
someclass=otherclass.class.methodinotherclass
I am not able to understand why they used ".class"
could any one explain me.
excuse my english.
Thanks in advance.
regards
vamsee
Message was edited by:
vamseebobby
Message was edited by:
vamseebobby

Every object has a member named "class" which
gets access to the ClassWhy doesn't the Object API show that member?Wait a minute, I goofed a bit. This will probably end up as more ammo for Norweed to use against me as he tries to prove he's competent whereas I am not o_O
Every class definition has an implicit static member named "class" is what I meant to say. Every object has a "getClass()" method to return the same thing. That method is documented in the API docs, but the "class" implicit member isn't I guess.

Similar Messages

  • Not able to change the Valuation class of a Material

    Hi Team,
    I am not able to change the Valuation class of a Material even if the stock is zero.
    Please assist.
    Thanks in advance.
    Chetan

    Hi Chetan,
    Please check if any open PO for this Material exist, if it is there, delete it and try to change VC.
    Thanks,
    Ninad

  • Not able to understand chekpoint completely

    Hi all,
    i have gone through oracle manuals,but i m still not able to understand completely that how does it works
    can you plz tell me in simple terms so i can understand it.
    cheers
    amit

    Checkpoint (CKPT)
    At specific times, all modified database buffers in the system global area are written to the datafiles by DBWn. This event is called a checkpoint. The checkpoint process is responsible for signalling DBWn at checkpoints and updating all the datafiles and control files of the database to indicate the most recent checkpoint.

  • Not able to create a java class included in custom jar from script

    Hi,
    We need to call a third-party web service from within SAP Sourcing and so we have created and deployed a custom JAR. However I am not able to create any of the custom classes included in this object. I have created a simple JAR file having just a "Hello World" message and got our BASIS team to deploy this (they deployed using the steps mentioned in Installation Guide Section 4.2.4 - we are using Sourcing Wave 9). I have added the required import statement in my test script and included this line:
    HelloWorld test = new HelloWorld();
    When this script executes, it gives the error:
    Class:HelloWorld not found in namespace.
    Can you please give your suggestions on how to fix this error?
    Thanks,
    Gayathri

    The issue was fixed after including the custom jar in esourcing90/lib folder and redeploying

  • Not  able to access default package classes in own package

    I created a class called Constant.java in default package(no package ).
    I have Connection.java in util package.
    I am trying to use the Constant.java in my Connection.java like below..
    public class Constant
         public static final String NEW = "01";
    package util;
    import Constant;
    public class Connection
    I am unable to compile the class Connection. My question here is Won't I able to access default package in my util package.. ?

    java_guy04 wrote:
    Djaunl , I understand.
    but, Will I able to access default package in my util package.. ? is this correct.No, you won't be able to use classes out of the "default" package.
    Because, AFAIK, if you use a classname that you haven't imported, Java automatically attempts to locate this class in the same package as the current class. It does not check the "default" package (unless that is also the current package), and since the "default" package does not have a package name, you can't import those classes either.

  • I am not able to understand this java program

    What is the output of bellow code ?
    public class Bean{
        private String str;
        Bean(String str ){
            this.str = str;
        public String getStr() {
            return str;
        public boolean equals(Object o){
            if (!(o instanceof Bean)) {
                return false;
            return ((Bean) o).getStr().equals(str);
        public int hashCode() {
            return 12345;
        public String toString() {
            return str;
    import java.util.HashSet;
    public class Test {
        public static void main(String ... sss) {
            HashSet myMap = new HashSet();
            String s1 = new String("das");
            String s2 = new String("das");
            Bean s3 = new Bean("abcdef");
            Bean s4 = new Bean("abcdef");
            myMap.add(s1);
            myMap.add(s2);
            myMap.add(s3);
            myMap.add(s4);
            System.out.println(myMap);
    }(Choose correct one from multiple bellow)
    1) das abcdef
    2) das abcdef das abcdef
    3) das das abcdef abcdef
    4) das
    What i understand is that the following constructor
    Bean(String str ){
            this.str = str;
        }is used to initialize the instance variable
    private String str;then we have overridden the equals method, in this method we first check if o is not an instance of Bean class whereby we return false
    then we are calling getStr() and equals(str)
    return ((Bean) o).getStr().equals(str);the getStr() method is going to return the instance variable we initialized. SO we will be having something like
    str.equals(str) Here I am not clear what is going to be the output. Please explain in detail

    1. [das, abcdef]
    map create a pair key - value, similar to Dictionary.
    "Hash map structures consist of an internal array where elements are stored. Since the internal storage is an array, clearly there must be a mechanism for determining an index into the array for an arbitrary key. In fact, the mechanism needs to give an integer index value which is smaller than the size of the array. This mechanism is called the hash function. In Java hashed based Maps, the hash function converts any object into an integer that fits into the internal array. You don't have to look hard to find an easily available hash function: every object has a hashCode() method which returns an integer value. To map that value into any array, it is sufficient to convert it to a positive value and take the remainder after dividing by the array size. "
    you will get the same hashcode for the same value!

  • Not able to call an Action class

    Hello Guys,
    I am trying to deploy a web application in SAP Netweaver developer studio, which is successfully
    deployed in Eclipse.
    When i try to click on Submit button in one JSP, then it's saying that
    "The requested resource does not exist" and the url is http://192.168.5.35:50000/Sample/searchTutorial.do
    The code in JSP as follows.
    <form action="/Sample/searchTutorial.do" method="post">
        <table>
         <tr>
              <td align="right">
                Search Tutorial
              </td>
              <td align="left">
                <input type="text" property="keyword" size="30" maxlength="30"/>
              </td>
         </tr> 
              <tr>
              <td align="right">
                <input type="submit" name="submit" value="submit">
              </td>
              </tr>
        </table>
      </form>
    here sample is the webpplication name. searchTutorial is the action class name, which is configured in
    struts-config.xml.
    the code in struts-config.xml is given below.
    <form-bean
                name="SearchTutorialActionForm"
                type="com.web.SearchTutorialActionForm">
             </form-bean>
    <action
                path="/searchTutorial"
                type="roseindia.net.web.SearchTutorialAction"
                name="SearchTutorialActionForm"
                scope="request"
                validate="true"
                input="/SearchTutorial.jsp">
                   <forward name="success" path="/SearchResultPage.jsp"/>
    </action>
    And the following jars r there in my /WEB-INF/lib folder.
    commons-beanutils.jar,commons-collections.jar,commons-dbcp.jar,commons-digester.jar,commons-fileupload.jar,commons-lang.jar,commons-logging.jar,
    commons-pool.jar,commons-validator.jar,struts.jar
    Can anyone help me.
    Your suggessions r valueble.
    Regards,
    Lakshmi M

    Hi Lakshmi,
    Is the application name "Sample" or "sample"? Aren't STRUTS URLs case sensitive? Also, just out of curiosity, why aren't you using Web Dynpro Java? It's based on the same MVC paradigm and comes out of the box with CE (not to mention all the bells and whistles).
    Rao

  • Not able to understand how to access ICloud on Ipod

    Recently got Icloud on my MAC and my Ipod shows it is activated.  However, I can't find a place to access my docs from my mac, and even when I select photo stream, I don't get any photos to see.
    Anyone with an answer, or should I call a tech at Apple?
    Thanks

    - Do you have an iPod with iOS 5 and have you loo\gged into iCloud on the iPod and turned on the various iCloud iCloud features? (Settings>iCloud).
    - What hpappens when on the Mac you go to icloud.com, sign in and then go the various iClould areas.
    - Presently you can only access Pages documents via icloud.com but some apps may provide that feature too.
    - See:
    iCloud: Photo Stream FAQ
    iCloud: Photo Stream Troubleshooting

  • FindClass() not able to find the class in the same path

    Hi,
    I have a c prototype which calls a java function which push a message in JMS. i'm using jdk1.6. i have set JavaVMInitArgs vm_args.version = JNI_VERSION_1_6 when i compile the c code as gcc -g -lgcj -I $JAVA_HOME/include -I $JAVA_HOME/include/linux CallJMS.c the JNI_CreateJavaVM(&jvm, (void*)&env, &vm_args)* returns JNI_ERR. After changing version to 1.4 JavaVMInitArgs vm_args.version = JNI_VERSION_1_4 finally it gives me an executable which calls the java function (how ever the required functionality is not got)
    To get the required functionality i had to use jdk1.6 so i changed the version property to JNI_VERSION_1_6 and the compiling command as gcc -g CallJMS.c -I $JAVA_HOME/include -I $JAVA_HOME/include/linux -L $JAVA_HOME/jre/lib/i386/server -ljvm .This gave me an executable, but when i execute it is not able to find the java class file. I have kept both the java and c file in the same path and also set the CLASSPATH. Please help.

    Hi jschell,
    I got solution to this problem. As you said it is due to wrong CLASSPATH set .
    Before:
    JavaVMInitArgs vm_args;
    JavaVMOption options[3];
    options[0].optionString = "-Djava.class.path=.:/home/programs/JbossMetro/jboss-5.1.0.GA/server/default/deploy/JMSforCNew.war/WEB-INF/classes";
    options[1].optionString="-Djava.library.path=.:/home/program/jdk1.6.0_23/jre/lib/i386/server";
    options[2].optionString="-verbose:jni";
    vm_args.version = JNI_VERSION_1_6; //JDK version. This indicates version 1.6
    vm_args.nOptions = 3;
    vm_args.options = options;
    vm_args.ignoreUnrecognized = 0;
    int ret = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
    if(ret < 0)
    printf("\nUnable to Launch JVM\n");
    else
    printf("\nLaunched JVM\n");
    I was setting the CLASSPATH to the Path where my java class files were kept. When the JVM instance is created only this path (where my java class is residing) is identified and the JMS and other paths which was already set in the CLASSPATH environment variable is lost. Thus when i call the java class from the c program it is not able to find the dependent class files and it was aborting.
    After:
    Before setting the path where my class files are residing to CLASSPATH, get the path's in the CLASSPATH to a variable, append the path where my class files are kept to this variable and then set the CLASSPATH . Similarly do for the LD_LIBRARY_PATH. This works fine.
    char cpathBuff[100000];
    char ldpathBuff[4096];
    JNIEnv *env;
    JavaVMInitArgs vm_args;
    JavaVMOption options[3];
    cpath = (char*) getenv("CLASSPATH");
    sprintf(cpathBuff,"%s%s:%s","-Djava.class.path=",cpath,"/home/programs/JbossMetro/jboss-5.1.0.GA/server/default/deploy/JMSforCNew.war/WEB-INF/classes");
    options[0].optionString = cpathBuff;
    ldpath = (char *)getenv("LD_LIBRARY_PATH");
    sprintf(ldpathBuff,"%s%s:%s","-Djava.library.path=",ldpath,"/home/program/jdk1.6.0_23/jre/lib/i386/server");
    options[1].optionString = ldpathBuff;
    vm_args.version = JNI_VERSION_1_6; //JDK version. This indicates version 1.6
    vm_args.nOptions = 2;
    vm_args.options = options;
    vm_args.ignoreUnrecognized = 0;
    int ret = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
    if(ret < 0)
    printf("\nUnable to Launch JVM\n");
    else
    printf("\nLaunched JVM\n");
    Thanks for your support Peter and JSchell.
    Edited by: 844094 on Mar 15, 2011 2:37 AM

  • Advanced table:not able to view more than 10 rows when called from workflow

    Hi everyone,
    I'm calling a page that contains advanced table and its controller class from two places.
    First one is from a inquiry form, when this page is called it works fine. when there are more than 10 rows, first 10 are shown on page render and when we click on Next link, other rows are shown. This is becuase I have given the records displayed property on adavanced table = 10. I'm fine till here.
    Second one is I'm calling this page again from a workflow notificaiton. There is a link called view more details on the workflow notification , click of this link will open the page with 10 records displayed. But when user tries to click on Next it doesn't work. It just doesn't refresh.
    Its very wierd,. not able to understand what could be wrong when calling from wf notificiton. Its the same page and conroller code used in both the places.
    Please help me!!
    Thanks
    Sunny

    Thanks for your response Kristofer. You are correct, there was a difference in the parameters and the issue is resolved now.

  • Not able to log out of application:JspServlet:unable to dispatch to request

    We are developing our application on oracle ADF (jdev verison:10.1.3.2). and deploying it in the SOA server(version 10.1.3.1).
    The problem with our application is that when the logout button is clicked the application gives the following error:
    500 Internal Server Error
    Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
    When the application log is consulted it reads:
    08/07/02 07:20:45.209 Buddy: JspServlet: unable to dispatch to requested page: Exception:java.io.FileNotFoundException: C:\product \10.1.3.1\OracleAS_2\j2ee\home\applications\Buddy\ Buddy\common\skins\common\Login.jspx (The system cannot find the path specified)
    We have an application wherein a global navigation rule in faces-config is defined as
    <navigation-rule>
    <navigation-case>
    <from-outcome>login</from-outcome>
    <to-view-id>/common/Login.jspx</to-view-id>
    <redirect/>
    </navigation-case>
    The file Login.jspx is present at
    C:\product \10.1.3.1\OracleAS_2\j2ee\home\applications\Buddy\ Buddy\common\common\Login.jspx
    But somehow the deployed version tries to find it at
    C:\product \10.1.3.1\OracleAS_2\j2ee\home\applications\Buddy\ Buddy\common\skins\common\Login.jspx
    I am not able to understand why the page is being searched in
    ~\skins\common\Login.jspx and not in ~\common\Login.jspx
    Please help me out of this situation.
    Buddhadev

    Please post ADF questions to the JDeveloper forum. ADF is a component of JDeveloper and all the experts in ADF are in the JDeveloper forum.
    -steve-

  • Hi There, I'm not able to Get the value for echo %cust_top% for custom dev

    Hi,
    Before doing any thing in dos usually i run envshell
    Which let me to switch to product specific location through Appl_top, au_top etc
    I'm Sending Out Put At cmd Prompt Please Check
    D:\oracle\visappl>echo %ar_top%
    d:\oracle\visappl\ar\11.5.0
    but not able to work for custom development.
    D:\oracle\visappl>echo %cust_top%
    %cust_top%
    D:\oracle\visappl>
    Why it's so?
    Bachan.

    Hi There,
    I got document, but not able to understand 2nd step i.e
    "2) Add the custom module into the environment
    Apply ADX.E.1 and add the entry to topfile.txt as a standard product top entry (follow the existing model in the file)
    Customised environment variables can be added to AutoConfig by using the filename specificed by s_custom_file, which is then called from the APPSORA.env file.
    If using Forms Listener Servlet, you may also need to add $CUSTOM_TOP to formsservlet.ini in $APACHE_TOP/Jserv/etc"
    1. What is ment by ADX.E.1 and topfile.txt ?
    2. And How can i add to "AutoConfig by using the filename specificed by s_custom_file, which is then called from the APPSORA.env file. " ?
    3. And agin What is ment by "If using Forms Listener Servlet, you may also need to add $CUSTOM_TOP to formsservlet.ini in $APACHE_TOP/Jserv/etc"
    Please Give a breaf note on this Question's.
    Thanks Bachan

  • Not able to create a universe when using nav. att. 0MATL_TYPE in the query

    Dear experts,
    A few days ago I posted a message in the BO General Category due to this error and I was adviced to install SP19 in BW (3.5). We've allready installed it but the issue is still arising. I am posting this thread now in this category since maybe the other category was too general and this one a little bit more specified.
    The error we are having is the following:
    We are having an issue when trying to create a universe over a BEx query which uses navigational attribute 0MATL_TYPE of 0MATERIAL (0MATERIAL__0MATL_TYPE).
    No matter where do we insert this nav. attribute in the query (lines, columns, free characteristics...) that we are not able to create the universe. We receive a message when trying to create it such as "error without message"
    We have other navigational attributes from several characteristics which are not giving us any problems in universes, just nav attributes 0MATL_TYPE and a Z characteristic (ZMATPR) which is the same as 0MATL_TYPE (it is defined the same way, not related).
    We are working with:
    BW 3.5 - SP19, BEx 3.x
    BOBJ XI 3.0 (without service pack or fix pack)
    Does any one have any clue on what could be the reason for this issue??
    Thanks in advance for your interest!
    Best regards!!!!
    Cecilia

    Hello Ingo,
    First of all thanks for your help, since we are really concerned about this issue.
    We have been analysing the file you have talked us about. The thing is that a week and a half ago we had to write an OSS message to SAP concerning another issue, and we were recommended to install note 1260004 which involves editing the registry in order to show SOFA logs, and if we have understood correcty, the file you have given us modifies as well the server registry in order to show sofa logs.
    Does the file you have given us includes new information in the SOFA logs, what is the difference between what we have changed with the SAP note and what you have given us?
    Nevertheless, we have retrieved two logs from two executions (having navigational attribute 0MATL_TYPE in the query from which we want to create the universe) in case you could help us to interpret the informations given since we are not able to understand it. (You can seen them below my signature.....haven't find a way to attach files....sorry....)
    Thank's very much in advance for your help!!!! This is so disconcerting.......
    Best regards!
    No way , I cannot copy the logs since the message format is destroyed when I copy it..... If you need it please inform me and we will send it to you!
    Thanks again for the help!!!
    Cecilia
    Edited by: Cecilia Guerra on May 11, 2009 1:56 PM
    Edited by: Cecilia Guerra on May 11, 2009 2:09 PM

  • Data Pump Abends : Not able to write to trails to remote directory

    I am using following to do replication
    SOURCE SCHEMA: HBP
    TABLE: EMPLOYEES
    SOURCE GOLDEN GATE SCHEMA: ggs_owner
    Z:\ is mapped on source system which points to \\206.120.226.47\ggtarget ( Remote System )
    TARGET SCHEMA: HBP
    TABLE: EMPLOYEES
    TARGET GOLDEN GATE SCHEMA: ggs_target
    ON SOURCE:
    1. ADD EXTRACT ext2, TRANLOG, BEGIN NOW
    2. ADD EXTTRAIL D:\GGATE\dirdat\lt, EXTRACT ext2
    3. ADD EXTRACT dtest, EXTTRAILSOURCE D:\GGATE\dirdat\lt
    4. EDIT PARAMS ext2
         EXTRACT ext2
         USERID ggs_owner, PASSWORD ggs_owner
         EXTTRAIL D:\GGATE\dirdat\lt
         TABLE HBP.EMPLOYEES;
    5. ADD RMTTRAIL Z:\dirdat\rt, EXTRACT dtest
    6. EDIT PARAMS dtest
         EXTRACT dtest
         USERID ggs_target, PASSWORD target
         RMTHOST 206.120.226.47, MGRPORT 7809
         RMTTRAIL Z:\dirdat\rt
         PASSTHRU
         TABLE HBP.EMPLOYEES;
         Note: Full rights are given on Z:\dirdat
    7. START EXTRACT ext2
    Successfully Started
    8. START EXTRACT dtest
    Error: There is a problem in network communication, a remote file problem, encryption keys for target and source do not match (if using ENCRYPT) or an unknown error. (Remote file used is Z:\dirdat\rt000000, reply received is Could not create Z:\dirdat\rt000000). 2011-03-16 18:02:51 ERROR OGG-01668 Oracle GoldenGate Capture for Oracle, DTEST.prm: PROCESS ABENDING.

    The OS user running Manager Service on source system is : zzxpzr whereas the target system has Golden Gate configured under OS user: jzdlc1.
    From source system, I am able to create a text file to the remote mapped drive. Not able to understand why Golden Gate is not able to create file remotely.
    (1) Is Mapped Dirve concept permitted in Golden Gate ?
    (2) Instead of Mapped Drive, if I use \\201.120.220.56\GGTARGET\dirdat\rt while added REMOTE TRAIL using command ADD RMTTRAIL then it gives error that "filename is incorrect"
    Thanks Steve for your suggestion. I shall try to configure Golden Gate with same OS user as on Source System.

  • Flash File not Able to Display using ADF Trinidad components..

    Hi All,
    I am trying to display a flash file using ADF trinidad component for one our project but not able to display when embeded inside the code.
    However I am able to directly access the flash file using http://localhost:7101/test/pages/test.swf
    The below Object code is included inside the tr:panelHorizontalLayout tag. I also tried using tr:media but doesnt display anything on the browser.
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="210" height="230" id="footer_ad1" align="bottom">
    <param name="allowScriptAccess" value="sameDomain"/>
    <param name="allowFullScreen" value="false"/>
    <param name="movie" value="http://localhost:7101/test/pages/test.swf"/>
    <param name="quality" value="high"/>
    <param name="bgcolor" value="#ffffff"/>
    <embed src="http://localhost:7101/test/pages/test.swf" quality="high" bgcolor="#ffffff" width="210" height="230" name="test" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave- flash" pluginspage="http://www.adobe.com/go/getflashplayer"/>
    </object>-->
    Thanks
    Chetan

    Hi Ramandeep,
    I tried that option early but did not work. Not able to understand why.
    Below is the code snippet.
    <tr:panelGroupLayout layout="vertical">
    <tr:panelHorizontalLayout>
    <!--Some Portlets are added-->
    <f:verbatim>
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="210" height="230" id="footer_ad1" align="bottom">
    <param name="allowScriptAccess" value="sameDomain"/>
    <param name="allowFullScreen" value="false"/>
    <param name="movie" value="http://localhost:7101/test/pages/test.swf"/>
    <param name="quality" value="high"/>
    <param name="bgcolor" value="#ffffff"/>
    <embed src="http://localhost:7101/test/pages/test.swf" quality="high" bgcolor="#ffffff" width="210" height="230" name="test" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave- flash" pluginspage="http://www.adobe.com/go/getflashplayer"/>
    </object>
    </f:verbatim>
    </tr:panelHorizontalLayout>
    </tr:panelGroupLayout>
    And as I mentioned it works fine when I directly access the flash file by using http://localhost:7101/test/pages/test.swf.
    Thanks
    Chetan

Maybe you are looking for

  • K8N Neo-FSR nForce3 - Corsair XMS memory running at wrong speed

    I have a mobo mentioned in the title. The problem is with upgrading the memory - I've recently bought a 1GB memory stick to go with the 2 existing 512kb memory sticks to make up a total of 2GB, the maximum allowed by this mobo. The problem is if I ha

  • Latest version of Itunes for Windows Error 45075 Missing Componet

    I have had no problem with my IPad or Itunes for a year. Till today. I was moving Itunes from internal C drive to D. Freeing up space. It was suggested that I just uninstall and reinstall in new drive with clean copy from Itunes direct. So each time

  • Why does SUMIF and SUMIFS not work with decimals as the condition?

    I'm trying to do a budget report.  The items in the budget are number 2.1, 2.2 all the way up to 2.43.  On another page I am subtracting the amounts used each month from the allotted budget for each item.  The problem that I am having is that when I

  • Hidden only one charakteristic in a Input Query !!! How ?

    hello Gururs I want to hidden, or define a constante for one characterisic in a Input Query and not Input Ready for only one. How can I solve this Problem ? THNX

  • Help with graphic driver

    hi im trying to upgrade my envy 15's amd graphics card driver i have tried to do this before but it ended in me needing to recover my laptop and wanted to know if the only way to upgrade the driver is thru the hp suppot website but i sill wanted to k