Reading contents of another (windows native) application

Hi everyone!
I would like to read some contents from another application, native to Windows, with my Java app.
I have found the Jawin project (http://jawinproject.sourceforge.net/), but I have no idea how to find out the CLSID of the native application, which I need for creating a COM object handler... (through Jawin's DispatchPtr) ... if I understand this.
Does anyone know how to do that, maybe?
I would much appreciate it if someone could point me in the right direction or provide some code samples - either in Jawin or in some other way. Thank you for your help.
Best regards,
David

Hi,
The idea of my application is exactly the same that Kiran has mentioned in the 'Aim' of her post.
i.e
1 reading from a text file,
2 parsing the contents,
3 converting it into byte-array and
4. adding these as records to an RMS record store.
Ive been quiet successful in implementing these four steps. However, i face a problem now.
Problem:
So far the size of the text file was small i.e around 6 Kb and the app ran as expected.
But now i need to read a much bigger file of around 50 kb.
Bcoz the file size is huge, i have tried reading the file in chunks (i.e using delimiters in the file, reading small amounts of data via InputStream and storing in rms....)
However, the whole file is being loaded at a strech and i get an OutOfMemoryException :(.
Am i right when i say getResourceAsStream() loads the entire file in memory?? Is there no way for reading a huge .txt file in chunks without loading the entire file in memory?
Kindly help.
We gotta get thru! :)
Smita.

Similar Messages

  • Debugging Windows Native Application

    Our team has developed a Native Air Application with a Native Extension for both Windows and Mac OS. Exclusively in Windows 7 machines, we're seeing a "(application name).exe has stopped responding..." on and around selecting a microphone. I was hoping someone might have some thoughts about how to debug this. I've removed the native extension and all calls to it for the purposes of debugging, so I can rule out faulty c++ code.
    I noticed in a number of other threads that creating a crash dump (http://forums.adobe.com/message/4159755#4159755) seems to be a popular approach. Not sure how to open the resultant file in a way that's useful.
    Also, I am wondering if there's a way to debug a native windows application remotely, as our windows development machines don't exhibit this bug. Googling yielded a bunch of how-tos for android, ios, or tv remote debugging.
    Currently, we are writing to a log file, but that doesn't give very much detail as to what's going wrong, only where.
    Any thoughts or advice would be much appreciated -- thanks.

    I've tracked the crash source down to the assignment of a SampleDataEvent.SAMPLE_DATA listener to each registered microphone.
    for ( var i:Number = 0; i < Microphone.names.length; i++) {
        Microphone.getMicrophone(i).addEventListener(SampleDataEvent.SAMPLE_DATA, function(e:SampleDataEvent):void {});
    This never crashes when I'm debugging or running in ADL through Flash Builder, but crashes ≥ 50% of the time when running on certain Windows 7 machines. No other versions of windows or mac os seem to exhibit this behavior.
    I'm trying to graphically display the activity level for each microphone connected to the user's system. When I remove that listener, the application (a) doesn't crash, and (b) doesn't display activity levels.
    Has anyone had a similar experience?

  • Load content in another viewing space... Button..Viewer..Video..Panorama.. Carousel..Dreamw..Flash..

    Dear Reader,
    I made a site with a custom player to show video. I made my own buttons in Flash. On type showed while hovering over the played video and are used for controlling play/pause - button for homepage and two buttons for the next or previous gallery. The other type are underneath the playing video and let you pick thumbnails whose links were shown in the player window.
    First I wanted to use a carousel (Lee Brimelow) for the second type of buttons, but I couldn't integrate these with the rest of the player code (my flash-code knowledge is rather limited).
    Later on I wanted to show a panorama wich I only got to work with the Away3D-method. In this case I couldn't integrate it with any other code, so I used Dreamweaver to let a viewer choose thumbnails. One can navigate in the viewer window by dragging in the window, so I left out the other navigation buttons within the player window, mentionned earlier.
    Now I am thinking of this concept:
    - Button(s) for Homepage and (Next/Previous) gallery;
    - Viewer window, with
              - timeslider and Play/Pause button integrated in case of a video or slideshow;
              - dragging in case of a Panoramic view;
    - Carousel for picking a subject that will be shown in the Viewer window.
    Question:
    - Can I combine these 3 types of the concept as Flash-movies and buttons/carousel in Dreamweaver and still have the carousel control the viewer window?
    or:
    - Should I do all in Flash and make a personal Flashplayer (like I did before) and study more Flash?
    What tutorials could I take a look at? (For instance I found a lot of sites about how to make a carousel. I don't know how to make it control a viewer window (to make it load content in another window or space.)
    Greatings,
    Richafrost.

    Hi,
    Just wanted to clarify a few things to try and eliminate what could be causing the problem.
    1. You are using rtmps protocol. Do you have SSL certificate configured and port 443 enabled?
    2. When you tried playback via the hosted OSMF player was it via rtmps?
    3. The standard way the request url is protocol://server-domain-or-IP/fms-app-name/[fms-app-instance-name/][codec-prefix:]file-pa th[filename-extension]. Could you try with that?
    I tried to reproduce your issue with simple rtmp prtocol and here are my observations/suggestions :
    1.When I first entered the source url I got the error you mentioned : "The video player is in the connection error state." However, when I publish the same .fla again it works fine.
    2. When you are placing the on a computer on the same network and running the html in the browser, it might not have permission to access the network. You will generally get a pop-up saying "Flash Player has stopped a potentially unsafe option". In any case, in your Flash player settings manager you can go to the Advanced tab and add the location of the folder containing the swf as a Trusted location and then try to reload the page again. I get the "status bar spin" when the folder did not have permissions.
    3. Also, when you try playback via Share Point can you go back to FMS and check if a connection request has actually come to the server. You can check under the access logs in root_install/logs or the application logs under root_install/logs/_defaultVHost_/vod/
    Please let me know if this helps.
    Thanks,
    Apurva

  • How to open Adobe Reader file from another native IOS application?

    There is an existing thread, but I want to re-open it because I think this is an important feature that we need badly.  I was wondering if there is any plan to add this feature so we can open PDFs directly into Adobe from the web / other apps.
    How to open Adobe Reader file from another native IOS application?
    Basically, we just want to use a custom URL scheme to open a specific document in the App.  Currently, this only opens the app but does not load the file.
    APB

    Not to hijack the conversation but I can explain why this would be useful for both the above case and another.
    What I believe Pavel is talking about is setting up a "URL Scheme" for the Adobe Acrobat iOS application so that you can easily open a PDF specifically in Adobe Acrobat iOS from other native applications and even from web applications opened within Safari. This is particularly useful if your application requires some of the specific features in Adobe Reader iOS to grant them the best experience possible and you want to encourage this.
    Another case: If you're using Adobe Livecycle's document security modules (that encrypts PDF files so that Adobe Acrobat must "phone home" to decrypt and view the document), these PDF's can only be viewed inside the Adobe Acrobat application and appear as blank in most other PDF readers. Having a URL scheme allows your application utilising this functionality to have a 1 click step to view the PDF rather than the current non-user friendly process:
    - Within Safari, touch the PDF link (appears as blank in the default Safari PDF reader, which in itself is confusing)
      - Touch "Open in..."
      - Touch "Adobe Acrobat"
    We have an immediate need for this functionality for the example above. I can resubmit it in a separate post if necessary.

  • Adobe AIR HTML/JS application and Windows Native Installer

    Hi,
    I am building an Adobe AIR application with HTML and Javascript and I would like to know how to make an Windows Native Installer.
    I am trying to build it with Flash Pro but it keeps returning the error 'Invalid SWF file'. At the application.xml file the <content> points to my index.html file. I don't use any SWF file. When I change this to point to the SWF it does build tha installer but the application loads the SWF.
    Is there any way to build a Windows Native Installer and the initial content be an HTML file?
    p.s. I tried to extract the files from the installer file and edit the application.xml there to point to the index.html. But I can't repackage the files to a valid air native installer.
    Thank you.

    Hi,
    Thank you for reporting this. The internal bug number for the issue is #2740755. The issue is currently under review and will be investigated by one of AIR team members.
    Regards,
    Catalin

  • Can we implement iphone native application on microsoft windows machine

    Hey,
    Right now i m doing job and i want to work as a free lancer but i don't have mac machine at my home so i want to know that how can we develop iphone native application on Microsoft windows machine or not?.
    One friend is said that it is possible to work on Microsoft windows machine same like mac machine. he didn't tell me because he said that i take $125 for 1 hour so i rejected to pay this money.
    Now please anyone tell me that how can i work on windows.
    Thanks.
    Message was edited by: vavdiyaharesh

    You'll need XCode and the iPhone SDK to develop for the iPhone. These only run on Mac OS X, which is only officially supported on Mac hardware. I don't know of any solution to run XCode under any other OS.

  • Run on a Windows 64-bit operating system either as a native application or under WOW64

    I am using Visual Studio 2013 Professional, and need to compile my application in a way that it works with existing libraries on my system that are only 32 bit.
    I read this someplace ....   "When you compile an application, you can specify that it should run on a Windows 64-bit operating system either as a native application or under WOW64 (Windows 32-bit on Windows 64-bit). WOW64 is a compatibility
    environment that enables a 32-bit application to run on a 64-bit system. WOW64 is included in all 64-bit versions of the Windows operating system."
    Can anyone tell me HOW I "specify that it should run on a Windows 64-bit operating system either as a native application or under WOW64 (Windows 32-bit on Windows 64-bit)."  ?

    Hi Davepc,
    Based on your issue, I think the pvdg42 and Wyck's suggestion are really help you. So if possible, I suggest you can try their suggestions to check your issue.
    In addition, I get some useful message from the MSDN document, I assume that it maybe useful for you.
    (1)So if your application is VB, I suggest you can refer the following document to check your issue.
    https://msdn.microsoft.com/en-us/library/8ck8e1y2(v=vs.110).aspx
    (2) If your application is c#, please refer to:
    https://msdn.microsoft.com/en-us/library/zekwfyz4(v=vs.110).aspx
    (3)If your application is c++, please see:
    https://msdn.microsoft.com/en-us/library/h2k70f3s(v=vs.80)
    Hope it help you!
    Best Regards, 
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I have a button in JSP page inside an UIWebView by pressing the button i want to run another existing iPhone native application in background only.Do anyone have a solution for this.

    I have a button in JSP page inside an UIWebView by pressing the button i want to run another
    existing iPhone native application in background only.Do anyone have a solution for this.

    Sounds like a virus.... I hope it's not...
    Launching Other Apps within an iPhone

  • HT1349 my itunes on my laptop (not a mac) has an error message that reads "the procedure entry point_objc_load_image could not be located in the dynamic link library.objc.dll"  then another window will come up telling to to uninstall the apple mobile and

    my itunes on my laptop (not a mac) has an error message that reads "the procedure entry point_objc_load_image could not be located in the dynamic link library.objc.dll"  then another window will come up telling to to uninstall the apple mobile and itunes and reinstall them?  will this delete everythin in the itunes account?  please help

    This might help https://discussions.apple.com/thread/5821701

  • Error updating AE: ERROR: DS015: Unable to read symlink target of source file "/Applications/Adobe After Effects CC 2014/Plug-ins/Effects/mochaAE/(Mocha Support)/mocha AE CC.app/Contents/MacOS/mediaioserver.app/Contents/CodeResources"(Seq 212)

    Error updating AE: ERROR: DS015: Unable to read symlink target of source file "/Applications/Adobe After Effects CC 2014/Plug-ins/Effects/mochaAE/(Mocha Support)/mocha AE CC.app/Contents/MacOS/mediaioserver.app/Contents/CodeResources"(Seq 212)
    What can I do?

    Run the cleaner tool and install from scratch.
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Mylenium

  • My iTunes isn't reading my IPhone 5 and I have the newest iTunes update 11.0.3 I use a windows computer, when I plug my iPhone to another windows laptop it reads it, except mine

    My iTunes isn't reading my IPhone 5 and I have the newest iTunes update 11.0.3 I use a windows computer, when I plug my iPhone to another windows laptop it reads it, except mine

    Take a look at this link, http://support.apple.com/kb/TS1538

  • I have installed an evaluation version of lightroom 5.6 64 bits on my Pc windows 7 64 bits sp1. Technical capacities are Ok. When I try to run lightroom I Read tue following message "lightroom exe. application failure  0xc000007b". Thanks for your help

    I have installed an evaluation version of lightroom 5.6;64 bits on my windows 7 64 bits pc sp1. Tecnical capacities of my pc are ok. When I Try to run lightroom i read the following message :"lightroom exe. application failure  0x000007b" Thanks for your help. Pasc39

    I did some googling and found alot of topics from you on this issue, to me it simply seems like on of the connectors is broken or loose.

  • Adobe Reader will not set as default application for .pdf in windows 8.1 pro x64

    When I install adobe reader the icon/app changes from windows reader to Pick an app, I choose change and select adobe reader, the icons on my desktop flicker but nothing actually changes.Control Panel\All Control Panel Items\Default Programs\Set Default Programs\Set Program Associations, Select adobe reader, Choose defaults for this program, PDF is unticked so I tick it and choose save, go back in and it is unticked again??? Right click on a pdf file, choose open with, choose default program, use this app for all .pdf files is ticked, select adobe...Still nothing changes, stays on pick an app. I uninstall adobe reader then the pdf icon changes to and default opens with windows reader again. Reinstall adobe reader and back to the same thing. ???? I am a power user, build configure computers and subsequent software, started with DOS 6.0, learned unix/linux/networking concepts/networking security/server versions of windows/active directory. The only solution I could think of was to hack the registry which I looked for but could not find. I am running 8.1 pro x64, I just discovered that windows reader (which I cant uninstall) has the same problem when adobe reader is installed. Windows will not allow either one to be set as default while they co-exist.

    After an extended session with chat only to be told that since Adobe Reader was free they could not help me :-(... I figured it out myself.
    I opened a administrator: command prompt window and typed "regedit"  Through extensive searching and stumbled on this key located at... HKEY_USERS\S-1-5-21-2274202122-2588692262-2244265822-1001_Classes\.pdf\OpenWithProgids  The S-1-5-21...1001... is my current logged on user, your value may differ slightly. Typically the builtin disabled administrator account is 1000 and when you install windows and create a user account "John Doe" it will have administrator priveleges and be auto numbered 1001, every user account created therafter will increase by 1 ie...1002, 1003, 1004 etc. even if you remove (delete) an account and re-create it you wont get the same number, the system will use the next number in sequence. The old one will have been trashed never to be used again. Again here is the key...
    HKEY_USERS\S-1-5-21-2274202122-2588692262-2244265822-1001_Classes\.pdf\OpenWithProgids I deleted this key under (default) on the right side...
    Name                                                                       Type                                           Data
    (Default)                                                                   REG_SZ                                    (value not set)
    AppX86746z2101ayy2ygv3g96e4eqdf8r99j            REG_NONE                              (zero-length binary value)  ---- This is the key to delete!!!
    Personally I selected computer on the left side and the went to file/export then chose a file name [01 29 2014 regbackup.reg] and location. Then I selected "OpenWithProgids" and did the same thing,[pdf.reg] this saves a backup of the entire regestry and the key you are about to delete as a safety net. When you are done all you have to do is go to a pdf file, right click and choose open with...Adobe Reader - the box always use this app should already be checked.
    I did this and it works yet because improper regestry modification can crash your system I am compelled to warn... Use at your own risk. If you are uncomfortable modifying your registry I would suggest consulting with someone qualified and has resources to do offline registry modifications/restorations which makes it VERY important to do the computer export registry backup.

  • I have re-installed Adobe Reader on to my Windows 7 PC. When I open a PDF I was getting an error message containing  . . . .Acrord32.exe application error . . . . I now cannot open any PDF's. Adobe seems to be unresponsive.

    I have re-installed Adobe Reader on to my Windows 7 PC. When I open a PDF I was getting an error message containing  . . . .Acrord32.exe
    I now cannot open any PDF's and Adobe seems unresponsive. I have tried to follow a step by step guide on how to fix this but Adobe won't stay open long enough for me to complete the steps. When I open Adobe it stays open for a matter of seconds then minimises to the task bar and when I click on it again I can't do anything with it and have to close it via task manager
    Please help!?

    Disabling Protected Mode should fix the problem.  But since you cannot even open Adobe Reader by itself, you need to do it via the Windows registry.  If you tell me your installed Reader version, I can give you a registry script to do that.

  • Opening a file in its native application from Flex.

    Is it possible to open a file on whatever native application the user runs it as?  Or even, at that, to simply open the directory it's in, in an explorer window?
    We have a search application and the frontend is in Flex, and I'm trying to find a way to do this, such that when a use double clicks on a result (in a datagrid - but that's trivial), it opens the file or at least the location of the file on the OS.
    Any system call where I can say system("explorer.exe " + filepath); or something?
    Any help would be appreciated.

    Dear BillBlalock ,
    thank you for answer!! You are very kind and helpful!! I would like to inform everybody that I have finally find another way of soilving my problem and I announce it to the forum in case somebody else encounters the same problem. Well, I soved the nproblem by using the following code:
        excelButton.addActionListener(new ActionListener()
           public void actionPerformed(ActionEvent e)
             String filePath = "\""+saveFileName.toString()+"\"";
             System.out.println(""+filePath);
             try
               String cmd="explorer "+filePath;
               Process p = Runtime.getRuntime().exec(cmd);
             }catch(IOException ec){}
         });I hope it can be useful to somebody!! By this code, I can make a button (in my case the excelButton) to open any file in its default application. Keep up the great work you are doing guys!!

Maybe you are looking for