How can java programs execute automatically when it connects to network

Good Day dears...
How can java programs execute automatically when it connects to network.
Thanks in Advance friends Shackir

884924 wrote:
Good Day dears...
How can java programs execute automatically when it connects to network.What is "it"? That is, execute when what connects to the network?
Your computer? If that's what you mean, this is not a Java question. It's an OS operational/administrative question. Executing any program, whether written in Java or not, based on some system event has to do with that system, not with the program. If it's possible to do this, you'd do it exactly the same way for a Java program as you would for any other program.
Or is "it" the program itself? If this is what you mean, then it's a nonsensical question. For the program to connect to the network and detect that it has connected to the network, it must already be executing, so asking how to execute it at that point is meaningless.
Finally, I'll point out that "connecting to the network" is a pretty meaningless phrase. Or rather, it has so many potentially valid meanings that it's impossible to know which one you're referring to when you use that phrase. And I'd be willing to bet you don't have a clear picture of that yourself.

Similar Messages

  • How can Time Machine backup automatically when your external hard drive isn't connected?

    Everywhere I search, it says that Time Machine will automatically backup every 24 hours and so on.
    However, I was wondering - how can these automatic backups take place if you are backing up to an external hard drive which is not always connected?
    Is this to say that if you do not connect your external hard drive for a day, no backups will be done that day?
    Thank you

    If the drive is not connected then TM pauses until the drive becomes available. Yes, if the drive isn't connected then there are no backups.
    A  whole  lot  about  Time  Machine for help with TM problems.  Also you can select Mac Help from the Finder's Help menu and search for "time machine" to locate articles on how to use TM.  See also Mac 101- Time Machine.

  • Java web server error when not connected to network

    If my laptop is not connected to a network, when I execute the java web server, it fails at start up with the exceptions listed below. When debugging, I need access only to local host, so it seemed reasonable to me that the web server should execute in the absence of a network.
    I just found that I get the same failure, if I'm connected to the network via a dialup connection.
    Any ideas on how to configure my system so that the web server will function in the absence of a network connection?
    Microsoft Windows 2000 [Version 5.00.2195]
    (C) Copyright 1985-2000 Microsoft Corp.
    C:\>j2ee -verbose
    J2EE server listen port: 1050
    org.omg.CORBA.INTERNAL: minor code: 1398079697 completed: No
    at com.sun.corba.ee.internal.iiop.GIOPImpl.createListener(GIOPImpl.java:
    253)
    at com.sun.corba.ee.internal.iiop.GIOPImpl.getEndpoint(GIOPImpl.java:202
    at com.sun.corba.ee.internal.iiop.GIOPImpl.initEndpoints(GIOPImpl.java:1
    37)
    at com.sun.corba.ee.internal.POA.POAORB.getServerEndpoint(POAORB.java:48
    4)
    at com.sun.corba.ee.internal.POA.POAImpl.pre_initialize(POAImpl.java:144
    at com.sun.corba.ee.internal.POA.POAImpl.<init>(POAImpl.java:102)
    at com.sun.corba.ee.internal.POA.POAORB.makeRootPOA(POAORB.java:109)
    at com.sun.corba.ee.internal.POA.POAORB$1.evaluate(POAORB.java:127)
    at com.sun.corba.ee.internal.core.Future.evaluate(Future.java:23)
    at com.sun.corba.ee.internal.corba.ORB.resolveInitialReference(ORB.java:
    2159)
    at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.ja
    va:2110)
    at com.sun.enterprise.server.J2EEServer.run(../../src/share/com/sun/ente
    rprise/server/J2EEServer.java:192)
    at com.sun.enterprise.server.J2EEServer.main(../../src/share/com/sun/ent
    erprise/server/J2EEServer.java:901)
    java.lang.RuntimeException: Unable to create ORB. Possible causes include TCP/IP
    ports in use by another process
    at com.sun.enterprise.server.J2EEServer.run(../../src/share/com/sun/ente
    rprise/server/J2EEServer.java:202)
    at com.sun.enterprise.server.J2EEServer.main(../../src/share/com/sun/ent
    erprise/server/J2EEServer.java:901)
    java.lang.RuntimeException: Unable to create ORB. Possible causes include TCP/IP
    ports in use by another process
    at com.sun.enterprise.server.J2EEServer.run(../../src/share/com/sun/ente
    rprise/server/J2EEServer.java:202)
    at com.sun.enterprise.server.J2EEServer.main(../../src/share/com/sun/ent
    erprise/server/J2EEServer.java:901)
    java.lang.RuntimeException: Unable to create ORB. Possible causes include TCP/IP
    ports in use by another process
    at com.sun.enterprise.server.J2EEServer.run(../../src/share/com/sun/ente
    rprise/server/J2EEServer.java:347)
    at com.sun.enterprise.server.J2EEServer.main(../../src/share/com/sun/ent
    erprise/server/J2EEServer.java:901)
    J2EE server reported the following error: Unable to create ORB. Possible causes
    include TCP/IP ports in use by another process
    Error executing J2EE server ...

    Has anyone else ever seen this failure?

  • How can Java program convert to .exe file which can run on window system?

    Hi,
    I am a new programmer, now I wrote a program on the Eclipse, and now I want to convert to .exe file and make the program can be run on other window office system PC.
    I had downed EXE4J software to make the program to .exe. BUT the exe file can not be run on other PC with the error message that warning the PC have not set up JVE. IS it necessary to set up JVE?
    OR give me your experience on how to do it?
    Thanks!

    >
    I am a new programmer, now I wrote a program on the Eclipse, and now I want to convert to .exe file and make the program can be run on other window office system PC.>If you only code for Windows, why not use dotNet or C# or whatever system MS is pushing at this instant?
    If you wish to code for computers, Java is good, but it needs a JRE.
    The easiest way to get a Java application up and running on a client PC is to launch it via. webstart, and to use deployJava.js to ensure the minimum Java is on the client PC, ready to use webstart.
    Used this way, you link to a web page where the user clicks a link that downloads and installs the application (and adds extras like splash screens, desktop integration, registration of interest in file types, automatic update..).
    As an aside. The best way to ensure answers is to indicate your interest in solutions, by adding a lot of Duke stars to a thread.

  • How can I script out automatic mail profile connection to Exchange 2013

    We use a program called Desktop Authority 9.1 that is a fully featured kixstart based logon user profile customization tool.  It does a full gamout of things like map drives, folder redirection, import registry edits, run silent application installers,
    and of course create the Outlook profile.
    There's no issues with this tool creating an outlook profile internally to mail.domain.com, and even detecting laptops and configuring it for outlook anywhere to webm.domain.com and cached mode.
    Issue I'm having is trying to roll out Exchange 2013.  This tool simply does not seem to create the mail profile.  On a test computer I have the hosts file pointed to the new 2013 server from these names: webm, mail, autodiscover.  At log
    on I simply get an error "The name cannot be resolved.  The name cannot be matched to a name in the address list."  When you click OK you get a little confusing dialog box with the exchange server name: mail  and the mailbox: windows
    user ID.
    So I tried to do this manually in the Mail (32-bit) control panel applet.  It doesnt matter if I put in mail, mail.domain.com, webm, webm.domain.com, email (the netbios name of exchange 2013), etc.. I get the same error.  I went into More settings
    > Connection > connect to microsoft exchange using HTTP and in the proxy settings I have webm.domain.com, connect SSL Only, only connect to proxy servers that have the name: msstd:webm.domain.com, and the rest is checked and NTLM Authentication is checked.
    I simply CANNOT manually create an outlook profile at all.  I can surely delete this one, start outlook, click next through the wizard taking all the default options and get Outlook configured that way (via Autodiscover service), but I need a way to
    do it manually so I can have Desktop Authority do it manually.  Why?  Two major reasons:
    1.  If our end users are greeted with an Outlook startup wizard every time they go to a different computer, and have to click next through it, our help desk is going to be overwhelmed with "what is this outlook startup wizzard?" questions.
    2.  Desktop Authority also attaches additional mailboxes.  We need the outlook profile passed through DA's scripting so different users departmental voice mailboxes are attached in their outlook.  IE) Mailbox VM_FAX_Accounting is attached
    to all of the accounting associates Outlook.

    Ok I found another way to get autodiscover to work..
    In Group Policy go to User Configuration > Administrative Templates > Microsoft Office 2010 (and 2013 in my case) > Miscellaneous > Suppress recommended settings dialog > Change to ENABLED.
    Now go to User Configuration > Administrative Templates > Microsoft Outlook 2010 (and 2013 in my case) > Account Settings > Exchange > Automatically configure profile based on Active Directory Primary SMTP address > Change to ENABLED.
    Now for the shared mailboxes,  I guess when we plan to migrate a department, their shared mailbox MUST be migrated from 2007 to 2013 on the same evening, and then we must go into that shared mailbox and ensure each individual user has "Full access
    permissions" to it.
    Now in Desktop Authority we publish this reg file: 
    Windows Registry Editor Version 5.00
    [HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Outlook\AutoDiscover\RedirectServers]
    "autodiscover-s.outlook.com"=hex(0):
    "autodiscover.outlook.com"=hex(0):
    "autodiscover.domain.com"=""
    [HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\AutoDiscover\RedirectServers]
    "autodiscover-s.outlook.com"=hex(0):
    "autodiscover.outlook.com"=hex(0):
    "autodiscover.domain.com"=""
    [HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\AutoDiscover\RedirectServers]
    "autodiscover-s.outlook.com"=hex(0):
    "autodiscover.outlook.com"=hex(0):
    "autodiscover.domain.com"=""
    Why that?  Well it turns out further testing when I added full permission to a new 2013 test shared mailbox, yet another nag screen was presented in Outlook which states "Allow this website to configure [email protected] server settings?  autodiscover.domain.com/autodiscover/autodiscover.xml
    - Your account was redirected to this website for settings.  You should only allow settings from sources you know and trust.  (Allow) (Cancel).  If end users see this, you can bet our helpdesk calls will be out of control.  We undergo security
    awareness training and they will question ANYTHING resulting in redirect or dialog boxes asking about trust, and really that's a good thing.
    That registry should I think handle Outlook 2007, 2010, 2013, and we will just have to maintain it for future versions.
    We maybe have, I dont know less than 5 Outlook 2007 installs and they are on spare laptops, so If I want to cover it all I just have to download the Office 2007 ADMX templates for Group Policy so I can change those two settings above as well.
    The other way I thought was to use powershell and script something out to pull from Exchange the GUID, append the @domain.com and put that into a variable that our Desktop Authority application can plug in at startup.  But thats a little too much custom
    programming whereas I think using GPO's and documented registry keys may be a better fit.
    I just have to do testing to figure out what's going to happen to the users profile if it already exists on 2007, then its migrated to 2013.  Will it be deleted?  Will they lose all of their signatures?  I know for many on network
    PC's they will be going from direct mapi connection to Cached mode.  Is that a good thing?  I would imagine less load on the server and network once the mail is downloaded.
    We would plan on a slow migration on a departmental basis.  Luckily our departments have their own user OU's so applying this group policy can be done in the same manor.

  • My iPad was stolen how can i find it if it not connect with network?

    help me please

    1. You need Find My iPad
    2. iPad must be on and connected to the internet
    Note: You can't track it if it is off

  • On slide No. 13 of my Keynote presentation, I have varous pictures that go through automatically just as I programmed them, but if I I want to get by clicking to the next slide , it does not let me. How can I program so when I want goes to next slide?

    On slide No. 13 of my Keynote presentation, I have varous pictures that go through automatically just as I programmed them, but if I I want to get by clicking to the next slide , it does not let me. How can I program so when I want goes to next slide?

    Keynote is programmed to execute all of the effects in a build sequence before it will move to the next slide.
    If you want tobe able to move to the next slide at any time in a sequence of builds, you will need to set all of the builds on that slide to:  "on click". You will then need to execute each build by pressing the space bar or click the left mouse button for each object.

  • ITunes updates podcasts each hour but won't refresh. When I sync my iPhone, it gets yesterdays podcasts and I have to manually hit refresh to make it update. How can I make it automatically refresh?

    iTunes updates podcasts each hour but won't refresh. When I sync my iPhone, it gets yesterdays podcasts and I have to manually hit refresh to make it update. How can I make it automatically refresh?

    I think figured out what is going on here... If you have set your Windows OS time manually, Apple iTunes will not honor the time you set in Windows XP...
    In my case, I had not applied the Windows update that changes the Daylight savings rules. No big deal I thought... I can easily correct the time manually. Well... iTunes will not like it if you do that. You have to have your daylight savings rules set correctly on the PC. Microsoft has a free program called TZEdit that will let you adjust the DST boundaries.
    Once I set the rules correctly and then set my time keeping back to "Automatic" it fixed it. Hope this helps...

  • My iphone 5 was stolen today, I had it backed up last week, can I restart this back up on my other i phone which is i phone4? how can I do that as when I plugged my iphone 4 it backed up automatically

    My iphone 5 was stolen today, I had it backed up last week, can I restart this back up on my other i phone which is i phone4? how can I do that because when I plugged my iphone 4 to my laptop it backed up automatically and I can't seem to find the older back up or maybe I don't know where to find it?

    iTunes preferences>Devices>Should see the seperate backups there

  • Hi i got a few free app before and did not download them completely and dont want to do this but they stay in my download list and start automatly when i connect to itunes store and going to crazy me how can i remove them from my account for ever please h

    hi
    i got a few free app before and did not download them completely and dont want to do this
    but they stay in my download list and start automatly when i connect to itunes store and going to crazy me
    how can i remove them from my account for ever
    please help me
    thank you

    Try Here  >  https://discussions.apple.com/thread/4074945?tstart=0

  • TS2776 I can synch items entered into MS calendars to my iPad... this is done automatically when I connect to the USB.  How do I synch items initially entered into my iPad to MS Calendars when the unit is connected to the USB port???

    Cannot tell is the initial question was sent so here goes again.  I can synch items entered into MS Calendars with my iPad... this is done automatically when I connect the iPad to the USB port.  Can I synch items entered into the iPad calendar to the MS Calendar when the iPad is connected to the USB port??? if so how???

    I have found an alternative and much quicker way to transfer photos to my ipad. Having exhausted the Apple route with its connection kit, I stumbled upon a YouTube video showing how you could use an external sd card reader / USB to transfer pictures. I did a quick search on eBay and found a device that would work with the ios7 update. Hey presto it works! (I purchased an sd card and a sd card adapter for my Canon 350d) plus the little sd card reader from eBay ( for quarter of the price ) of Apples connection kit ( which didn't work)
    Come on Apple why can suppliers in the Market place produce accessories that work better than your own kit? You are missing an opportunity and frustrating customers no doubt. Could do better !

  • Java Program executing on foreign PC

    Hello,
    I have the following Question: I have written a Project in Eclipse called my_prog which is containing the default package and 2 other packages (p_client, p_server)
    The "Runner-Class" with the main method is in the default package
    I can execute it in Eclipse or by "java Runner"
    That is not very professional in my mind... If I want to give the Program to a client, he won't start Eclipse to execute the Program.
    I think I need the Java VM on a foreign PC (is it the Rontime Environment which I can download???)
    How can I make executable JAR-Files??? Who executes the JAR-File and how can I set that it is the Runner.java which contains the main Method?
    Which posibilities do I have to make my Program run on a foreign PC?????
    Thanks
    Vince

    You can use javaw in a batch file.
    This thread explains how to use it.
    http://forum.java.sun.com/thread.jsp?forum=54&thread=240271

  • How can i handle with event, when i close a file (notped or word,excel..)??

    How can i handle with event, when i close a file (notped or excel...). i want do something..
    Edited by: Legy on Apr 21, 2008 11:45 PM

    of course notepad.exe is closed again as soon as the operating system has completed the process of loading its content into memory...
    And no "event" is fired when that happens, except maybe internal to the process that loaded the application to indicate that it's been loaded successfully and can now be executed.
    But there's no way your Java process is ever going to receive that notification.

  • HOW CAN I START DOWNLOADS AUTOMATICALLY? I DON'T NEED TOO SEE THE SAVE OR DISCARD BOX. THIS BUGS THE CRAP OUT OF ME. CAN I CHANGE THIS, OR ARE WE FORCED TO DO WHAT YOU THINK IS BEST? THANKS, KEITH D.

    HOW CAN I START DOWNLOADS AUTOMATICALLY? I DON'T NEED TOO SEE THE SAVE OR DISCARD BOX. THIS BUGS THE CRAP OUT OF ME. CAN I CHANGE THIS, OR ARE WE FORCED TO DO WHAT YOU THINK IS BEST? THANKS, KEITH D.

    Hey, Jeff...
    I don't know how I could have made my question any more clear -- so let me try approaching it the other way around, and refer back to your answer(s).
    You've been responding by saying that it's okay for me to remove the Creative Cloud versions of my software, but I don't have any Creative Cloud versions installed! I'm not talking about that at all, I'm talking about the software for Creative Cloud itself -- I don't use it, I don't need it, I don't want it, and all it does is nag me, telling me that there's updates for it (Creative Cloud). I have the full Adobe Creative Suite 6 Design Standard bought and paid for, I have no reason nor need to "rent" any later versions, I'm just talking about the Creative Cloud software itself that got installed on my system when I installed that suite of programs.
    Like I said, I don't use Creative Cloud at all -- all it does is "nag" me, and eat up space on my hard drive. When I go in my Windows Control Panel and look at my list of installed programs, there it is -- "Adobe Creative Suite" -- and it's listed separately from "Adobe Creative Suite 6 Design Standard" (of which I've only installed Photoshop, Acrobat and InDesign, basically, as those are the only programs I use at all at the moment). Can I just uninstall "Adobe Creative Suite" without it affecting "Adobe Creative Suite 6 Design Standard", i.e. my Photoshop, etc. will still work just fine, and I can still get updates and stuff? And by "updates" I don't mean get later versions of Photoshop, etc., I just mean any possible updates to the software that I do already have (that comes with Adobe Creative Suite 6 Design Standard).
    I hope that makes my question a little more clear?

  • How can I disable iPhoto automatic launch?

    Hi,
    I do not use iPhoto to import my digital images. How can I disable the automatic launch when I plug my camera or card reader?
    Thanks!

    Hi Paul,
    To do this just open Image Capture, open its preferences and then under the general tab you can select the option of "When a camera is connected, open:"
    Just select no application and that should do it.
    Sam

Maybe you are looking for