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.

Similar Messages

  • 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

  • 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 know the select statement perfomence

    how to know the select statement perfomence. suppose i have 10 select statements in my program. how will i know which select statement not performance wise poor.

    Go to ST04/
    Click on Detail Analysis menu button.
    Click on the SQL Request button.
    In the pup up give <table name> and execute.
    Then you will get a list of all the programs that have a select on that table.
    Or ST05 transaction t start the trace and run your program .Deactivate the trace in st05 .
    and display the trace.
    Regards,
    Ravi

  • How to isolate the Sql Statement from Java Code

    Hi
    I Need to know that can we segregate the Sql Statements and convert them to Stored Procedures so as to isolate the Sql statements from Java Code.
    So i have one static web page which uses four select Statements so what i want is to create a stored procedure encapsulating these queries. So that the Java Web Developer will simply call the Stored Procedure instead of using four different SQL Statements.
    Suppose the developer has these four Statements
    Select ename,empno,sal,job from emp;
    select empno,ename,mgr from emp;
    select deptno,dname from dept;
    select emp.ename,emp.empno,emp.deptno,dept,dname fromemp,dept;
    So can i encapsulate these four Sql Statements in one Procedure and the Web developer can call the Store procedure and dont need to write the Sql Statements in his code.
    Can Anybody guide me how to write this Stored type of Store procedure.
    Thanks

    http://www.google.com/search?q=java+windows+registry
    Next time, search yourself. It might be beyond your belief, but you're really, really not the first person to wonder about this.

  • 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 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 system priviledges??

    I want to use SQL plus to retrieve the system priviledges that I owned. What can I do?
    Thanks

    You may have system privs directly or through roles.
    select your system privs from following tables
    1. user_role_privs
    2. user_sys_privs
    3. role_role_privs
    4. role_sys_privs

  • Calling the system commands in Java

    Hi All,
    How to call the system commands in java other than using
    exec() function.For eg, in my linux machine i have used p.exec("exit") to exit from a cshell to the prompt but it is not working.Is there any other solution for this one. Pls. do provide a solution for this.It is quite Urgent.
    Thanks,
    m.ananthu

    Why not SEARCH THE F*ING FORUMS!! This has been answered SO MANY TIMES

  • How we can update the  System Date,in java

    Hi guys,
    can U pls help me...
    How we can update the System Date,in java
    I need to get the System Date and time continuosly thruogh threads concept.kindly help me
    Thanking u in Advance

    System.currentTimeMillis() will give you the current
    system date and time as a long value.
    ~I think the OP wants to change the system time not just get the system time.

  • How to know the existing BDC in the system

    how to know the existing BDC in the system
    cheers
    AJ

    Hi,
    You can check for existing recordings in your system in t-code SHDB. This transaction is also used for recording  a transaction and generating a function module or a program from the recording which you can then use in your program. There are no standard existing BDC's as far as I know. Because most of the times the BDC table is filled programitically and then passed to the Call Transaction.
    regards,
    Advait Gode.

  • How to get the system time in a Swing application ?

    I know how to do it in JavaScript, but not java. Please help me, and also how to get the system time in an Applet. Thanks !!!

    Check this link, I hope it helps
    http://202.71.136.142:8080/globalleafs/Swing/View.jsp?slno=22&tbl=0

  • How to organize the import statements in FXML Files?

    Hello,
    I'm a user of NetBeans IDE and it can organize the import statements in *.java files. Now, I'm using JavaFX and editing the *.fxml files as well. I want to know how to organize the import statements in *.fxml files?
    Thanks a lot.

    You should use Scene Builder, it will make all these import statements for you.
    Moreover, it will greatly simplify the writing of your FXML files, since you only have to Drag&Drop JavaFX objects on the scene. Then, it automatically generates FXML files.

  • How to find the current state in web dynpro

    Hi,
       Can any one tell me how to find the current state of system (idle /not idle).
    Thanks,
    Krishna..

    Please explain further.  I don't understand how you are expecting to test for idle.  If ABAP code is being executed, then you know that the application is not idle. Only a server event could trigger code execution. Only a timedTrigger would be able to tell you that a certain amount of time has passed without activitity - although the event of the timer itself will be a server event that constitutes activity.

  • How to stop delete system stats in Mavericks OS X 10.9.3

    From time to time my iMac (late 2009) slows down and the reason seems to be an App named "system stats" as seen in the Activity Monitor on top of all other CPU Usage items. How can I avoid system stats to pop up again?

    Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
    Feedback

Maybe you are looking for

  • Main VI stops fucntioning after i open and close a subvi from an event structrue.

    Hi, I am trying to open a pop up vi from an event. I have been struggling with this for a while now. When i open a pop up vi and close it, the main vi stops running properly. I have narrowed it down to the fact that the event which calls the subvi ne

  • OracleXMLSave - Insert into table with NOT NULL Columns

    Im having trouble using OracleXMLSave (XSU12) to insert into a table where columns are initialized on insert with system derived values (see table script below) I get the following error message. Message: 'java.sql.SQLException: ORA-01400: cannot ins

  • Lonf text update in Transcation

    Hi, I am uploading  long text in IA05 transaction. Using function modules SAVE_TEXT, COMMIT_TEXT. The text gets updated in the database i can see the text through READ_TEXT fm. But when i m going in the transaction i m not able to see the text. Pleas

  • PHP forms in Catalyst

    Help please! I have a php form that I would like to integrate into our Catalyst site. IE, I have a form but I want it to sit inside the Catalyst header / side bar / footer. Is this possible and if so, how?

  • Adding object to CMC - Prompted for DB pw

    We have setup CR2008 and I am testing to add a new report object.  I can run the report but am being prompted for the DB logon. I would like to automatically use the db pw used in the report. When I try to modify it in the CMC the Process tab is gray