How to know the system configuration using Java.

Hello Everyone,
I wanna know the system configuration (Hard Disk size,Ram capacity,Processor speed) .Can we know it using Java API? Or else is there any API which makes my life easier?
Can someone let me know,please?
All ur answers r most welcome.
Thanks

--> provides you with some basic info on os user and os but my best bet is to find a windows system file that maintains this information and then read the data from it
import com.sun.servicetag.SystemEnvironment;
SystemEnvironment se = SystemEnvironment.getSystemEnvironment();
        System.out.println(se.getCpuManufacturer());
        System.out.println(se.getHostId());
        System.out.println(se.getHostname());
        System.out.println(se.getOsArchitecture());
        System.out.println(se.getOsName());
        System.out.println(se.getOsVersion());
        System.out.println(se.getSerialNumber());
        System.out.println(se.getSystemModel());
        System.out.println(se.getSystemManufacturer());Edited by: emmanuel.putti on Nov 11, 2008 6:43 AM

Similar Messages

  • How to know the System State in java

    Hi
    I would like to know ,is there a way to get the System status in java, like whether System is idle or any browser is opened or any application is running?
    this information is required to run the screensaver as we know Screen saver will run when System is idle.
    This is very Urgent
    Thank U
    Dharma

    You cannot get the systems status without running something.
    Then when you run something it will say, something is running.
    You cannot implement this functionality in Java.
    You may be able to get this information in JNI but you will need to have a good low level understanding to do it.
    I would suggest you write a Windows screensaver (there should be examples on the web) and then have it run a Java application when it is active.

  • System configuration using java

    Hi friends
    Can I get System configuration using java code.
    If yes plz suggest how.
    thanks in advance.. Anjana

    some bits and pieces are available see the details in
    System.getProperties():
    Properties sysProps  = System.getProperties();
    meration en       = sysProps.keys();
    while ( en.hasMoreElements() )
    //add the key=value pairs
    Object keyObj    = en.nextElement();
    String key       = ( String ) keyObj;
    Object valueObj  = sysProps.getProperty( key );
    System.out.println( key + " : " +
    + valueObj.toString());
    de]
    just an idea??YES, and also you can do
    System.getenv();but they also don't give all the info the OP was/is looking for.

  • How can i get system variable using java

    Hi,
    I just want to know how can i get system variables using java code.
    for example i want to get the the date for today or i want to get the number of processes that's running.
    Thanks alot

    Hi,
    I just want to know how can i get system variables
    using java code.
    for example i want to get the the date for today or i
    want to get the number of processes that's running.
    Thanks alotSome generic "system variables" are available though Java, usually through the System class.
    Date today = new Date();
    is instantiated with the current date and time.
    Other system values, like environment values, should be passed to java through the command line (-D option) by setting system properties.
    Finally, platform specific values like the number of processes running will have to be written in platform specific code and executed by JNI (java native interface).
    Java is platform or system agnostic. Common system values, like time, are implemented. Hopefully you won't need platform specific values.

  • How to get the context data using java script in interactive forms

    Hi All,
    How to get the context data using java script in interactive forms by adobe,  am using web dynpro java
    thanks.

    Hi venkat,
    Please Refer this link.
      Populating one Drop-Down list from the selection of another Drop-down list
    Thanks,
    Raju.

  • How to find the  System Dbtype in java code

    How to find the System Dbtype in java code
    I need various Db connection my project (oracle, sq l,sybase,db2),So How to find the System Dbtype in java code

    Welcome to the Forums.
    Please go through the FAQ of the Forum.
    You has posted your query in the wrong Forum, this one is dedicated to Oracle Forms.
    Please try {forum:id=1050}.
    Regards,

  • How to import the image by using java application

    1.how to import the image by using java APPLICATION and display it on the textarea that you have been created.
    2.how to store the image into the file.
    3. what class should i used?
    4. how to create an object to keep track the image in java application.
    * important : not java applet.
    plzzzzzzz.
    regards fenny

    follow the link:
    http://java.sun.com/docs/books/tutorial/2d/images/index.html

  • How to know the system generated password when reseting users password?

    Dear All,
    I have reset password using "genarated new password" in the portal from User admin,but dont want to send a e-mail notification  to end users, instead of that i want to know the system generated password.
    But system doses't shows it.How can I tell what the password is and give it to the user?
    I have a All super admin rols.
    Pleas guide.
    Thanks in advance.

    Basically you can't! If you tell it to generate one, then that's only sent to the user. Why not enter your own random password or let the user pick their own through some sort of self service function?

  • How to manipulate Windows System Variables using Java

    Hi There,
    I want to manipulate Windows System variables (e.g. PATH, CLASSPATH) using Java program. Could anyone please let me know how it can be done in Java.
    Regards,
    Rakesh Nagar

    This is not just a Java question. It has never been possible in any Windows program to permanently change the value of an environment variable. You can only change it temporarily, and when the process that changed it ends, so does the change to the environment variable. This has been true since environment variables were added to DOS in about 1983.

  • How to insert the system date  using PreparedStatement

    How do I insert system date(from Orcale database) using
    PreparedStatement. I am aware that that oracle has date
    function 'sysdate' to retrieve the database current date.
    How Do i use that in the following syntax?
    Alertnative 1:
    String inssql =
    "insert into emp (empid, name, dept, updateDate) "+
    " values (?, ?, ?, ?)";
    PreparedStatement pstmt = conn.prepareStatement(inssql);
    pstmt.setInt(1, 123456);
    pstmt.setString(2, "Bougnon Kipre");
    pstmt.setString(3, "Rare Species Depatement" );
    pstmt.setDate(4, sysdate) // if this okay
    pstmt.executeUpdate();
    Alternative 2:
    String inssql =
    "insert into emp (empid, name, dept, updateDate) "+
    " values (?, ?, ?, sysdate)";
    PreparedStatement pstmt = conn.prepareStatement(inssql);
    pstmt.setInt(1, 123456);
    pstmt.setString(2, "Bougnon Kipre");
    pstmt.setString(3, "Rare Species Depatement" );
    pstmt.executeUpdate();

    Hi,
    The second alternative will be the best way.
    Since the alternative 1 won't work. sysdate cannot be accessed
    from java as a variable. Either use alternative two or create a
    java.sql.Date and insert it.
    Regards
    Elango

  • How to upload the file without using java components?

    Hello,
    I need to upload the file using JSP, but I don't want to use java componets(such as
    jspsmart).
    Who can tell me how to realize it? This issue is very important to me,
    thanks all in advance!

    make you're own servlet using the multipartrequest from o'reilly.
    easy and simple, no jspsmart, only 1 jar file and some descent programming.
    I use it like that...

  • How to know the logout url in Java PDK

    Is there any method that can give us the logout url of SSO using java PDK?
    Thanks in advance,
    Tony Cruz

    Thank you for the replies. But what i really want to do is a login portlet that can show me a link to logout, and i want to use this portlet in all projects that my company is in, so the code of this portlet must be 100% dinamic, this means that i do not have to know the database schema/passwords, where database is, etc, i thought there was some method in the JPDK that was able to give the link to logout (this is possible for login) but until now i cannot find it. There is a solution for this using a PL/SQL procedure called wwsec_app_priv.logout that lies in the portal schema, this procedure works but i'm not able to redirect the browser to the url i want after logout (in the documentation they say its possible and that there is a parameter called p_done_url that can do this, but in the procedure signature this parameter its not implemented) so right now i'm stucked in this one, and im not sure if i can use the 100% dynamic approach with good results.
    Thanks

  • How to know the column name using the index name for a particular table

    Hi All,
    I have small query regarding, I have index name and table name so by using this how can I know the column name associated with that index of that particular table specific to Oracle9i.
    Thanks
    Sudheer

    select *
    from user_ind_columns -- or all_ind_columns
    where table_name = UPPER('&table_name')
    and index_name = UPPER('&index_name');
    Regards
    Arun
    Gurgaon

  • 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

  • How to Count all System Threads using java

    When we open task manager, under performance tab we get totals frame. In that frame we can see Handles,threads and processes values. I wants to fetch the value of only thread value using java program.
    what should I do if I want to fetch the all threads running under the system?
    Now I am using java.lang.management.*;
    ThreadMXBean abcd = ManagementFactory.getThreadMXBean();
    System.out.println("abcd : " + abcd.getThreadCount());
    But it is giving me only....current thread values......I want to fetch all threads running on the system.

    jschell wrote:
    As a thought the sysinternals tools might provide a command line version that does something like that for windows.pslist.exe from sysinternals does it.
    As well as other free programs you can google for (pv.exe, process.exe).
    Tried them all in XP and they work. You may want to see what about Vista, 2K.

Maybe you are looking for

  • Personal File Sharing problem

    We networked an iMac, iBook and PowerBook G4 through airport. Worked swimmingly until recently. Now the PowerBook is making difficulties. It recognises both other computers but fails to actually connect to them (just continues 'thinking' eternally wh

  • HOW DO I RESET THE SMC ON MACBOOK PRO

    Hi does a nybody know how i can reset the SMC on a brand new MBPro 13inch.320GB,2.4GHz,4GB,RAM? As were having battery problems,after calibrating the battery which was saying 100% fully charged,it now will not charge to 100% anymore plus it wont show

  • NEXT,PREV,FIRST,LAST PROBLEM

    hi to all i'm using form6i and run in c\s i have 7 records, (1,2,3,4,5,6,7), the problem is when i click next_Record button it will go the the last_record which is 7. when i click previous it will go to the first record which is 1. when i click last_

  • Oracle admin question

    Please help me. I need to revoke user rights for creation packages and stored function in Oracle but in same time user should be able to execute the same package and stored function/procedure. Thank's a lot.

  • ITunes 10 is messed up!

    Every time I open iTunes 10 on my computer, I get a message saying: "iTunes can't verify the identity of the server ax.itunes.apple.com" What the heck is this? I'm not trying to connect to the server, only play my own music I've stored on an external