How to release the prompt and how to stop JVM afterwords

There are 2 related questions here:
(1st) I have a Java class that I'd like to start and release the command prompt. In Linux, I usually start it this way:
> java MyClass &
But in Windows I can't do that, it always holds the command prompt open. If I try this way:
> javaw MyClass
it works, but if I call it from inside a batch file, it opens a command prompt (then I can close the command prompt and it remains in memory). But I'd like it not to open any command prompt. Does anyone know a way?
(2nd) I'd like to start the class above like we do for some services... I thought of doing somethind like this:
> java MyClass -start
This, after solving the (1st) question, looks easy. The problem is: how to implement this class in order to be able to call
> java MyClass -stop
to stop it, finishing its JVM? How will this class be able to detect an instance of itself in memory and stop it??? Is there something simpler than using sockets for that purpose?
Thanks for your help, friends!

Well, the first is easy - instead of starting with java.exe, use javaw.exe. No more icky command prompt. ;-)
The second one is trickier. If you really want to go that route, I'd suggest looking at the Tomcat bootstrap code - it listens on a specific port for program handling commands.

Similar Messages

  • How to release the task and Transport

    Hi can anybody tell me the steps , how to release the task and how to relase the Transport into Quality.
    Thanks in advance.
    kp

    Hi,
    Go to SE09..
    Give your user name..Press enter..It will display all the CRs..
    Place the cursor on the task of the CR you want to release..
    Press the transport button (F9)..
    Do the same for all the tasks..
    Then place cursor on the CR..
    Press the transport button (F9).
    Now the CR is released...
    You can basis team to import the CR to quality system using the transaction STMS.
    Check this link for using the STMS
    http://help.sap.com/saphelp_nw04/helpdata/en/44/b4a3c57acc11d1899e0000e829fbbd/content.htm
    Thanks,
    Naren

  • IPhoto, prompt kept coming up asking if I was sure I wanted to delete photos.  I unchecked the prompt and I want it back.  How do I get it back?

    iPhoto, prompt kept coming up asking if I was sure I wanted to delete photos.  I unchecked the prompt and I want it back.  How do I get it back?

    Try trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder.
    (On 10.7or later : Hold the option (or alt) key while clicking on the Go menu in Finder to access the User Library)
    (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    What's the plist file?
    For new users: Every application on your Mac has an accompanying plist file. It records certain User choices. For instance, in your favourite Word Processor it remembers your choice of Default Font, on your Web Browser is remembers things like your choice of Home Page. It even recalls what windows you had open last if your app allows you to pick up from where you left off last. The iPhoto plist file remembers things like the location of the Library, your choice of background colour, whether you are running a Referenced or Managed Library, what preferences you have for autosplitting events and so on. Trashing the plist file forces the app to generate a new one on the next launch, and this restores things to the Factory Defaults. Hence, if you've changed any of these things you'll need to reset them. If you haven't, then no bother. Trashing the plist file is Mac troubleshooting 101.

  • Hello  Simple problem - don,t know how to solve it.  With Premiere CC when I try to do a selection (click... drag... release the click) very often it stop way before the end of the move I'm swinging the Magic Mouse. I taught that the mouse clicking was de

    Hello
    Simple problem - don,t know how to solve it.
    With Premiere CC when I try to do a selection (click... drag... release the click) very often it stop way before the end of the move I'm swinging the Magic Mouse. I taught that the mouse clicking was defective and went to get a new Magic Mouse after lots of frustration. Today, I have an edit to do it it does the SAME thing !!
    I was like ????#$%?&*(???
    Opened all the lights and taught I've trow the new mouse to the garbage and was using the defective mouse again... no !! - ??
    Actually, the bran new mouse is doing the same thing. What I understand after investigating on the motion and watching carefully my fingers !! -  is that when I click I have to keep my finger at the EXACT same place on the mouse... drag and release and it's fine. If I click by pushing on the mouse and my finder is moving of a 1/32th of a millimeter, it will release and my selection will be to redo. You can understand my frustration ! - 75$ later... same problem, but I know that if I click with about 5 pounds of pressure and trying to pass my finger through the plastic of the mouse, it you stay steady and make it !
    The problem is that scrolling is enable while clicking and it bugs.
    How to disable it ??
    Simple question - can't find the answer !

    Helllooo !?
    sorry but the Magic Mouse is just useless with the new Adobe Premiere CC and since I'm not the only one but can't find answer this is really disappointing. This mouse is just fantastic and now I have to swap from a USB mouse to the Magic Mouse every times I do some editing. My USB mouse if hurting my hand somehow and I want to got back to the Magic Mouse asap. Please - for sure there is a simple solution !
    Thanks !!

  • HT3529 I am currently deployed and was using my iMessage to be able to talk to family back in the states and my iMessage stopped working. It will no longer select my number to use as the send/receive. How do I fix this so I can continue to talk to family?

    I am currently deployed and was using my iMessage to be able to talk to family back in the states and my iMessage stopped working. It will no longer select my number to use as the send/receive. How do I fix this so I can continue to talk to family?

    Read here:
    http://support.apple.com/kb/TS2755

  • Easy Question! How Do I Play ONLY the Selection, and then playback stops?

    How Do I Play ONLY the Selection, and then playback stops? (Same as subject..)
    Thanks! I'm loving STP so far. I came from Sony Sound Forge so it's been difficult finding something that can compare, but I think I have it now! Lot's of advantages for STP too.

    I think you're confusing the audio loops with MIDI loops. The blue loops are audio loops which will play only on audio tracks. You can't 'play' those with a keyboard because they are actual audio files. The green loops contain MIDI data that corresponds with a software instrument, and if you drop them onto a Software Instrument track, they will open that instrument which you CAN play with an external keyboard or the caps lock keyboard.
    I might be missing some loops, but when I searched for Bell Tower I found only one, and it is a blue loop. So it can only be played as an audio loop on an audio track. However, if it were a green loop, you would NOT drop it on an external MIDI track (I think that's what you're trying to do if you're dragging it onto the 'Grand Piano MIDI instrument'), but you would create a SOFTWARE INSTRUMENT track, and drag it on that. Any internal sounds you want to play from Logic's instrument you'll do from Software Instrument tracks, and not MIDI tracks.
    What you should do to find a good chime sound that you can play with the caps lock keyboard is to create a Software Instrument Track, open the Library tab, and search there for a good chime. This will search all of the instruments and presets that Logic has for all of its internal instruments. Try 'Tubular Bells' and see if that works for you.
    If you need to use the bells from that loop, do what SC suggested, and take the hits from the audio file and load them into a sampler. Then you can play them the way you want to. If you don't know how to make a sampler, it's a bit complicated. Look up EXS24 in the manual, or check out
    http://www.youtube.com/user/SFLogicNinja
    I think he has a video or two on EXS24

  • I bought a team license for two computers, the purchase was recorded on the credit card and the amount recorded in the making, but was unable to validate the association staff . I received an email stating that Adobe could not release the payment and that

    I bought a team license for two computers, the purchase was recorded on the credit card and the amount recorded in the making, but was unable to validate the association staff .
    I received an email stating that Adobe could not release the payment and that I should validate the method of payment , tried to insert another card number but the system does not accept the security VAT reporting error message. How do I validate my license with association staff and confirm the payment card?

    Hi Daniel,
    For any sort of payment related matter, kindly contact our support team via:  http://helpx.adobe.com/in/contact.html?step=CCSN_adobe-id-signing-in_stillNeedHelp
    If you are unable to use chat option kindly try below mentioned steps.
    Try different browser.
    Delete cookies and cache
    If you are still not able to chat, Kindly reply with the below mentioned information.
    OS version:
    Browser Version:
    You can also try: http://helpx.adobe.com/x-productkb/global/phone-support-orders.html 
    Thanks,
    Atul Saini

  • Change the colour of the prompt and the value

    Hi,
    I have an Item MessageStyledText with some value on an OAF Page.
    By default the colour of the Prompt and the value of this Item are black.
    But i need to change the Colour to Blue.
    Fast response highly appreciated.
    Thanks,
    Palepu.

    Approach 1:
    Custom Look and Feel - Create your CLAF and change CSS Style.
    Limitation - The main limitation of the Custom Look and Feel functionality is that you can only extend Simple LAF or Base LAF, which do not include all the functionality of the Browser LAF (BLAF) or SWAN.
    Approach 2:
    You can do it programmetically as follows:
    import oracle.cabo.style.CSSStyle;
    CSSStyle customUnCss = new CSSStyle();
    customUnCss.setProperty("text-transform","uppercase");
    customUnCss.setProperty("color", "#FF0000");
    OAMessageStyledTextBean sampleBean = (OAMessageStyledTextBean) webBean.findChildRecursive("<Id of your messageStyleText will come here>");
    if(sampleBean != null)
    sampleBean.setInlineStyle(customCss); //set custom css style
    You need to provide more details to get more appropriate solution/workaround.

  • HT1386 every time I try to sync my phone and restore my content after I updated my iPhone, iTunes goes through the prompts and then says "cancelling sync" at step 5.  I cannot restore my apps or music!

    every time I try to sync my phone and restore my content after I updated my iPhone, iTunes goes through the prompts and then says "cancelling sync" at step 5.  I cannot restore my apps or music!

    when i try to sync my music which i have on my PC's itunes it will just not transfere on the phone. everything will sync [apps, videos, contacts] but the music will just not transfere.
    and when i try to download the music from the phone's itunes store it will say "Error. Tap again to retry".
    Thera are no more details i have! i have no idea why the songs will not sync and will not download!

  • HT4623 once ipad is updated it goes through the prompts and then stays on connect to itunes???

    once ipad is updated it goes through the prompts and then stays on connect to itunes???

    Unable to Update or Restore..?
    See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...  Be sure to Follow ALL the Steps...
    Also see this discussion...
    https://discussions.apple.com/message/24163508

  • Suddenly in the middle of editing a large project the cropping and other tools stopped working. Did i hit some key or something accidently?

    suddenly in the middle of editing a large project in Aperture the cropping and others tools stopped working. Did I accidently hit something to do that?

    Maybe you hit the "p" key?
    Then "Quick Preview" will be turned on and prevent editing. Hit "p" again or use the "View" ->"Quick Preview" menu entry.

  • The keyboard and mouse have stopped 'talking' to the computer. New batteries in both units. Can't write, e-mail, text etc. What do I do next?

    The keyboard and mouse have stopped 'talking' to the computer - cursors do not move in response to mouse, right and left clicks do not register and typing does not happen.. Batteries have been replaced on both. The computer seems to be working normally in all other respects. The little green 'on' lights on both the mouse and keyboard light up for ~10 seconds,blink for about 20 seconds, and then go out. Computer shut down and restart did not change the situation. What's next?

    Get a wired keyboard and mouse for times like these, also to perform at boot keyboard commands in emergencies.
    Step by Step to fix your Mac

  • How to call the column names into the prompt and display values dynamically

    Hi,
    i have a typical requirement where I have to call 3 columns into the AGE Prompt (I know we can use the Column Selector to call the columns) .Below is the Screen Shot.
    !http://i46.tinypic.com/2qjfukh.jpg!
    2nd Requirement)
    The three columns I have are order Date, Ship Date and Entry Date.
    Whenever I click on Orderdate from the Prompt, It should dynamically show its values in the report.
    and When I click on the Ship Date from the Prompt, it should display the corresponding values in the report.
    and so on with the Entry Date.
    Can anybody help me how to acheive this.
    Thanks a ton.

    Ok so then you can use a fake column prompt. Here's one quick approach (nicer and cleaner with LOV tables but I don't if you have any of those).
    - Create a fresh prompt using any column you want.
    - Open the column formula using the fx button and replace the formula with 'abc'.
    - Use "SqL Results" as the "Show" option.
    - SQL:
    select case when 1=0 the Markets.Region else 'Order Date' from Paint.Markets UNION ALL
    select case when 1=0 the Markets.Region else 'Ship Date' from Paint.Markets UNION ALL
    select case when 1=0 the Markets.Region else 'Entry Date' from Paint.Markets
    - Set Variable = Presentation Variable = @{vPresVarSelectedDate}{Order Date}
    - Label = Date
    Then in the request, you change the column formula for the date. I'm going to make it short and just assume you called your time dimension alias(es) like the lowest grain:
    "@{vPresVarSelectedDate}{Order Date}"."@{vPresVarSelectedDate}{Order Date}"
    Cheers,
    C.

  • I ran the update and then firefox stopped working completely ggot a message about .dll that won't work with windows. tried toreinstall new copy of latest but they won't.

    I just ran the update to .4 as the dialog box said to. Now firefox won't work at all. Nothing happens I get a message about a .dll file that is incompatible. Tried to doanload a new copy but that doesn't get any further starting to extract files then it fails to finish. Any thing I can do or have I lost evrery thing including my bookmarked sites?
    == This happened ==
    Every time Firefox opened
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SIMBAR={7B37EC33-AF75-48D2-9930-4E9EF2ABA545}; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)

    Thank you,
    Morbus! It worked like you said. Anyway I think the problem starts with maybe needing to completely clean up my OS and drives as they keep "filling up" real fast - much faster than my usage. Uninstall wouldn't work so I just oened up programs and fond the .exe and then deleted it. Scary moment as I really have seen others so mess up everything doing this but download went well of new copy and yes I have all my bookmarks and settings. YAYS!! so thank you again. Also running so much faster and no glitches like tabs not working th way they should. In end I think I need to get an upgrade from Vista home basic. and just then add my files one at a time to see how all goes.

  • I got my iphone 5 Last christmas, all seem to be well then it started connecting a disconecting from the charger and then suddenly stopped so i bought a new charger, it would for a bit then stopped working again whats wrong?

    I Got my iphone 5 last christmas, and then a couple of months after the charger started to conect and disconect, i thought at first it was just the cord so i bought a new one but then it happened again, from this day i have bought 6 iphone 5 chargers and now my 7th and its rarely working whats wrong? and also my sleep wake button isnt working properly?  PLEASe HELP !

    If you are getting Siri when you double tap, then your home button must be sticking. Siri comes up when you hold the home button. Try tapping quickly twice. When that happens, the multi-tasking list comes up and you will see the app icon and then a thumbnail, or reduced size view of the app above it. You put your finger on that thumbnail and swipe upwards with your finger.
    For that issue, you might want to do a reset of the phone. Hold the sleep/wake and home buttons together until you see the Apple logo and then release. The phone will reboot. This will not affect your data.
    To be honest, your novel is a little difficult to read, and I think you put too much information in there, and a lot of it is unnecessary. Be to the point and just add information necessary to understand the issue.

Maybe you are looking for