Is it possible to use WMI in Java

hi,
Is it possible to use WMI in java.We can use C# code to fetch Windows information using WMI,but is it possible to do the same in Java?

One easy solution is to generate a vbscript, launch it and capture the output.
Example at [http://www.rgagnon.com/javadetails/java-0580.html]
ok, it's ugly but unless you want to go with JNI then it's worth a look.
Bye.
RG.

Similar Messages

  • Is it possible to use php in java

    Is it possible to use php in java.java in php is possible but is vice versa possible?
    iwapsms

    http://zez.org/article/articleview/26/

  • Is it possible to use Microsoft's Java Packages in Forte4Java/JBuilder?

    Dear all,
    I am wondering whether it is possible to use those java packages installed by MS Visual J++ in Sun's Forte4Java or Borland's JBuilder? I found one of the java packages of Microsoft -- com.ms.com.* quite useful for calling ActiveX Components in java code and I have succeeded in calling my DLL COM under Visual J++ with the help of com.ms.com.Dispatch. But I have to use Forte4Java to write my Java program, therefore, it will be great if I can still use com.ms.com.* under Forte4Java. Is it possible? If so, how to do it? Please advise and thanks in advance...
    Tracy

    You can use any java package if you just add it to the classpath. In Forte this means adding it to the explorer pane, I am not sure about Builder.
    The problem will be when you try to run it. Any Microsoft class which uses some part of their runtime will require the Microsoft VM. If you have that, and are willing to be permenantly tied to it, then you will be in business.

  • Is it possible to use  closures in java 1.6

    I wan to to use closures they reduce lot of time .I know I can write closures in other languages like groovy , scala etc.But I have troubles using these langauges , I am wondering if I can use closures inside my java files , is this possible?

    Not in 1.6.0 but you will be able to in 1.7.
    You can get a very similar effect using inner classes which have been available since 1.1.x

  • How to use the Public Java API

    Is it possible to use the Public Java API to write a custom transformation in Java and use this in OWB. i.e. Say I have a Dateofbirth field in my source database and an Agegroup field in the target database, and I write a transformation in Java to take the Dateofbirth as an input parameter to the method and calculate the Agegroup e.g. 25-30, and return it from this method which then populates the Agegroup field in the target database. If so, how do I go about this?

    Martin,
    In general, yes you could... but you do not need to. You could use the UI to implement this requirement. The public Java API is there for you to manipulate metadata. How you implement your system, is independent of that.
    The way you would go about the case you just mentioned... you would write the Java code, deploy it into the database, wrap it in a PL/SQL procedure or function, and call it from OWB.
    Would this be a good idea...? I think no. Unless you have very complicated calculations that can only be performed in Java, I strongly encourage you use the PL/SQL language. Reason being: transformation will be much faster, because there is no need to translate PL/SQL into Java and back again.
    Hope this helps,
    Mark.

  • Is it possible to login into the Java instance without password's input, using only my Windows workstation authorization?

    Dear Sirs,
    I try to do an authorization to my NW 7.3 Java instance through my Windows domain authorization.
    I done:
    1) Create connection to LDAP-server and tested it.
    2) Add windows domain certificate to TrustedCAs
    3) Configure SPnego
    Now, I can to login in my NW7.3 Java instance with my windows password, but however I must to input password when I open NW7.3 Java homepage.
    Is it possible to login into the Java instance without password's input, using my windows workstation login/password?
    What I have to do for that?
    I use Windows XP on my workstation and IE 8.0.6 & Chrome 38.0.2125.
    Best regards,
    Alexey Lugovskoy

    Please check
    Using Kerberos Authentication on SAP NetWeaver AS Java - User Authentication and Single Sign-On - SAP Library (NW7.3)
    Using Kerberos Authentication for Single Sign-On - User Authentication and Single Sign-On - SAP Library (NW7.0)

  • Is it possible to use the JS coding in webdynpro java application!!!

    Hi Experts,
    Is it possible to use the JS coding in webdynpro java application by any means?
    If yes, kindly suggest the procedure or any pointers for the same.
    Thanks in advance.
    Regards,
    Anurag

    Hi,
    I'm not an expert in this matter, but I will post here what I know:
    In NW7 releases (at least 7.01.05) it is possible to run JS, also to capture any WD Event and run your own JS code after that, using IFRAME. I have jQuery running here, it would take some time till you create a "framework" to enable some easy usage. I just want to highlight that is possible, thou I think it's a lot of effort.
    Not sure about CE7.1 it seems iFrame is deprecated. Still, being deprecated should not "block" the usage, thou it's not recommended since this functionality can be removed in next releases.
    I've read that CE7.2 has JS support, and I think you should try having a word with Armin maybe..
    Hope it helps,
    Daniel

  • Is it possible to use portal service written in Java?

    Hello,
    I've written a certain portal service in Java and deployed it to the portal and it is working OK.
    My question is if it is possible for .NET developers to use it and it's method in their projects as I am using in my Java and DynPro projects.
    Roy

    Hi Roy,
    What you asked requires interoperability between two very different technology stacks - Java and .NET (which is basically what the .NET PDK does for you).
    What you need for this is a mechanism to "translate" between these two stacks. This can be done with various 3rd party tools (that you can buy from companies who specialize in this kind of tools).
    BUT
    The quick, easy and cheap way is to use the industry-standard of interoperability, which is, as Tsachi told you - Web-Services.
    Regards,
    Ofer

  • Is it possible to use "c/c++" developed library in java?

    hello all
    i have a convertor. which convert wav to mp3 and it is developed using "c". now i want to use that in java. is it possible? if possible then how?
    i am working in a project where the project (convertor) will be in server and client will access that from the client pc within a network. now i want to use that convertor which is developed using "c".
    anyone can tell me how can i do that??
    thanks
    bashar

    The previous answers are correct - you can do what you need by using JNI.
    However, there are serveral products, so-called "JNI wrappers" that allow you to call any C function from Java without learning JNI.
    Here is link to one of such products, and you can find others in google as well.
    http://www.excelsior-usa.com/xfunction.html
    Library for painless JNI programming

  • Is it possible to use Magnetic Strip Card in Java Card

    Can Any body knows that is it possible to use magnetic strip card instead of IC MicroProssesor card in Java Card technology ?
    is it possible to write java card applet on magnetic strip card ?
    Please Help me in this topic
    Thanx in advance

    If you mean having a combo of mag stripe and cpu/memory on a card, which support javacard tech, then yes.
    If you mean having a mag stripe only card which supports javacard, then no, it does not support javacard technology. Correct me if I am wrong but a mag stripe only holds a couple of bytes of datd doesn't it? Regardless no way enough for jcre, applets etc.
    Apu

  • Is it possible to cal web dynpro java application using portal application?

    Hi,
    is it possible to cal web dynpro java application using j2ee portal application?
    If possible, how can it be done the parameter mapping over context area?
    Regards.

    you can just append parameter to the url as usual.
    you will write some code in the controller to get the parameters and set them to the context.

  • Is it possible to use 32-bit firefox with 64-bit java plugin?

    Is it possible to use 32-bit firefox with 64-bit java plugin?
    I'd like to use 32-bit firefox and I already install 64-bit java plugin.
    Is that a right choice not to install 32-bit java plugin?
    Will these cause problem?
    Thanks in advance.
    Regards,
    Sean

    Nope - you need the 32bit Java to go with the 32bit Firefox if you want Java to run

  • HT5648 Is it possible to use Java 1.6.0_39 on OS X 10.8.2

    Is it possible to use Java 1.6.0_39 on OS X 10.8.2

    Apple has posted (10/22/12) the approved solution for restoring the Java 6 plug-in:
    Java for OS X 2012-006: How to re-enable the Apple-provided Java SE 6 applet plug-in and Web Start functionality.

  • Possible to use BlazeDS with GAE Java?

    Is it possible to use BlazeDS with the new GAE Java update? It's working on the local development server, but not on the online one. Apparently, BlazeDS uses some Java classes not in GAE's whitelist yet. Any workarounds? PyAMF on GAE works fine for Python, but I'd like to use BlazeDS and Java. Thanks!

    Yes, it is very much possible. I have done the integration, please check the steps in my post.
    http://sixtyfourarts.blogspot.com/2009/05/gae-integration-with-blazeds-in-eclipse.html

  • Is it possible to use iFS API within java stored procedure?

    question:
    is it possible to use the iFS API for file handling
    within a java stored procedure (which is invoced by a trigger)?
    is there an "elegant" workaround if it is not possible?
    problem:
    my java code using the iFS API works fine outside
    the java stored procedure
    but invoked via trigger as java stored procedure
    it throws following exception:
    IFS-20102: Unable to start service (IfsDefault)
    i am using:
    oracle 9.0.1
    oracle internet file system 9.0.1.1.0
    windows 2000
    thanks

    thanks for your help
    i looked through the applications developers guide
    the basics behind advanced queueing (as far as i understand) is:
    program A inserts a message into the queue - and program B gets message from the queue and processes it
    question 1:
    but what is the difference between advanced queuing and a queue i create by myself
    (simply with a database table) and let application B (which runs in a loop)
    check if the queue is filled
    or am i missing something important which makes advanced queuing more practicable for my problem?
    question 2:
    you wrote about advanced queuing support in iFS 9.0.3, but the newest version i found was iFS 9.0.2
    did you reffer to the advanced queuing mechanism in general or to a spezial queuing feature in iFS 9.0.3?
    thanks

Maybe you are looking for