Hot to get a handle to me?

I have a class. How can I get a handle to my name. Lets suppose I have a compiled class or jar file and someone renames it. When it is lunched in the code I need a handle to myself. To be able for example to get my new name and type it.
How can I do this.

remus.dragos wrote:
think he wants to be able to do the following.If his class is launched from c:\A.jar, it will print "c:\A.jar".
If from d:\B.jar, it will print "d:\B.jar".
And if the class Test resides on the hard-disk at e:\classes\test.class,
I presume he wants "e:\classes\Test.class" to be printed.
That's what I meant. Lets take the class scenario like Test.class, or Test.jar with only Test.class into it. I hope I clarified the things now.
How can I get my name?
It would be better to forget about this ill-conceived "requirement". You're going about something in a completely incorrect way. However I'm sure you will completely disregard that, so I'm not going to write a book on it.

Similar Messages

  • New inst: HP-UX: db2icrt fails: CLP frontend unable to get request handle

    We are migrating our installations from the beautiful AIX to ... HP-UX.  I am told I will learn to love it, but probably not until they update df to at least 1988 levels. 
    This is the pilot install.  We have never seen this work before (and maybe no-one has...?)
    sapinst runs correctly up to the "Create database instance" phase.  At that point it dies with the following:
    FUNCTION: DB2 UDB, command line process, clp_start_bp, probe:3
    MESSAGE  : CLP frontend unable to get REQUEST handle
    DATA #1: Hexdump etc.
    DBI1281E: The database manager configuration file could not be read initialized.
    No further useful information is provided.
    In db2<sid> I have a bunch of dot files (.profile and the like) and the db2_software directory containing the database installation.
    During the create database instance phase, I can see that directory sqllib is created, but it is deleted when the phase fails.
    There is no litter of any kind in the /db2/<SID> directories, - nothing has been done at all.
    I have done the following: <<imagine nice bullets below - they dont seem to be available here>>
    checked that the permissions on /tmp and the installation direcctory (redirected by setenv  TEMP  /usr/sap/install) are 777: they are;
    checked the OS parameters with db2osconf - they are good
    checked the host name resolution with a perl script - gethostbyname and gethostbyaddr agree.
    the ip address, simple hostname and FQDN are on a line in the hosts file
    there is no litter from previous installations - this is a clean machine
    I could not find any reference to required environment variables (such as LD_LIBRARY_PATH) in the install guide or the install note - so I have not set any.
    I have been hacking away at this for days.  I have put in a call to SAP, who will get back to me after dark (of course...)
    This seems to be a massively popular problem, and the helpful error message ("Sorry, Sport, just can't bring myself to do it") seems to have people jumping from tall buildings and in front of busses all over Google-world.  Furthermore there also seems to be a near-infinite number of possible causes and none of them seem to apply here.
    H-PUX version is 11.31.  DB2 is 9V5 patch 4.  sapinst is latest available.  Weekend is fading fast...
    Edited by: Russell Day on Mar 5, 2010 7:46 AM

    >
    Paul Power wrote:
    > Hi Russell,
    >
    > Apologies if some of this has been already tried but please check the following points:
    >
    > Make sure the machine name is listed in its hosts file.
    >
    > Make sure to log on directly to root. ie: do not su to root from another without '-'        
    >
    > Make sure there is no instance created already (find / -name sqllib) for that user 
    >
    > Using ps -aef and ipc -a, no old db2 ressources should be displayed for db2 instance owner. If there are any, kill/remove it  
    >
    > You should make sure, that LIBPATH and LD_LIBRARY_PATH of root and db2 instance owner does not point to an path of another db2 version
    >
    > Regards,
    > Paul
    No need to apologise for assisting, Paul, but I have dealt with most of these.
    The host file contains the unqualified and fully qualified hostnames, on the same line, unqualified first.
    I am logging in as root (because there were no other users, and I'm old school, from when everyone logged on as root to do everything.
    There is no instance, and in fact there is no sqllib except when the "create database instance" step is running.
    The only detectable db2 process running is db2fcmd
    I have not been able to find any instructions regarding LD_LIBRARY_PATH and LIBPATH for HP-UX.  They are not mentioned in the installation guide at all.  I cannot find it in any of the installation notes.   I presume sapinst is setting them itself before they are needed.  Neither are set in the enviroment of db2<sid> or <sid>adm.  I have gnawed my fingernails to the elbow over this one, but I cannot see any indication that either should be set for HP-UX.  Anyway, they are definitely not set anywhere, to anything.  This was a clean machine before I started chopping it up to do this install.
    I figure it must be complicated - I have been trying to get an answer for 10 days already.  I will absolutely hate myself when it turns out to be something obvious, documented in 10 places, mostly in bold italics.  I shoulda taken my dads advice and been a riverboat gambler or a piano player in a cathouse - its a lot less complicated,

  • How do I get a handle on embedded sound files?

    From the Sound Class information, it says to use the SoundMixer Class to handle embedded Sound Files.  I have two sound files embedded, that I have setup in 2 separate layers, starting at frame one in the main timeline.  I needed to do this so I could see the wave files, and coordinate text with the waves.  I do not want to load these files into the .swf file at runtime using URLRequest.  How do I get a handle on those as they exist, to make each controllable by separate volume and mute controls for each sound?
    This will be a challenging question, because, "it can't be done" doesn't work for me.  I managed to create a way to use an external classfile to control the main timeline, the ROOT timeline, without having to create a sub movie to root.  I can use my component to call play(); as though it were in code in a frame.  But it isn't, it's in an external classfile.  I passed root to the classfile and told the classfile to think of it as a movieclip - that put the handle on it.  I tried similar way with root as a Sound, but that isn't detailed enough - I need to get a handle on the frame that contains the embedded sound file.  I embedded, attached it, using the properties view for the frame.
    I've attached, or whatever you want to call it, these sound files to a frame, and this frame is or should be attached to the layer I've created.  So, under the assumption that the ROOT has everything attached to it in some manner (it is after all the foundation for the COM), the stage of the root contains the visual components, so ROOT has to have the layer objects attached to it, which should have the frame objects attached to the layers.  I have two layers that each have a .wav file attached to frame one.  Somehow Flash keeps track of that - I want to know how Flash does it so I can read what flash reads.
    If this seems redundant, it probably is.  I want to paint the best picture I know how so I can get detailed feedback.  Please, if you have questions ask them so we can clarify, and get this resolved!  Thanks for reading!

    lol.
    ok, it can be done.  keep working on it.

  • How to get a handle which is used in c dll from  javax.smartcardio.card

    good afternoon
    i am using javax.smartcardio.card to operate a sim-card reader .
    but i have a dll which is call sim-card reader by handle.
    how can i get a handle from a javax.smartcardio.card object to pass to the dll
    next is the code .
    c dll prototype declaration
    char DoFormat([in] unsigned long P1�C[in] char * P2�C[in] bool P3,[in][out] char *P4)P1 is a handle
    java code:
    private boolean checkCardReader(boolean isopen)
    boolean r=false;
    try {
    javax.smartcardio.card card;
    TerminalFactory factory = TerminalFactory.getDefault();
    List terminalList = factory.terminals().list();
    terminal = (CardTerminal) terminalList.get(0);
    // establish a connection with the card
    card = terminal.connect("T=0");
    channel = card.getBasicChannel();
    //how can i get a handle which can be used by windows dll .
    }catch (Exception ex)
    System.out.println("Exception : " + ex);
    return r;
    *****************************************************************

    Presumably you are calling a C library method that returns a handle.
    Normally a handle will be a integer type value.
    With such a value you can cast it into a java integer type and then cast it back in different JNI code by passing it to those routines.
    A java long is as big as you can get and will hold most every normal type handle item. You should however verify sizes.

  • How to get a handle Logged in As message in Apps Home page

    Hi,
    I want to get the handle to Logged in As meesage in Apps homepage ,when i pressed personalize link. As i want to change this custom message, by some other message,for that i should be able to see the text in the personalize link because i want to attach a custom controller to that.Here i also want to add that am able to see that message in about this page link, it is inside a flow layout, but am not able to see it inside the personalize link.
    Please help me in this issue.
    Thanks

    This issue alredy discuss on this forum
    Re: How to change the oracle's home page to show our custom message.
    Let us know if this is not able solve your customization.

  • Is it possible to get the handle of a HTML UI element in JSPDynpage?

    Hi Experts,
    I am new to Portal Development and my current requirement is as follows:
    User is provided an option to upload a file to KM from the JSP for which i used a HTMLB fileupload UI element. I was able to upload the file to the KM.
    But the client wanted their specific theme for the Upload UI element to be set. The default Browse button was to be replaced by the custom image. We tried using CSS for setting the image as the background image, but failed doing it. We used the following code for achieving:
    JSP Dynpage:
    <hbj:fileUpload  id="docupload"                   
            maxLength="125000"                   
            size="50"   />
    JQuery:
    var funcName = htmlb_formid+"_getHtmlbElementId";
    func = window[funcName];
    var HTMLBElementIdSubmit = eval(func("<UI ID>"));
    $("#"+HTMLBElementIdSubmit.id).removeClass("urUpld ");
    $("#"+HTMLBElementIdSubmit.id).addClass("<custom class>");
    We tried using standard file UI in HTML and we are successful in setting the background image as per the clients requirement using JQuery to replace the standard look using:
    $("[type='file']").removeClass("urUpld");
        $("[type='file']").addClass("btngrey");
    But we are now facing the problem in the controller where the following line is throwing an error as we are unable to get the handle for a standard HTML UI element.
    com.sapportals.htmlb.FileUpload.FileUpload imageupload = (FileUpload) getComponentByName("<ID>");
    Kindly let me know more if either of the 2 points below:
    1. Is there an option to customize the standard HTMLB fileupload UI element as per our choice using Javascript / JQuery?
    2. Is there a way to get the handle in Dynpage controller for HTML UI elements?
    Regards,
    Poojith MV

    Hi Poojith
    Not sure if this would solve your requirment but just in case might be helpful:
    1. We can mix up the HTML and HTMLB components in the JSP Page. However, can access only the HTMLB components in the controller. The following link refers to what customizations are offered by the HTMLB framework:
    [http://www.sapdesignguild.org/resources/htmlb_guidance/]
    2. Another option would be to use AbstractPortalComponents or a simple web app if that's feasible. (where custom UI themes, css and layout are more in control of the developers.)
    Thanks
    Deepak

  • Unable to get Window Handle for the 'AxCrystalActivXViewer' control.

    Hi,
    I have Operating System : Windows 7 and Application developed in VS 2005 and I am using Crystal Report XI licenced version.
    But when I am trying to use TTX(Field Defination) based reports it gives me "Unable to get Window Handle for the 'AxCrystalActivXViewer' control. Windowless ActivX Controls are not supported."
    Please provide me solution for this ASAP as I am stucked on this from long lomg time.
    -Regards
    Swapnil

    Appears you are installing an upgrade version.
    Use these links:
    http://downloads.businessobjects.com/akdlm/crystalreports/crxir2_sp4_full_bld_0-20008684.exe
    http://downloads.businessobjects.com/akdlm/crystalreports/CRYSTALREPORTS06_0-20008684.EXE

  • How to get the handle of AM in custom co

    Hi All,
    I am extending a controller in that controller if I use the code
    OAApplicationModule am1 = pageContext.getApplicationModule(webBean);
    I will get the handle of the am which is attached to the region.
    But i want to get the handle of an AM which exists out side of the region i had imported the AMImpl
    and now please let know how can i get the handle of this AM in my extended CO(custom CO)
    Please reply with a piece of code.
    Thanks
    Ajay

    it gives the Root AM
    but i want to handle the Application module of an lov.
    I was trying with
    CsfPoLovAMImpl lotam =(CsfPoLovAMImpl)pageContext.getApplicationModule(webBean);
    But it is giving an class Cast exception as
    java.lang.ClassCastException: oracle.apps.csf.portal.task.server.CsfDebriefAMImpl
    at CsfPoLovAMImpl lotam =(CsfPoLovAMImpl)pageContext.getApplicationModule(webBean);
    Thanks
    Ajay

  • Trying to get a handle to an object using CVI_ActiveApp, but it opens a new CVI everytime it runs. Is there a way to get a handle to an object without it opening up a new CVI?

    I'm trying to get a handle to an object using CVI_ActiveApp. It works, but it opens a new CVI application when it is run using the command line. Is it possible to get a handle to an object without a new CVI application opening up?

    Hi,
    In the help documentation for the CVI_ActiveApp function, it states:
    "If the server application is already running, this function may or may not start another copy of the application. This is determined by the server application."
    http://zone.ni.com/reference/en-XX/help/370051P-01/cvi/usermanual/actxappactiveapp/
    I don't believe you have control over whether or not a second instance is started.
    Regards,
    Lindsey W. | Applications Engineer | National Instruments

  • Getting a handle to the Task submitted

    I want to trap the beforeExecute and afterExecute methods of the ThreadPoolExecutor to log task specific info.
    I overrode the class but the object i get in the hook methods is FutureTask. Is there any way to get a handle to the Callable object that was initially submitted to the ExecutorService?
    Thanks
    -giriraj
    Message was edited by:
    girirajv

    Not unless you submit your own custom Future that exposes it.

  • How can I get printer handle without printer name?

    I want to block printing by hooking. so I hook startdoc.
    Unfortunately, If I block the specific printer, I should get printer handle
    I know how to get printer handle from printer name. but I don't know printer name
    I have known only printer hdc and document name. 
    I have tried for 3 days. but I can not find about that :(
    If anybody knows about, please answer..

    Hi,
    You erroneously posted your question on the Project forum which is dedicated to the Microsoft scheduling and planning application.
    Please post it on the right forum to have appropriate help, starting from here:
    https://social.technet.microsoft.com/Forums/en-US/home?forum=whatforum
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Get the handler for GUIBB Feeder class from Genil implementation class

    Hello,
    In BOL based GUIBB, the feeder class will call correspondence Genil implementation class, may I know if it is possible to get the handler or instance of the feeder class in the Genil implementation class, then we can call the method of the feeder class get some information about the feeder, e.g. the value of the parameter.
    Thank you very much.
    Best regards,
    Shumin

    Hello,
    In BOL based GUIBB, the feeder class will call correspondence Genil implementation class, may I know if it is possible to get the handler or instance of the feeder class in the Genil implementation class, then we can call the method of the feeder class get some information about the feeder, e.g. the value of the parameter.
    Thank you very much.
    Best regards,
    Shumin

  • Unable to get timer handles for containerId: jboss.j2ee:jndiName=

    im trying to access my database thru ejb.......... im using jboss server.......... but while starting the server im getting an error like --"Unable to get timer handles for containerId: jboss.j2ee:jndiName=Statustable,service=EJB" ---- where Statustable is an oracle database table created by me....
    what could be the problem? can anybody help me?

    You might have better luck posting to the JBoss forum.
    --ken                                                                                                                                                                                               

  • How to get a handle of tcUtilityFactory within Java Task

    Hi
    I am trying to user op interface within a java task and want to avoid the GUI based coding in adapter factory
    I am having doubt about how to get a handle of tcUtilityFactory
    the standalone example of getting the handle works fine within a Java task
    // ConfigurationClient.ComplexSetting config = ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");
    // final Hashtable env = config.getAllSettings();
    // ioUtilityFactory = new tcUtilityFactory(env, "xelsysadm", "welcome1");
    but I want the handle to be provided by adapter runtime env
    there is a function call within generated adapter code
    APITaskLocal.getUtilityFactory(getDataBase());
    but I get null pointer if I try to use it within custom code
    has anyone played around with APITaskLocal.getUtilityFactory

    Hi,
    Use this code.
    public void init(tcDataProvider dataProvider) {
    try {
         usrOps = (tcUserOperationsIntf)tcUtilityFactory.getUtility(dataProvider, "Thor.API.Operations.tcUserOperationsIntf");
    } catch(Exception e) {
    log.error("Unable to initialize: "+e);
    You can pass dataProvider in adapter mapping . Map it to Adapter reference->Database reference.
    Hope this will help.
    Regards
    Nitesh

  • "Can't get a handle on Digisnif Driver"

    Can't get a handle on the Digisnif Driver"
    Has anybody had this message displayed before?

    That is not very helpful!!
    Uhh, if you have a problem with Matrox hardware i think indeed it is helpful to point you in the right direction, iow to the Matrox User Forum. I did not do that to offend you.
    Or maybe i shall re-phrase what i wrote to make it more clear:
    ...search for an answer in their User Forum or create a new thread in their User Forum about your issue: http://www.matrox.com/video/en/support
    Point being, if you search and/or post in the Matrox User Forum about the well known digisnif-issue you will get the help you need to solve your issue. If you mention what Matrox hardware you do use it would have been easier to find a more detailed answer, but you did not and i did at least try to help you. I think that's helpful.

Maybe you are looking for

  • HT1281 What is the best way to restore a Time Capsule from an Archive disk?

    I've done an archive of my Time Capsule and am going to store it off-site with my parents. What I'd like to know is, if my Time Capsule disk gets corrupt or needs reformatting, how can I restore its data from the Archive disk? Can I simply copy its f

  • Problem Syncing iPhone with iMac

    Hello, My iPhone has been working and syncing (with new iMac) just fine - until tonight. I plug in iPhone. It shows up in iTunes. I have Automatic sync checked. But, within less than a minute, I receive this error message: "iTunes could not sync cont

  • Error by compiling yacy: Target "build-jar" does not exist

    Hello I am trying to compile yacy by using this PKGBUILD (based in this one: http://aur.archlinux.org/packages.php?ID=14464): pkgname=yacy-svn pkgver=7387 pkgrel=1 pkgdesc="Peer to peer searchengine" arch=(i686 x86_64) url="http://yacy.net/" license=

  • Move file with space in the filename - SM49

    Hi, I am using operating system command, MV, to move files across directories in application server. If the filename has spaces, this move fails. Can you please tell me if any escape character can solve this issue? I have already tried using backslas

  • Will OSX software Raid-0 on external drive be regonized elseware?

    Are RAID setups created in Disk util recognized in other computers. Say i have 2 external drives (over eSata on my 08 mac pro) in a raid 0 from disk util, can I plug these two drives into another mac pro and have them work? Basically, are software ra