System information through java

To find the following info. What and all required, and how to implement in java..please give idea..or some tool or open source
1) Physical memory(installed)
2) CPU Speed(current)
3) Available disk space(primary partition)
4) Operation system, version and service pack
thank in advance..

System.getProperty("os.name"); and so on. Read the documentation of package java.lang.System

Similar Messages

  • Getting  the current operating system information through java

    hi ,
    How can i get the information about the current operating system on which i am working through the java application.

    System.getProperties() and look through the results. All kinds of interesting stuff in there.

  • How to change system time through java program

    Hi
    I want to know, how to change system time through java program.
    give me a idia with example.
    Thanks

    There isn't any core Java API for this. Use JNI or call an external process with Runtime.exec().
    ~

  • Reset System Date Through Java

    How to change system date through java. I need some help for developing some software in java.

    as in there is a command :-
    #include <iostream.h>
    #include <dos.h>
    int main(void)
    { struct date reset;
    setdate(&reset);
    return 0;
    how can i convert it into java language and reset System date of windows, help me.

  • System Information In Java

    Hello,
    Can We Get System Information Like Motherboard,CPU,RAM,HardDisk etc.... IN JAVA???
    Thank-You

    On windows you can run a VB script which obtains this information.
    On UNIX you can read files in the /proc and run df to get the disk sizes.
    It is fairly rare that you need to obtain this information and if you do there are plenty of free and commercial products which do this already, so there is little point writing your own.

  • Accessing CPU clocks or system timers through java

    Hello ,
    We want to get access to system CPU clock which should run even when the system is shutdown. Additionally first time it should be set by a java program and it should run for some specific days amount of time . It should remain unaffected if the external user changes the system time displayed. Can it be possible through any means in java ???

    Hi
    we are designing an application which should run only for 15 consecutive days,we dont want the user to hack it by any means by changing the system time,so we want to have access to the system time which works with the help of battery backup or some other means by which we can detect whether the user has altered the system time.

  • System calls through Java stored Proc

    Hi,
    Aim: Execute host command from pl/sql thru java stored proc.
    1. Created a java class to take system command that could be executed.
    2. It runs fine when the class file is executed.
    3. when the java file is loaded to database to access it as java stored proc, for any valid and invalid system commands it is giving out 'PL/SQL successfully completed.
    Results were not seen.
    4. Java source file.
    import java.io.*;
    import java.lang.*;
    public class Util extends Object
    public static int RunThis(String[] args) {
    Runtime rt = Runtime.getRuntime();
    int rc = -1;
    String s = null;
    try
    Process p = rt.exec(args);
    BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()));
    BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getErrorStream()));
    // read the output from the command
    System.out.println("Here is the standard output of the command:\n");
    while ((s = stdInput.readLine()) != null) {
    System.out.println(s);
    // read any errors from the attempted command
    System.out.println("Here is the standard error of the command (if any):\n");
    while ((s = stdError.readLine()) != null) {
    System.out.println(s);
    System.exit(0);
    catch (Exception e){
    e.printStackTrace();
    rc = -1;
    finally {
    return rc;
    public static void main(String[] args){
    Util.RunThis(args);
    public static String exec(String args){
              Util.RunThis(args);
              return "Srini it is successful";
    5. When ran from host prompt (unix),
    executed successfully,
    $ /opt/java1.3.1/bin/java Util /usr/bin/ls -l
    Here is the standard output of the command:
    total 30862
    -rwxrwxrwx 1 xyz develope 1348218 Jan 2 17:47 02Jan03-2.zip
    -rw-r----- 1 xyz develope 21864 Jul 9 2002 109-60_2_modified7.sql
    -rw-r----- 1 xyz develope 44934 Jul 9 2002 109-60_2_modified8.sql
    Here is the standard error of the command (if any):
    xyz@xxxxx:abcd:/home/xyz
    $
    6. loadjava,
    $ loadjava -user username/password Util.java
    7. Create proc,
    SQL> create procedure echo_input(s1 varchar2) as language java name 'Util.main(java.lang.String[])';
    2 /
    Procedure created.
    8. Execute proc.
    SQL> exec echo_input('/usr/bin/ls -l');
    PL/SQL procedure successfully completed.
    SQL> exec echo_input('/home/o_report/reports/rcli_ASCT &');
    PL/SQL procedure successfully completed.
    SQL> set serverout on
    SQL> exec echo_input('/home/o_report/reports/rcli_ASCT');
    PL/SQL procedure successfully completed.
    SQL> exec echo_input('ddsafafasf');
    PL/SQL procedure successfully completed.
    TIA,
    Srini.

    Hi Srini,
    This is just a suggestion, but try entering the following commands (in your SQL*Plus session) before executing your stored procedure:
    set serveroutput on size 1000000
    exec dbms_java.set_output(1000000)Hope this helps.
    Good Luck,
    Avi.

  • How to access system registry through java program

    Friends
    I have to access System registry of Windows 2000 by Java program. I don't know how to access the registry by using java code. Please help me. Else
    I want to create a setup file for my application. before setup my application i have to check whether the system has JVM or not. If its not then i have to install JVM first and then my application. so i need to access system registry. please give me a solution for this.
    Thanks in advance
    Ramesh

    I don't know how to access the registry
    by using java code. You can't, without using a native interface (JNI type) library.
    This is one, there are others, do a Google search:
    http://www.bayequities.com/tech/Products/jreg_key.shtml

  • Issuing Solaris system calls through Java

    How can I issue a system call to Solaris using Java? (i.e. Start a script, open a file, and similar)

    Hi Srini,
    This is just a suggestion, but try entering the following commands (in your SQL*Plus session) before executing your stored procedure:
    set serveroutput on size 1000000
    exec dbms_java.set_output(1000000)Hope this helps.
    Good Luck,
    Avi.

  • How to get Remote System informations using java

    Hi
    Any one know how to get remote machine information, processor speed , mainmemory size, etc using java .
    Thanks in adv.......

    Hi
    Any one know how to get remote machine information,
    processor speed , mainmemory size, etc using java .
    Thanks in adv.......That's impossible.
    Kaj

  • Is there  any way to get a big system icon through  java?

    the getSystemIcon() method returns a little icon, perfect for a JTree implementing a file tree. I'd like to be able to get the big version of it.
    how to do?

    I think they mean javax.swing.filechooser.FileSystemView getSystemIcon but I don't believe anything more is possible built in to the API then that.

  • Program to Set System Time in Java

    Is there any way to set the system time through Java. If there is can you help me some information.
    Regards,
    Shivakumar Thota

    Hey Hey,
    You could run Runtime.exec() to execute a command such as VBScipt to do it.
    Other than that you may have to take a look at Java Native Interface(JNI) that will basically take control of doing anything you need.
    Also, You may want to post this in "New To Java" or some other forum other than Java Web Start. You'll get more people to help ya.
    Hope this helped,
    --Ryan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Getting system information

    is it possible to get system information using java. i want to get current user name, computer name and the domain name to which user is currently logged on (domain in NT/2000 systems). if it is possible, then how . i've tried it by using the class SystemInformation in Microsoft Visual J++ but is gives error that private class member can't be accessed. can any 1 help me out

    import java.util.*;
    public class SystemProperties{
         Properties properties_properties1;
         String string_name;
         String string_value;
         public SystemProperties(){
         public void get(){
              this.properties_properties1=System.getProperties();
              this.properties_properties1.list(System.out);          
         public static void main(String[] args){
              SystemProperties obj = new SystemProperties();
              obj.get();
    Use above code to list the system properties.
    Manu

  • Get system information

    im fairly new at using java so my question is...
    how can i get the system information using java?
    the system information i want to get are the following:
    number of processors
    processor speed
    memory
    hard disk space
    i would want to be able to get those in any system.
    Thanks for your help.

    Language again, Like I care.
    How did I break the rules. Quote:
    Is there complete
    document of all classes and methods in java in a book
    format not electronic?Posting a question like that in an unrelated thread that isn't even yours is annoying.

  • Error while trying to access system information for AS Java

    Hi,
    I´m not sure if this is the correct forum so if I'm wrong please let me know to move it to the correct one.
    We are facing an extrange behavior when trying to access System Information in an AS Java, every time we try to access the link the following error shows up:
    Error - ID018236: Cannot instantiate bean. java.lang.ClassNotFoundException: com.sap.engine.monitor.infoapp.SystemInfo
    the complete error shows:
    Found in negative cache -
    Loader Info -
    ClassLoader name: sap.com/tc~monitoring~systeminfo Parent loader name: References: common:service:http;service:servlet_jsp service:ejb common:service:iiop;service:naming;service:p4;service:ts service:jmsconnector library:jsse library:servlet common:library:IAIKSecurity;library:activation;library:mail;library:tcsecssl library:ejb20 library:j2eeca library:jms library:opensql common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore interface:resourcecontext_api interface:webservices interface:cross interface:ejbserialization library:tcjmx library:sapxmltoolkit library:tcSLUTIL Resources: /usr/sap/QBW/DVEBMGS03/j2ee/cluster/server0/apps/sap.com/tcmonitoringsysteminfo/servlet_jsp/sap/monitoring/root/WEB-INF/classes /usr/sap/QBW/DVEBMGS03/j2ee/cluster/server0/apps/sap.com/tcmonitoringsysteminfo/servlet_jsp/sap/monitoring/root/WEB-INF/lib/jstartupapi.jar /usr/sap/QBW/DVEBMGS03/j2ee/cluster/server0/apps/sap.com/tcmonitoringsysteminfo/servlet_jsp/monitoring/root/WEB-INF/classes /usr/sap/QBW/DVEBMGS03/j2ee/cluster/server0/apps/sap.com/tcmonitoringsysteminfo/servlet_jsp/monitoring/work /usr/sap/QBW/DVEBMGS03/j2ee/cluster/server0/apps/sap.com/tcmonitoringsysteminfo/servlet_jsp/sap/monitoring/work /usr/sap/QBW/DVEBMGS03/j2ee/cluster/server0/apps/sap.com/tcmonitoring~systeminfo/servlet_jsp/sap/monitoring/root/WEB-INF/lib/jstartupimpl.jar Loading model: {parent,references,local} -
    Any idea about what is happening is appreciated.

    check with this links too
    http://hostname:port/sap/monitoring/SystemInfo
    http://hostname:port/monitoring/SystemInfo
    Implementing this note should solve your problem
    Note 1281251 - System information exception: Connection is invalid
    and also check
    Note 1233282 - Fixed URL of System Information application on Start page
    Thanks,
    Surendra

Maybe you are looking for

  • Field's content is not fully  visible in  Sap Transaction iview

    Hello Friends,                 I have deployed a Sap Transaction iview on my portal. I am facing a issue.  When i do F4 help on a field, the content of columns is not fully visible in the opened up popup window.     Is there any way to adjust the col

  • Reinstall Flash CS3 for Mac OSX

    Recently had to replace the hard drive on my Mac Book Pro. Data transfer to the new hard drive went well EXCEPT for my attempts to reinstall Flash CS3 and Flash Player (I'm forgetting the name of the latest and greatest version of the media player--f

  • A Headphone is Not A Speaker

    This is so amazingly silly. When I plug the headphone in, it not only announces that I have plugged in a headphone, it originally expected me to acknowledge that I'd plugged in a headphone. Given that, why does it then blast sound in my ears at the l

  • Add fields in PO header ME21n Org data tab

    I want to add 3 new fields in the ME21n transaction in the Org. Data tab. Program SAPLMEGUI Screen 1221. Please help in detail how to proceed with exit/Badi name, changes in database table to add fields and required Code to write.

  • Same file name using JMS adapter on sender side.

    Hi Friends, I got a requirement to capture file name using JMS adapter on the sender side. Can some one help me in resolving this issue. Regards, Jeevan.