Help with calling windows executable and hiding it using java

Hi,
I have a small utility which calls sqlplus from java , which basically executes a sql file .
Process sqlProcess = runtime.exec(command);
Where command is string and has all the required parameters.
(sqlplus_exe , username_password_sid , sql-file_to_execute_path)
This works fine but it pops up a sql plus window on screen which kindof the user has control .
Like the user can close that sqlplus window before the script gets executed completely.
I want that window to be hidden so that user doesn't have any control on the window and can't interfere with the sql execution.
So thoght about windows api , ShellExecute where you can provide a parameter to hide the window.
Details are in below
[http://support.microsoft.com/kb/224816]
Now the options I have considered to call ShellExecute are JNI / JNA / Smooth
I am using eclipse hellios on winxp
JNI
I Got the code from some website which has all the required files from here [http://www.heimetli.ch/shellexec.html]
But I am not able to run the code .
It says Exception in thread "main" java.lang.UnsatisfiedLinkError: no HSWShellExec in java.library.path
which I am not able to resolve .
Even I had put the dll and .h file in the JAVA Build Path> Library section.
JNA
looks very simple .But I don't know which library to load and call which funtion :(
JSMOOTH
It always gives jsmooth.Native.isAvailable() as false.
And I dont know how to make it true
And also thinks that it works the other way around i.e. Jsmooth loads the JVM .Don't know if it can be called from within jvm
So there I am stuck .
Any suggestions guys.
Any example code would be great.
Thanks in advance.
Edited by: Rajinder_Sandhu on Jul 14, 2010 7:58 AM

I got it working with JNI and the sample code from the website
The whole matter was get the path correctly setup in eclipse.
The solution is posted here.
[http://www.eclipsezone.com/eclipse/forums/t49342.html]

Similar Messages

  • Help with calling stored procedure and preparing statement

    hi guys help please..I want to call a procedure set the ResultSet to TYPE_SCROLL_INSENSITIVE and CONCUR_UPDATABLE in order for me to scroll thru the resultset from 1st row to end row and vice-versa..but currently, my code has an error becuase im hot sure on how to do this..Can you please help me guys to solve this? Thanks in advance!
    CODE:
                int c = 0;
                String searchArg = txtSearch.getText();
                String studName, mInitial;
                searchArg = searchArg.replace('*', '%');           
                con = FuncCreateDBConnection();
                con.prepareCall("{call dbsample.usp_StudentInfo_SEARCH(?, ?)}");
                *cStmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);*
                cStmt.setString("searchArg", searchArg);
                cStmt.setString("searchType", cmboSearchBy.getSelectedItem().toString());           
                rs = cStmt.executeQuery();           
                if (rs != null){
                    listModel = new DefaultListModel();           
                    lstSearchResult.setModel(listModel);
                    while (rs.next()){                                      
                          mInitial = rs.getString(4).substring(0, 1).toUpperCase();
                          studName = rs.getString(3) + ", " + rs.getString(2) + " " + mInitial + ".";                     
                          listModel.addElement(studName);
                    System.out.println("Rows:"+ rs.getString(2));                                                     
                          c++;
    ERROR:
    Incompatible Types
    Found : java.sql.Statement
    Required: java.sql.CallableStatement

    Nevermind guys..i got it..
    CODE:
                int c = 0;
                String searchArg = txtSearch.getText();
                String studName, mInitial;
                searchArg = searchArg.replace('*', '%');           
                con = FuncCreateDBConnection();           
                cStmt = con.prepareCall("{call dbsample.usp_StudentInfo_SEARCH(?, ?)}",ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
                cStmt.setString("searchArg", searchArg);
                cStmt.setString("searchType", cmboSearchBy.getSelectedItem().toString());           
                rs = cStmt.executeQuery();           
                if (rs != null){
                    listModel = new DefaultListModel();           
                    lstSearchResult.setModel(listModel);
                    while (rs.next()){                                      
                          mInitial = rs.getString(4).substring(0, 1).toUpperCase();
                          studName = rs.getString(3) + ", " + rs.getString(2) + " " + mInitial + ".";                     
                          listModel.addElement(studName);
                    System.out.println("Rows:"+ rs.getString(2));                                                     
                          c++;
                }     Edited by: daimous on Jan 31, 2008 6:04 PM

  • ITunes tells me, that I need to load version 11.1 in order to load a backup into my iPhone 5. I'm working with a windows PC and want to update my phone to iOS 7GM. version 11.0.5 is the highest I can get for windows. Can somebody help me?

    iTunes tells me, that I need to load version 11.1 in order to load a backup into my iPhone 5. I'm working with a windows PC and want to update my phone to iOS 7GM. version 11.0.5 is the highest I can get for windows. Can somebody help me?

    I'm assuming you followed a forum like Gizmodo to load the latest version of iOS 7 Beta on your device
    Alot of those forums forget to mention, iTunes 11.0.5 will allow you to update to the iOS 7 Beta but your device will no longer work unless you have the developer version of iTunes as well....
    I'd suggest you to research how to downgrade back to 6.1.3/4 and wait a few days for the iOS to be released,

  • I have an Ipad2, an Iphone 4 . I want to be able to sync both of these with my Windows desktop and Outlook 2007. I would like to sync to and from the Idevices and Outlook.

    I have an Ipad2, an Iphone 4 . I want to be able to sync both of these with my Windows desktop and Outlook 2007. I would like to sync to and from the Idevices and Outlook. When I attempt to sync in itunes I get a popup message asking if I want to delete, Merge or cancel. Not wanting to delete of cancel the only option left is Merge.
                When selecting Merge all of the entries in outlook are added to the idevice. The next time I merge all of the same entries plus any new ones are added, resulting in older entries being repeated i.e an entry like “John’s Birthday” will appear 5 or 6 times on the same date.
                How do I resolve this issue? How do I get the the sync process to add only new entries?

    This is a great question. First, facetime will not work because it has to establish a Call connection first. iMessage should work, but how to get it going I am not sure. Two great Apps to try are, Viber and Skype. Viber is excellent, it works over WiFi, you can make free calls and free text messages all over the world with other users who have Viber installed. It does not even have to be open on screen to work. Viber does have to recieve one text message with activation code, to activate it, this will be your only hurdle, but maybe Verizon can help you get that one text message. Skype does have to be open on screen however, but this can function like Facetime with WiFi connection. Definitely get Viber free in App Store, and put it on all your iDevices so the old Verizon iPhone can function as a telephone when on WiFi.

  • Help With Recording both Microphone and Audio Playback Simultaneously

    I am trying to record both my own microphone and another audio source at the same time. The other source is a VOIP program. When I try to set up a multitrack session I can only select either my Microphone or The sound card as my input for the tracks. When I try to set up one and then the other, I have to change my default input device from the audio hardware settings which then excludes the other device from being used. I am following the steps in these two videos here:
    http://www.youtube.com/watch?v=TAJ9rXepKZc
    and
    http://www.youtube.com/watch?v=TAJ9rXepKZc
    Thank you for your help.

    Since Audition inherently uses ASIO, the windows driver you see in the hardware setup is translating the built-in driver information (not ASIO) to this standard. The ASIO4ALL driver, which you can download for free, has some advantages in this regard; it will let you see all of the devices connected to your system with valid windows drivers and possibly let you connect more than one at a time - although I'm not promising that this will work... (although it seemed to in the video)
    The thing you have to understand about ASIO is that it bypasses a lot of the OS, and inherently will only ever work with one device at a time. Fortunately, ASIO4ALL counts as a single device, and to that extent, Audition doesn't care what's connected to it. You may yet run into difficulty though, because your mic and Windows internal hardware aren't synced together, and ASIO4ALL may regard this as an insuperable problem. The reason that I think it might work though is that your mic is a USB device, and the drivers for this are a little different. Normally we regard USB mics as being a right PITA, but in this case it might be your saving grace - I don't know.
    The usual solution to this problem is to use an external sound device with more than just single inputs and outputs, and with an ASIO driver. This method doesn't use 'what you hear' at all, but routes the software feed from your VOIP package straight to one output, which you feed to a small external mixer. Into the mixer, you plug your external mic as well. The mixer output goes to another pair of inputs on your sound device, and this is what you record in Audition, generally you on one channel and the incoming caller on another (or you can use a stereo pair split left and right). The advantage of this is that you can monitor the call on the mixer, and once you have the levels set about right, just concentrate on the call - final level tweaking, which is invariably needed, is easy, because you've kept both sides of the converstation on different tracks.

  • Help with opening Adobe Reader and downloading updates

    I can not open Adobe .pdf files any longer (this started yesterday, prior to that I could open adobe files).
    When I double click a .pdf file I get this notice on my screen: Windows cannot access the specified device path or file. You may not have the appropriate permission to access file.
    So I went to the Adobe download site to download a new copy of Adobe.  When I start the download I get this on the screen:  The instruction at "0x0e3a0068" referenced memory at "0x0e3a0068."  The memory could not be written.  Then two options are listed: click OK to terminate or cancel to debug.  So I click on cancel and I get this on my screen: Internet Explorer has closed this webpage to help protect your computer.   A malfunctioning or malicious addon has caused I.E. to close this webpage.
    I don't have AVG running, I do have avast but I've disabled it.  I ran Registry Mechanic and an I.E. erasure program but nothing helps.
    I have gone into I.E. and reduced the security level to its lowest state but no joy.
    So, any ideas or suggestions on what's the problem and how to overcome it would be appreciated.  Thanks, in advance, for your reply.  Jim R.

    Hi Mike..tried that as well but no joy.  A friend of mine was looking at it all and noticed that it was an I.E. thing as far as not letting me redownload the reader so I went to Mozilla Firefox and I could download a new version but....whenever I attempt to open a .pdf file I get that message, "Windows can not open the specified device, path or file. You man not have the appropriate permissions to access the item." 
    Damn...this is irritating as I need to get to some of thos files as I need them for a Journal I'm working on as editor-in-chief. 
    It all worked just fine last Saturday but starting Monday when I was on my flight out to D.C.  no joy. 
    Sigh...Jim R.
    Jim R.
    Date: Tue, 1 Dec 2009 14:50:27 -0700
    From: [email protected]
    To: [email protected]
    Subject: Help with opening Adobe Reader and downloading updates
    Under the help menu, there is an option to repair the installation of reader. Did you try that?
    >

  • Need help with my iPhone 5 and my Macbook Pro.

    Need help with my iPhone 5 and my Macbook Pro.  I was purchased some music on itunes at my mac. Some reason I deleted those music from both on Mac and iPhone 5.  Today, I went to my iPhone iTunes store inside of iCloud to redownload my puchased. But those song won't able to sync back to my iTunes library on my Mac.  Can anyone help me with that ??....
    iPhone 5, iOS 6.0.1

    You've posted to the iTunes Match forum, which your question does not appear to be related to. You'll get better support responses by posting to either the iTunes for Mac or iTunes for Windows forum. Which ever is more appropriate for your situation.

  • Is there a way to get photos off of a thumb drive onto something that can be uploaded to the ipad. I am doing away with my windows systems and using the ipad exclusively?

    is there a way to get photos off of a thumb drive onto something that can be uploaded to the ipad. I am doing away with my windows systems and using the ipad exclusively?

    iPad Photo Recovery: How to Recover Deleted Photos
    http://www.iskysoft.com/iphone-data-recovery-mac/ipad-photo-recovery.html
    How to Restore Lost or Deleted Files from iPad
    http://www.iphone-ipad-recovery.com/recover-ipad-mini-files.html
    How to Recover Deleted Files from iPad
    http://www.kvisoft.com/tutorials/recover-deleted-files-from-ipad.html
    How to Recover Photos from iPad
    http://www.ipubsoft.com/idevice-tips/recover-deleted-photos-on-ipad-mini.html
    iSkysoft Free iPhone Data Recovery
    http://www.iskysoft.com/iphone-data-recovery/
    Recover iPhone/iPad/iPod touch lost data, Free.
    Free recover iPhone/iPad/iPod touch lost contacts, photos, videos, notes, call logs and more
    Recover data directly from iPhone or from iTunes backup
    Preview and recover lost iOS data with original quality
    Wondershare Dr.Fone for iOS
    http://www.wondershare.net/data-recovery/iphone-data-recovery.html?gclid=CJT7i9e 6gb4CFcvm7AodbUEAJQ
    Recover contacts, messages, photos, videos, notes, call history, calendars, voicemail, voice memos, reminders, bookmarks and other documents.
    iPad Data Recovery Software (PC & Mac)
    http://www.anysoftwaretools.com/ipad-data-recovery.html
    Jihosoft Mobile Recovery for iOS
    http://www.fonerecovery.com/iphone-data-recovery.html
     Cheers, Tom

  • Barbara Brundage, can you help with PS Elements 11 and Epson R2000 printer issue?

    Seeking help with PS Elements 11 which does not work with Epson r2000 printer.  Epson tech support could not fix, said it is PS e11 problem.  Receive prompt on PS e11 screen when I try to print stating "not compatible or settings are not correct.  Have set PS to manage color and printer manages color to off.  Would appreciate any suggestions.  Thank you.

    Hi,
    Sincerely appreciate your help.  Running Windows 7 on a  Dell XPS420.  System has been very stable for years.  Before purchasing the Epson r2000, I owned an r1800 which was an excellent printer but after seven years started to exhibit paper feed problems.  The r1800 worked with all applications and I was well satisfied with the saturation, contrast, etc. printing mostly 8x10 and 11x17 prints. 
    Thank you for the information about the # of installs for PS E11, will try uninstall/reinstall this morning.
    Will let you know how things go.
    Richard
    Date: Thu, 12 Sep 2013 19:47:38 -0700
    From: [email protected]
    To: [email protected]
    Subject: Barbara Brundage, can you help with PS Elements 11 and Epson R2000 printer issue?
        Re: Barbara Brundage, can you help with PS Elements 11 and Epson R2000 printer issue?
        created by Barbara B. in Photoshop Elements - View the full discussion
    What operating system are you using?
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5678022#5678022
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5678022#5678022
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5678022#5678022. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Photoshop Elements by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Help with CF9 Standard Install and Mac OS Server (Snow Leopard Server)

    Hello,
    I recently purchased a mac mini server (with snow leopard server) and will be using it to host my CF9 applications.  This install is WAY different than the install needed on a windows machine.  I tried to install it once and somehow hosed up Apache and now I can't even get it to start up (apache).  So I am having the colo company to do a full restore of the server and I took notes on the Mac Server install and below is the questions I have.
    1.) Since Snow Leopard Server comes with Apache webserver, it is what CF wants to use.  This is fine, I just need to know where these things are...
    It is asking for the Configuration Directory:  I'm guessing it is /private/etc/apache2 ? Right or Wrong???
    2.) It is asking for Directory and file name of server binary:  It currently defaults to /usr/sbin/httpd  is this right or should I point it to another directory?
    3.) It is asking for Directory and file name of server script: It currently defaults to /usr/sbin/apachectl  is this right or should I point it to another directory?
    It also wants the location where I can place the CFIDE.  Can I place this anywhere I wish or is there a preferred location to point this to?
    and finally, I have CF9 Standard, so on the mac server should I install it as a server configuration (self contained instance) or Enterprise Multiserver config.  I was reading online that its better to install as an Enterprise Multiserver setup, but I don't know if this will work for me since I'm useing the standard edition.
    Please Help ANYONE, if you have mac os experience and installing CF9 onto a mac server
    Thanks

    I have been getting this exact same problem.  CF installer is somehow writing some invalid information into the httpd.conf file.  I was able to replace the httpd.conf file with the default one, and was able to go through the webconnector process again and (sometimes randomly) it works.  I also spent about 4 hours on the line with adobe CF support and made no progress beyond what I'll post here .
    To answer your questions about file locations:
    /private/etc/apache2/ for the httpd.conf files
    /usr/sbin/ for both the apachectl and the httpd binaries
    Although I'm able to get past where you are, and it seems to work correctly, Immediately upon adding a new site via server admin it all breaks.  Coldfusion then will only work if I manually go to a cfm document.  For example:  http://example.com/ will give me the raw text from the (default index) index.cfm file.  But typing http://example.com/index.cfm works.
    I am lost here as well.  After 4 hours on the phone with adobe support I would have hoped it would be an easy fix.  I've completely nuked and reinstalled the server from scratch with the exact same results both times.
    Does anyone have the slightest clue about what may be going on here?

  • New help with my mac air and airport extreme time capsule dont know how to save to time capsule and use as a external hd

    new help with my mac air and airport extreme time capsule dont know how to save to time capsule and use as a external hd would like 2 store my home videos and pictures on the time machine (ONLY) as the MAC AIR has storage space limited space please help. THANK YOU.

    See the info here about sharing or using the TC for data.
    Q3 http://pondini.org/TM/Time_Capsule.html
    It is extremely important you realise.. the Time Capsule was never designed for this.
    It is a backup target for Time Machine.. that is the software on the computer that does backups.. it has no direct connection to the Time Capsule.
    It has no ability to back itself up.. unlike all other NAS in the market. It is therefore likely one day you will lose all your files unless you seriously work out how to backup.
    The TC is slow to spin up the hard disk and fast to spin down. iTunes and iPhoto will continually lose connection to their respective libraries.
    iPhoto in particular is easy to corrupt when you move photos over wireless into the library.. once corrupted all is corrupt. A single photo will ruin it all.. so backup is utterly essential.
    Time Machine cannot do backups of network drives. ie the TC. You will need a different backup software like CCC. You will then need another target to backup to..

  • Be grateful for your help with Photoshop Elements which I have been using for several years.

    Be grateful for your help with Photoshop Elements which I have been using for several years.  Does Elements need to have access to ‘My Pictures’ on Windows as when I remove Photos from ‘My Pictures’, Elements later, when backing up, gives a message that it is unable to ‘reconnect’ to the same picture on elements.  On other occasions when removing a photo from Elements catalogue I also get a similar message when backing up saying ‘unable to reconnect’.  1. Is there a relationship between Elements and My Pictures and is Elements dependant on    the Windows ‘My Pictures’? 2. Why does some photos in Elements in some cases cause them to multiply e.g. double; triple; quadruple; and on occasions even more?  Is there something I need to do to stop this or an easy way I can remove the multiples without spending hours doing it manually one by one?  Am I doing something wrong? My O/S is Windows XP SP2 and windows Vista on my Laptop.  I have been using Elements 5 and have just purchased Photoshop Elements 8.0. (Upgrade) and about to install it. Be grateful for any advice as I do enjoy using the program if only I can resolve this issue.  I am not a PC wiz and mainly use Elements to catalogue photos from which I compile collections and from them slide shows with music.  Any advice appreciated Sonny.t PS Have tried to post this previously but without success so hoping to see message appear and a +response

    The organizer doesn't care where you send your photos when you download them via the downloader or where they happen to be when you first bring them in if you use the Get Photos command, but once your pics are in the Organizer, you *must* move them from within organizer or it can't find them. You don't have to use My Pictures at all if you don't want to, but regardless of the folder where you put your photos, if you want them someplace else, you use organizer to do it.

  • I have just bought an iMac, and when I had my PC I had all my mp3 music on external hard drive and used to stream using software called ps3 server and tveristy which used to pick up on my Roberts radio via network wi fi hiw do I get iMac to do it

    I have just bought an iMac, and when I had my PC I had all my mp3 music on external hard drive and used to stream using software called ps3 server and tveristy which used to pick up on my Roberts radio via network wi fii and on my iPad via AirPlay. How can I do the same with iMac as this software isn't compatible

    To install apps from developers Apple doesn't recognize go to Security and Privacy in the System Preferences and change Allow apps downloaded from anywhere

  • TS1398 How can I use both, Windows PC and iMac, when using WiFi?. It is either-or. What can I do?

    How can I use both, Windows PC and iMac, when using WiFi?. It is either-or. What can I do?

    What does this have to do with using an iPad?
    But yes, you should be able to connect to your home WiFi network with multiple computers and devices. In my house my wife, my daughter and I will all be using the WiFi Internet connection at the same time with our Laptops and I will also be using my iPad, my daughter uses her iPhone, and we have no issues at all.
    Is this what you want to know about?

  • When i try to use facetime on my imac it comes up with facetime not responding and starts to use nearly 2gb of memory. Any ideas please?

    when i try to use facetime on my imac it comes up with facetime not responding and starts to use nearly 2gb of memory. Any ideas please?
    Also messages does the same thing

    Hello BassoonPlayer,
    Since you are using one of the the school's Macbooks, it is quite possible that the time and date are not properly set on the computer that you are using.  FaceTime will not work if you do not have the proper time zone set up for the location that you are in.  This past week, there were a two other Macbook users I've helped by simply telling them to set the Date/Time properly.  By the way, you described your problem very well, which makes it easier for us to help you.  Hope this solves your problem -- if not, post back and I can suggest other remedies.
    Wuz

Maybe you are looking for