Handling windows components , services in java !!

how can i handle windows components and services in java ??
for e.g Task Manager .
any body who has an idea how to do that ?
is there any api available for handling windows components ?
any kind of help will be appreciated !!

COM bridge?

Similar Messages

  • Creating Windows Based Service in Java

    Hey is there any way I can create windows based service in Java. My need is that no one has to log on to the machine to start a java application.
    Thanks in advance

    This can be done, although its been so long I forget the exact details. There are some utilities out there that will let you run any program as a service. I remember I created a batch file to run my java program in and then set the batch file up as a service.
    Hope that helps,
    Peter

  • AS java Components/Services in CE 7.2

    Dear All
    I have CE 7.2 quality on windows up and running fine.what my concern is when I see in SAP MMC ->AS Java Components ,600+ components/services are stopped,I can start them manually but they are not coming up automatically when I reboot the server.
    To name a few :::
    sap.com/VisualComposerRuntimeServiceEar
    sap.com/bi~bikit
    sap.com/bialvtestapps
    Whereas on CE 7.2 Develpment server I see 100+ services stopped,Why there's difference between CE dev and CE QA..We are going to implement SOA so i assume services not starting auto could create a problem in the future.
    Please let me know if anybody has any idea on this.
    Thanks

    I think it is normal, some service is started on demand.

  • Windows Components/remote desktop services/remote desktop session host/profile doesn't appear to be working on 2008R2 boxes

    I have two domains.   One is an account domain with a one way trust with the resource domain.   Resource domain trusts the account domain and has a number of 2008R2 servers running within.  I am experiencing severe logon delays
    due to these servers being unable to access the server that hosts the user home folder specified directly on the user account profile tab from the account domain.   When using my workstation in the actual account domain (corporate) I have no
    problems.
    Because of these network restrictions,  I need to override the 2008R2's desire to access that user home folder location in the account domain.
    So far the best thing I have found to try is Windows Components/remote desktop services/remote desktop session host/profile/Set Remote Desktop User Home Directory
    The problem is that so far I have tried to configure this to point to both a local folder as well as a network path and it doesn't appear to be doing anything.   Not seeing any errors in the app or system log either.
    It is still trying to map the path in the account domain.
    Any ideas?
    Is there a better way to accomplish my goal?   The servers in the resource domain will be Citrix servers and there will be a lot of users connecting from the account domain.
    I tried this setting too,  but it only seems to work on the 2012 machines in my Resource domain.
    With the introduction of Windows 8 and Windows Server 2012 there is now a new group policy setting called “Set user home folder” and is found under Computer Configuration > Policies > Administrative Templates > System > User Profiles
    Help!

    Hi,
    This might be due to permission problems. Please check whether the user accounts for whose home folder to be redirected have permissions in the shared folder specified in the server. 
    Checkout the below link on Best Practice for creating Roaming Profile and Folder Redirection
    http://www.grouppolicy.biz/2010/08/best-practice-roaming-profiles-and-folder-redirection-a-k-a-user-virtualization/
    Regards,
    Gopi
    JiJi
    Technologies

  • Monitoring windows services from JavaI Know how to

    I know how to start and stop services in java, but how can I see if a process is already stared or is starting?
    Thx

    You'll need to make a call to a suitable Windows program using Runtime or ProcessBuilder methods, or use JNI (Java Native Interface.) From Wikipedia:
    (JNI) is a programming framework that allows Java code running in the Java virtual machine (JVM)
    to call and be called[1] by native applications (programs specific to a hardware and operating system
    platform) and libraries written in other languages, such as C, C++ and assembly.

  • Start and Stop a Windows Service From Java

    Is there any way to start and stop a Windows service from Java? The only post I found on it (http://forum.java.sun.com/thread.jspa?threadID=647509) had a link to one of the many aps that allow Java programs to be services, which is not what I am interested in doing.
    I am attempting to get data from performance counters from the Windows Performance Monitor into a Java ap without using JNI. I can get the data from C++ or a .net language pretty easily and was going to create a service that would listen for socket requests and feed back the data. However, I'd like to start and stop that service when my java code starts and stops. Is this possible? Would it make more sense to just use a .exe and Runtime.exec()?

    If it's only to start or stop a service then you could use the net command without any need for JNI.import java.io.*;
    public class MsWinSvc {
        static final String CMD_START = "cmd /c net start \"";
        static final String CMD_STOP = "cmd /c net stop \"";
        public static int startService(String serviceName) throws Exception {
            return execCmd(CMD_START + serviceName + "\"");
        public static int stopService(String serviceName) throws Exception {
            return execCmd(CMD_STOP + serviceName + "\"");
        static int execCmd(String cmdLine) throws Exception {
            Process process = Runtime.getRuntime().exec(cmdLine);
            StreamPumper outPumper = new StreamPumper(process.getInputStream(), System.out);
            StreamPumper errPumper = new StreamPumper(process.getErrorStream(), System.err);
            outPumper.start();
            errPumper.start();
            process.waitFor();
            outPumper.join();
            errPumper.join();
            return process.exitValue();
        static class StreamPumper extends Thread {       
            private InputStream is;
            private PrintStream os;
            public StreamPumper(InputStream is, PrintStream os) {
                this.is = is;
                this.os = os;
            public void run() {
                try {
                    BufferedReader br = new BufferedReader(new InputStreamReader(is));
                    String line;
                    while ((line = br.readLine()) != null)
                        os.println(line);
                catch (Exception e) {
                    e.printStackTrace();
    }Regards

  • Getting windows services through java

    Hi,
    I just want to get the status of windows services( SERVICE_NAME: DWMRCS)
    and also i have to stop and start the services through java code is there any help?
    thanks

    Use "sc" util with Runtime.exec().

  • How to start a java application as windows 2000 service?

    Hi all,
    I'm trying to start / stop a java application as a windows 2000 service. But nothing appens (I can see the screen that rapidly display the java help prompt and then disappear)
    I've a working directory i.e C:\MyDir and it contains instsrv.exe, srvany.exe and my application jar MyApp.jar
    I'm using instsrv.exe to register a java application as a service ( C:\MyDir\instsrv MyApp C:\MyDir\srvany.exe )
    I've added a key in registry by running regedit
    The key is under the tree HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MyApp
    the key value is Parameters
    in the key I've added a string value "Application" with the value "C:\j2sdk1.4.2_01\bin\java.exe"
    and a string value "AppParameters" with the value "-classpath C:\MyDir\MyApp.jar main" where main is the name of the main class application.
    This seems to run correctly with Windows NT 4.0
    But doesn't work with Windows 2000.
    Can anyone help me?? pls.
    Thanks.
    Max

    I'm replying to myself .... ;-) ahah
    All we need for this purpose is JavaService, at link
    http://www.alexandriasc.com/software/JavaService/index.html

  • Windows services vs java

    Hi,
    I just want to get the status of windows services( SERVICE_NAME: DWMRCS)
    and also i have to stop and start the services through java code is there any help?
    thanks

    There are frameworks that make this relatively easy (google "Java Service" and you'll find them). Alternatively, you can write the service DLL yourself and instantiate your Java objects using JNI.
    If you are already familar with creating NT services, then JNI would be the way to go.
    Given the requirements of your project, it sounds like you will have to go the JNI route - and learn quite a bit about how to hook into the Windows login dialogs...
    - K

  • Java 7 compatibility with Windows XP Service Pack 3

    Hello,
    I am just looking for a bit of clarity. It is not quite clear from the hits on Oracle Support, some say yes and others say no.
    Is Java 7 compatible with the following browsers Internet Explorer 7, 8 9 and 10 for Windows XP Service Pack 3?
    The Client is currently using JRE6 which I knows fine with IE 6, 7, 8 for the current PC build
    Thanks
    Matt

    Matt,
    I am just looking for a bit of clarity. It is not quite clear from the hits on Oracle Support, some say yes and others say no.
    Is Java 7 compatible with the following browsers Internet Explorer 7, 8 9 and 10 for Windows XP Service Pack 3?
    The Client is currently using JRE6 which I knows fine with IE 6, 7, 8 for the current PC buildJRE 7 is not certified yet with 11i or R12.
    Deploying Sun JRE (Native Plug-in) for Windows Clients in Oracle E-Business Suite 11i [ID 290807.1]
    Deploying Sun JRE (Native Plug-in) for Windows Clients in Oracle E-Business Suite Release 12 [ID 393931.1]
    Implications of Java 6 End of Public Updates for EBS Users
    https://blogs.oracle.com/stevenChan/entry/what_does_the_java_6
    Planning Bulletin for JRE 7: What EBS Customers Can Do Today
    https://blogs.oracle.com/stevenChan/entry/planning_for_jre_7
    Thanks,
    Hussein

  • How to Start Java RMI Server Application as Windows NT Service

    Hi!!,
    I have problem regarding the Installation of Java Application as NT Service this Java app in turn will start RMI Registry using LocateRegistry.createRegistry() at some specific port number. The Service is created successfully but i have problem regarding the Accessing of this Remote Object using Lookup() .(ie) I am able to get the RMI Registry Obj Refererce of the Java Rmi Application but couldn't able to Lookup for the Object registered to this Rmi Registry.I am not able to proceed after getting the Rmi Registry reference.
    So any help Regarding this is appreciated.
    Thanks in Advance.
    with regards,
    Ramakrishna M
    Mail: [email protected]

    Hello,
    I have started a Java RMI Server Application as NT Service using JNT (download it from www.eworksmart.com/JNT/ ).
    It is working fine.
    S. Navaneethakrishnan
    [email protected]

  • How to talk to a  Windows Service using java

    Hi,
    I've a ATL COM Service running on a specified port.
    At least I should be able to talk to an ordinary service
    Now I need to talk to the service through java.
    I need to call some functions in the service.
    Can somebody please help me....plzz
    If possible send me urls
    Thanks in advance

    Hi,
    How about something like this:
    $started = $false
    Do {
    $status = Get-Service alg
    If ($status.Status -eq 'Running') { $started = $true }
    Until ( $started )
    Don't retire TechNet! -
    (Don't give up yet - 12,575+ strong and growing)

  • Add keys to the Windows registry database regarding Java Script/JRE

    Hi everyone,
    In another thread in this forum, I have writen about how I completely could remove JRE from my system.
    In the thread I told that I have found the following registry keys on my Windows 7 64-bit operating system:
    1. HKEY_CLASSES_ROOT\JavaScript
    2. HKEY_CLASSES_ROOT\JavaScript Author
    3. HKEY_CLASSES_ROOT\JavaScript1.2 Author
    4. HKEY_CLASSES_ROOT\JavaScript1.3
    5. HKEY_CLASSES_ROOT\JavaScript1.3 Author
    6. HKEY_CLASSES_ROOT\Wow6432Node\PROTOCOLS\Handler\javascript
    7. HKEY_CLASSES_ROOT\PROTOCOLS\Handler\javascript
    8. HKEY_LOCAL_MACHINE\SOFTWARE\Classes\JavaPlugin.1010
    9. HKEY_LOCAL_MACHINE\SOFTWARE\Classes\JavaScript
    10. HKEY_LOCAL_MACHINE\SOFTWARE\Classes\JavaScript Author
    11. HKEY_LOCAL_MACHINE\SOFTWARE\Classes\JavaScript1.2 Author
    12. HKEY_LOCAL_MACHINE\SOFTWARE\Classes\JavaScript1.3
    13. HKEY_LOCAL_MACHINE\SOFTWARE\Classes\JavaScript1.3 Author.
    When I take a look on my Windows XP Service Pack 3 operating system, I can not find the same keys in the Windows registry database, and I therefore will ask about the following questions:
    1. It is correct that the keys above only is on Windows 7 64-bit's registry?
    If the keys also should be on Windows XP Service Pack 3, how can I install the keys again?
    I have tried to reinstall Internet Explorer 8, but the keys not came back again.
    2. After I have reinstalled Internet Explorer 8 I can find a option called "Use JRE 1.6.0_12 for <applet> (requires restart)" if I go to Internet options>advanced. I have not installed a JRE on my Windows XP, since I will make a installation of the latest JRE from scratch.
    2. It is posible to remove the option above (e.g. via the Windows Registry editor), so the latest JRE can add the option again to Internet Explorer 8?
    Very thanks for the answers, and happy new year.
    Regards,
    Anders

    Javascript has nothing to do with the Java and the JRE and though I can't be certain I doubt very much if those registry entries have anything to do with the JRE.

  • Error handle request; Root exception is: java.lang.NoSuchMethodError

    Hello Guys,
    I am running EBS 11i, rdbms 10g on OEL4. After applying a bunch of patches to resolve some IE issues I ran into an error:
    "FRM-41072: Cannot create group ACTION_REC_GROUP" when trying to cancel a PO.
    An SR directed me to apply patch 8286920 which indeed fixed the FRM-41072 error. After this patch "Logon to Oracle Applications Manager" is not possible as the page gives me :
    Error handle request; Root exception is: java.lang.NoSuchMethodError: oracle.apps.fnd.security.AolSecurity.userPwdHash(Ljava/lang/String;)Ljava/lang/String;
    MOS thinks that patch 8286920 didn't break OAM but I don't think so since this is only happening on my DEV and TEST systems on which I have applied the patch. PROD, wihtout the patch, is accessible through OAM just as usual?
    Any thouths?
    Thank you
    Mathias

    Did you apply all patches mentioned in the following docs?
    FRM-41072 - Unable to Cancel Purchase Order or Purchase Order Line or Release [ID 947402.1]
    Change Tax Code in the Purchase Order Gets Error - Could not reserve record (2 tries) Keep trying [ID 956047.1]
    Autocreate Process Does Not Default Purchase Order Form As The Active Window After PO Is Created - Does Not Come To The Front [ID 1055623.1]
    Did you bounce all the services and see if you ca reproduce the issue?
    What about clearing the server cache files? -- How To Clear Caches (Apache/iAS, Cabo, Modplsql, Browser, Jinitiator, Java, Portal, WebADI) for E-Business Suite? [ID 742107.1]
    Can you find any errors in the database/apache log files? Any invalid objects?
    If you have verified all the above please update the SR with the error you have after applying that patch.
    Thanks,
    Hussein

  • Getting 415 Unsupported Media Type error when calling a windows web service

    I have a BPEL process that invokes a windows web service. This process is working currently on the production system. When trying to run the process in a new test clustered environment, I'm getting the error below (bolded).
    We're using 10.1.3.3 Oracle Application Server and BPEL. Please advise on what config files might need to be tweaked to fix this.
    InvokeWindowsLoggingWebService(faulted)
    [2010/04/16 17:26:35] Faulted while invoking operation "WriteLog" on provider "WindowsLoggingWebService". less
    -<messages>
    -<input>
    -<InvokeWindowsLoggingWebService_InputVariable>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="parameters">
    -<WriteLog xmlns="http://tempuri.org/">
    <FileAbsolutePath>
    R:\CV & RM\upload_from_test.log
    </FileAbsolutePath>
    <Content>
    ||*************************************************************************************|Append to log file 2010-04-16T16:57:08-04:00|*************************************************************************************||START DATE: 2010-04-16T16:57:08-04:00|END DATE: 2010-04-16T17:25:58-04:00|COUNT: 106|TRANSFER OF FILES TO TAS SUCCESSFUL
    </Content>
    <NewLineDelimiter>
    |
    </NewLineDelimiter>
    </WriteLog>
    </part>
    </InvokeWindowsLoggingWebService_InputVariable>
    </input>
    -<fault>
    -<remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
    -<part name="summary">
    <summary>
    exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 415 Unsupported Media Type
    </summary>
    </part>
    </remoteFault>
    </fault>
    </messages>
    [2010/04/16 17:26:35] "{http://schemas.oracle.com/bpel/extension}remoteFault" has been thrown. less
    -<remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
    -<part name="summary">
    <summary>
    exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 415 Unsupported Media Type
    </summary>
    </part>
    </remoteFault>

    I generated a proxy service in jdev and used the same parms as was done on OAS...
    <WriteLog xmlns="http://tempuri.org/">
    <FileAbsolutePath>
    R:\CV & RM\upload_from_test.log
    </FileAbsolutePath>
    <Content>
    ||*************************************************************************************|Append to log file 2010-04-16T16:57:08-04:00|*************************************************************************************||START DATE: 2010-04-16T16:57:08-04:00|END DATE: 2010-04-16T17:25:58-04:00|COUNT: 106|TRANSFER OF FILES TO TAS SUCCESSFUL
    </Content>
    <NewLineDelimiter>
    |
    </NewLineDelimiter>
    </WriteLog>
    and was able to call the service fine and it returned successful. Just seems to be an issue on the server when I execute it from there.

Maybe you are looking for