Helps helps Thanks for your suggestion

I have a problem with java runtime class.
I build a class which is invoked by main class. we i run it solely, which run well. but when it is invoked by main class. the runtime.excu can not finished. I have used process.waitfor, but it is no used in this case. i need your help.
main class:
A2POS pos=new A2POS();
pos.Pos(result1);
subclass:
try
String com= " c:\\jbuilder\\geniatagger-1.0\\geniatagger.exe";
// command + " /c dir > c:\\dir.txt");
//Process process = Runtime.getRuntime().exec("cmd /c start "+com+" ");
String[] a={"c:\\jbuilder\\geniatagger-1.0\\geniatagger.exe","-i question.txt","-o result.txt"};
Process process=null;
process = Runtime.getRuntime().exec
("cmd /c start/wait c:\\jbuilder\\geniatagger-1.0\\geniatagger -i "+Qurl+" -o "+Rurl+"");
process.waitFor();
System.out.println("Notepad returned " + process.exitValue());
catch (Exception e)
e.printStackTrace();
}

You can mean anything you want, but in Java (or general OO) terms, a subclass is a class that extends another class, not a class used from another class. If you want to use different terminology, expect people to misunderstand you.
Furthermore, if there is a difference between how the Runtime.exec() command behaves when run from your main class, compared to when it is run from the other class, there must be a difference in circumstances (different input parameters, different files, whatever). Without the actual code, it is impossible to tell (please use code tags when posting code).
In any case, you need to use the techniques described in the article I posted to prevent the external process from hanging, which would cause the process.waitFor() to wait forever.

Similar Messages

  • Help! I am getting: Quicktime error -50...when trying to use the "Share" and "Send to Compressor" function. I need to export my show! Thanks for your suggestions! (using FCP7)

    Help!  I am trying to export my show and commercials from the timeline. Both Share and Send to compressor are not working.
    Its starts compressing then I get Failed"Quicktime Error -50". I appreciate any suggestions.
    SYSTEM INFO
    Model Name:          Mac Pro
      Model Identifier:          MacPro5,1
      Processor Name:          Quad-Core Intel Xeon
      Processor Speed:          2.4 GHz
      Number Of Processors:          2
      Total Number Of Cores:          8
      L2 Cache (per core):          256 KB
      L3 Cache (per processor):          12 MB
      Memory:          10 GB
      Processor Interconnect Speed:          5.86 GT/s
      Boot ROM Version:          MP51.007F.B00
      SMC Version (system):          1.39f11
      SMC Version (processor tray):          1.39f11

    First try exporting a self-contained movie from FCP, the using the resulting file in Compressor.  To do it, go to File->Export->QuickTime Movie (do NOT use QuickTime Conversion).  In the export window, check the self-contained option but do not "recompress all frames."
    Once the export is finished, launch Compressor then use the self-contained file as the source.  If that fails, you may want to try using theis: http://www.digitalrebellion.com/compressorrepair/
    -DH

  • How do I capture tape-based media to my external hard drive?  There is only one firewire 800 port on the back of my I mac.  The manual says to import tape footage directly into fcpx, but then I lose my external hard drive.   thanks for your help.

    In FCP X How do I capture tape-based media (hdv clips)- which I want to import-to my external hard drive?  There is only one firewire 800 port on the back of my I mac.  The FCPX manual says to import tape footage directly into final cut, which works, but then I lose  my external hard drive    Do I  have to import it into an event, then copy it over to an external hard drive?  On Larry Jordan's tutorial, he has 3 external hard drives that show up on his monitor WHILE he imports his tape based media.  How is that done?  I can only get either the camera to appear OR my external hard drive.   thanks for your help.

    Thanks for your response, but that doesn't solve the problem.  Yes, the LaCie hard drive has 2 firewire ports-
    I have always done what you suggest (works fine in FCP7), but in FCPX when I do that the camcorder icon
    does not appear.  It only shows up when I DIRECTLY import the footage via firewire.  ????

  • Kappy, thanks for your help

    So my last question to Kappy which he answered so expertly was "how to transfer from one time capsule to the other the saved info". Great job..
    I am taking the plunge, what do I do with the old time capsule? Do I use it as a back up? if so, can I kill the wifi? Do I want to kill wifi? Will it interfere? thanks for your suggestions...

    There may be some suggestion or methods to control certain aspects
    of that device in the Manual, or perhaps in general over functions, in
    •AirPort + Wi-fi -- Apple Support...
    http://www.apple.com/support/airport/
    There is a link to manuals in this specific area, but not sure how close
    a match what they have may be to your product model build series.
    In the airport setup software you may be able to address the older unit
    from there, to choose settings and change its function somewhat. Also
    there is a market for older products. People who are not upgrading to
    a newer unit or a later version OS X (or iOS) may be able to use it.
    Some may be able to have their software updated; once that's done
    may or may not be reverted. Depends on what is updated inside...
    a firmware update may change how the unit works after that point.
    While I have several older AirPort units, mine use an external archive
    instead of built-in storage. So mine support wired printers as wireless.
    And to have an older one on-hand may be helpful for older gear.
    Good luck & happy computing!

  • I need to delete files from my iMac hard drive, but not from my other devices (that are sync. to iCloud). How do I do this?? My Mac is a 24-inch Mid 2007 running on Mountain Lion. Thanks for your help.

    I have recently recieved messages indicating that my start up disc is almost full. Consequently I need to remove some files from my hard drive. I've backed up my hard drive onto a NAS system & onto an external harddrive. The problem now, is that whenever I try to delete a file, a message comes up saying that if I remove this file from my hard disc it will remove it from all my other devices that are syn. to it. How do I remove a file (movies) from my iMac but not from other devices.
    Thanks for your help
    Robert

    You're right - this question has nothing to do with iSync!
    You're best bet would be to buy yourself an external Firewire or USB 2.0 hard-disk. There's no way you'll get 150gb onto an 80gb drive - certainly not in an instantly accessible way.
    Your new Mac would've had the Migration Assistant appear during the initial OS install. This allows you to connect your new and old Mac together via a Firewire cable and automatically transfer your important files from old Mac to new.
    Once you've all the files off your old Mac, re-format it and re-install the OS that came with it. If you boot up the Mac from the OS install DVD, there is an option to re-format the HD and install the OS.
    See this Apple support page:
    http://docs.info.apple.com/article.html?path=Mac/10.4/en/mh1103.html

  • In mail, my attachments, both photos and documents appear in the body of the message.  How can I get my attachments to appear as a separate attachment and not as part of the message.  Thanks for your help, Karen.

    In mail, my attachments, both photos and documents, appear in the body of the message.  How can I get my attachments to appear as a separate attachment and not as part of the main message????  Thanks for your help, Karen.

    softwater wrote:
    ...and costs $14.99
    Yep! And if you absolutely need (or think you need) that functionality, it is worth every penny.
    As Don already pointed out, exactly what the recipient sees will depend on how they've set up their machine and what unnecessary 3rd party apps they might've installed to display attachments the way they want.
    In theory, that is true. In practice, Attachment Tamer will cause more of your messages to show up as plain-jane icons on the other end. The problem is, after all, people running Outlook 2003 and 2007. These people likely aren't doing many system modifications.
    If I were you, I'd use the free solutions provided above, save my money and let my recipients decide how they will handle their mail.
    I completely agree.

  • Two separate iPhones got merged into one iTunes account. How to separate them. We are sharing all of each other's contacts at this time. Thanks for your help.

    Two separate iPhones got merged into one iTunes account. How can I separate them in iTunes???????. We are sharing all of each other's contacts at this time. Thanks for your help.

    The reason you are receiving each other's text messages is because you are both using the same Apple ID for iMessage.  To prevent this you need to use different IDs.  (Note: you can still share the same ID for iTunes.)  On one of the phones, go to Settings>Messages>Send & Receive, tap the ID, sign out, then sign back in with a separate ID.
    To migrate your 3GS to a new iCloud account, start by saving any photo stream photos that you want to keep on the phone to your camera roll.  To do this, open the my photo stream album, tap Edit, tap the photos, tap Share, tap Save to Camera Roll.  Next, if you have any notes that you are syncing with iCloud that you want to keep, you'll need to email these to yourself so they can be recreated after moving to the new account.
    Once this is done, go to Settings>iCloud, scroll to the bottom and tap Delete Account.  (This will only delete the account from this phone, not from iCloud.  The phone that will be keeping the account will not be effected by this.)  When prompted about what to do with the iCloud data, choose Keep On My iPhone.  Next, sign back in with a different Apple ID to create the new account, turn iCloud data syncing preferences and when prompted about merging with iCloud, choose Merge.  This will upload the data to the new account.
    Finally, if you have merged data in the two accounts that you want to separate you will have to go to icloud.com from your computer, sign into each iCloud account separately and manually delete the data you don't want from each account.

  • Can you share photos between machines that use the same wifi network? Thanks for your help.

    Can you share photos on i-photo between machines that use the same network or even between different accounts on the same machine? I know you can share music on i-tunes but can you do the same on i-photo? Thanks for your help.

    Yes.
    If you want the other user to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account. In that account, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
    Any user can drag a pic from the Shared Library to their own in the iPhoto Window.
    Remember iPhoto must be running in both accounts for this to work.
    You can figure out using it with another machine from that too

  • Hi, I have an iPhone 1 that is blocked (because of wrong passwords) and isn't recognized by iTunes. How do I fix this? Thanks for your help!

    Hi, I have an iPhone 1 that is blocked (because of wrong passwords) and isn't recognized by iTunes. How do I fix this? Thanks for your help!
    By the way I'm using a MacMini and all operating systems are up to date including iTunes.

    First try a Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least Ten seconds... (But can take Longer)... until the Apple logo appears. Release the Buttons
    If no joy... Try a Restore...
    1: Connect the device to Your computer and open iTunes.
    2: If the device appears in iTunes, select and click Restore on the Summary pane.
    Restoring  >  http://support.apple.com/kb/HT1414
    3: If the device doesn't appear in iTunes, try using the Steps in this article to force the device into Recovery Mode.
    Make sure you have the Latest Version of iTunes (v11.1.5) Installed on your computer
    iTunes free download from www.itunes.com/download

  • What does "extracted channel PDF" mean and why does it continually duplicate on my desktop?  I think it happens when I move a file in Finder to another file and when I copy some web files.  How do I avoid this on my Mac (Mavericks)?  Thanks for your help!

    What does "extracted channel PDF" mean and why does it continually duplicate on my desktop?  I think it happens when I move a file in Finder to another file and when I copy some web files.  I have to immediately move to trash all the duplications on my desktop.  How do I avoid this on my Mac (Mavericks)?  Thanks for your help!

    What application is set to open PDF files? If you CNTRL click on the file and open with Preview does the problem occur?
    If not change the default application to open PDF files to Preview.
    You can do this by highlighting the file and either use CMD i or Get Info , this will open a window with the info on the file with an option to change the application that opens the file.
    That's all I can think of.

  • Somehow my application icon in the dock has disappeared and I have no idea where it went or how to get it back. I am not all that computer knowledgeable. Thanks for your help.

    Somehow my application icon in the dock has disappeared. I have no idea where it went but it contains all my applications that i use. How do I get the application icon to return  to the dock. Thanks for your help. I am not computer literate by any means. Thanks

    Goto your application folder, find your app then drag/drop it back to the dock.

  • I have no longer got the contacts symbol.  when for instance I want to send a mail....thanks for your help been

    Hello,
    I had to re-initialized my iTouch (ios5.0.1) and since then I have no longer got the contacts symbol. However my contacts are still there when I want to send a email for instance, but I can't add any like before when this app was in.
    Thanks for your help
    Bruno

    Sorry, but I don't know of any other way.  Perhaps you can leave feedback to Apple on this.
    http://www.apple.com/feedback/ipodtouch.html
    B-rock

  • TS3899 Getting a "background picture of angry birds" in back of my e mail messages...any ideas how to get rid of this?  Thanks for your help

    All of a sudden I am getting a background picture of angry birds in my e mail.  I can view the mail but it is annoying.
    I have cleard the history an still it appears.   Any ideas on how to get rid of this garbage?  Thanks for your help.

    Bettina:
    Do you see the color in Designer, or only Acrobat. If it's only in Acrobat, try changing the menu item Forms >> Highlight Fields. This toggles entry field highlights on and off.
    Mark
    You can shut off or change the highlight with this
    app.runtimeHighlightColor = color.red;
    if (app.runtimeHighlight)
    app.runtimeHighlight = false;

  • HT5373 How do I enable a calendar subscription in my iCloud calendar? I'm using a Windows laptop (Home Office 7) and am trying to get the rugby and footfall fixtures to appear on my iCloud calendar.  Thanks for your help.

    How do I enable a calendar subscription in my iCloud calendar? I'm using a Windows laptop (Home Office 7) and am trying to get the rugby and footfall fixtures to appear on my iCloud calendar.  Thanks for your help.

    I suspect you had the same issue I did and downloaded the 64-bit version of the OpenSC libraries, but your firefox is 32-bit. You can see the opensc-pkcs11.dll in the System32 folder via windows explorer, but when you browse that directory via firefox to add the module, you are acutally being redirected to the SysWOW64 directory. Try intstalling the 32-bit OpenSC libraries, and adding the appropriate library from the C:\Windows\SysWOW64 directory.

  • Server Problem, thanks for your help

    Hi there,
    We have 2 informix database instabce running on same machine. Call devdb and systestdb. The structure are same. The question is, when I run application on systestdb, it works. But if i run same app on devdb, seems nothing happen. I do believe the configuration is oK, and environment has been correctly set up [I copy the working one and only change the DB name to devdb]. And also I notice when I run the app on devdb, seems nothing being write to ULOG file. [only server start message been wrote, and I check the server is up.] That is what confuse me, if there is message, you may be able to find out what cause problem, but if there is no message, what can I do.
    And another question is, when I run wlisten, why the message not write to that file point out by UBBCONFIG, but it will generate a new one under current directory?
    Any idea? I am newer in Tuxedo, thanks for your help.

    Up, nobody can help?
    :-(

Maybe you are looking for

  • Sales Order uplaod from JAVA to SAP R/3

    Hi all, My cousin is working on uploading Sales Order Document from java server to R/3. for that he is having a code from JCO jar. the below is the file from which one can upload his SO details from JAVA to R/3. But in this program he is  just able t

  • How to insert sql code in module (not form) other than API?

    I generated module as web pl/sql in Oracle Design Editor 6i. I have different user types with different privileges. I want to do some permission checking before a user can reach the tables. All the help are related to API and Form. Is there a way to

  • Calling a bounded task flow (that uses fragments) from another application

    Hello, I'm currently having difficulties calling a task flow located inside another application. I have application Console which is my main application in which I would like to run other applications within. Inside this Console I have it divided int

  • Error in flat file loading : Important

    Hi ! I am using BW 3.5 .  I am loading data from flat file which has a KF VOLUME and UOM as USG but it is giving error as Conversion exit error.(CONVERSION_EXIT_CUNIT_INPUT). Please tell me what should i do ?

  • Trash Email and Search and Spotlight?!

    Hi and tnxs for reading. I noticed that with both email search and spotlight search, no mail are searched in trash folder. Is there any chance to include it in general search aswell instead of having to open that folder and search manually in it? Man