How to lock computer using java

I m developing project on internet cafe management with java.
where we hv to lock certain pc when the given time is finished.

pls help me as very short time is left
5 answers Last reply Best Answer
More about lock computer java
  1. Best answer
    Look up locking a computer from the command line (that will differ depending on the OS) and making system calls from java.

    EDIT: this site aperently has sample code for running system calls in java:
    I haven't tested this, and don't know if this is the proper way to handle it, but it should be a good starting point.
  2. thanx helped me.
    but i m lookin for an easier way....
  3. There may be another library that has this functionality already build in, but i dunno if it exists or where you would find it (HINT, start with google).

    The system call wouldn't be hard to code at all. If you are having problems with it, if you let what OS you are using, i could create a simple function that could do it for you... but again, this shouldn't be very hard to do, i recommend spending 15 minutes figuring this out.

    Let me know if you need anything else.
  4. Best answer selected by rakeshfdd.
  5. thanx dude...............
    its enough from u..
Ask a new question

Read More

Programming Management Java Computers Internet Apps