Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    May 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    [Java]-Interacting with hardware

    Hello, this is my first post here .

    I'm pretty much a beginner so it'll great if the help given to me is well explained.

    Well, I would like to know how to interact with hardware with the programming language Java, in other words a program which shuts down my computer merely by running it and stuff like that...
    Btw, I'm using the compiler Eclipse v3.2.

    Thanks in advance, Ben.
    Last edited by EndIf; 05-19-2008 at 03:19 PM.

  • #2
    Regular Coder Aradon's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    734
    Thanks
    0
    Thanked 20 Times in 19 Posts
    Typically depending on the system there are different system calls that you can execute in order to perform the operations that you want. This would be the safest way to do it in this particular case.

    So depending on what you want to do depends on the call you would make.
    "To iterate is human, to recurse divine." -L. Peter Deutsch

  • #3
    Regular Coder
    Join Date
    May 2008
    Posts
    187
    Thanks
    7
    Thanked 7 Times in 7 Posts
    Java is extremely abstracted, direct interaction with the hardware is nearly impossible because it is native to the OS. However, there is some support, plus you can execute C/C++ code in java.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •