System Programming thru Java

Dear friends,
can we do System programming like creating device drivers throgh Java.
If any one has idea or related programs Please send to [email protected]
Please let me know about it.
i will be thankful to you.
Else i will have learn C or C++ for that.
thanking you...
Regards....

can we do System programming like creating device drivers throgh Java.No, you cannot do that. The only way to get through to the system-specific parts of the computer would be through JNI... and JNI involves programming in other languages.
/Michael

Similar Messages

  • System programming in Java

    Hai!!!
    Actully I'm working in Automatic distinction between the system progam & application programs. Is there any samples/source code of the system programs available in java???is it possible to distiguish between the system program & Application program by seeing the code??
    Cheers!!!

    Just curious what is it system programming in java? Can't recall any example...

  • Embedded system programming in java

    I want to know how to do embedded system programming in java.
    can anyone give some sample programs and tell me nice book for embedded programming in java

    First take a look at Embedded Server forum (http://forum.java.sun.com/forum.jsp?forum=46) and/or OSGi (http://www.osgi.org)

  • Systems programming in Java

    Is it possible to write system programs in java language? where can i find examples?

    like writing device drivers or interacting with hardware i.e. ports input/output just like in 'C'..
    If it is possible to write device drivers in java.....then we need not to write drivers for Windows, Solaris and linux separately. Just write device driver once and run it anywhere.. i don't know it is feasible or not.
    Edited by: arun_maurya on May 7, 2008 2:24 AM

  • System programing using Java

    What java class library that i can use for system programing?

    Do you mean device drivers and the likes? Java isn't the language for that. You can always interface Java with C and there's also the Micro Edition of Java. It depends on your situation if Java is useful.

  • System programming with java

    hi,
    i was trying to fetch system related data, like processor usage, through java .. but i couldn't .. i couldn't find any API for the purpose..
    finally used some shellscripting...
    is there any API for these purpose?
    If there are no such APIs then how java.io works?
    how it interact with hardware? how it read input from IO devices?

    If there are no such APIs then how java.io works?
    how it interact with hardware? how it read inputfrom IO devices?
    can somebody answer these?Java technology includes an abstraction layer called the Java Virtual Machine. This JVM isolates all system dependencies. Once a JVM exists for a platform, pure Java programs (in bytecode form) will run on that platform.

  • Please help how to run System commands and batch files thru java program

    Sir,
    I want execute OS commands like dir,cls..etc and batch files,.exe filesthru java program.
    I have tried it sofar thru Runtime.getRuntime().exec("execute.bat");
    but it is not working.anybody knows about how to run the system commands thru java please give me the code.
    thank you,
    regards,
    j.mouli

    I've seen other posts with this questions, and answers. Unfortunately I didn't pay much attention. But the basic idea is to exec command.com and pass the specifc batch or command as an argument.

  • System Programming

    While working in VB.Net it is possible to do System programming such as,By the Click of Button,System Start Menu or TaskBar becomes Un-Visible.Can we do such type of System Programming in Java.

    Yes, using JNI.
    You shouldn't hide task bars and such, however, people use them.

  • 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().
    ~

  • Creating XML file in Project folder thru Java Program

    hi,
    i need one help. i need to create XML file in web://<Project Folder> in xmII thru Java Program. i created one java code and i am able to access XML file that is in c drive. i created jar file for this and placed as action block in Transaction and this working fine. but problem arises when i give file path in java code as web://<folder name>/file.xml which is in Web folder of project in xMII.
    How to access the file that is inside web folder from java code.
    regards
    senthil

    Hi Senthil,
    you can address the files that inside the MII workbench are viewed as "web://..." like this:
    http://<server>:<port>/XMII/CM/<Project>/<Folder>/<Filename>
    The workbench helps you find the correct filename:
    - open the WEB tab in the workbench
    - right-click on the filename
    - select "Copy Link" from the pop up
    Now you have the correct link in your clipboard.You can use the "web://" only inside MII.
    Michael

  • How to read system eventlog using java program in windows?

    How to read system eventlog using java program in windows?
    is there any java class available to do this ? or any one having sample code for this?
    Your friend Zoe

    Hi,
    There is no java class for reading event log in windows, so we can do one thing we can use windows system 32 VBS script to read the system log .
    The output of this command can be read using java program....
    we can use java exec for executing this system32 vbs script.
    use the below program and pass the command "eventquery"
    plz refer cscript,wscript
    import java.io.*;
    public class CmdExec {
    public static void main(String argv[]) {
    try {
    String line;
    Process p = Runtime.getRuntime().exec("Command");
    BufferedReader input =
    new BufferedReader
    (new InputStreamReader(p.getInputStream()));
    while ((line = input.readLine()) != null) {
    System.out.println(line);
    input.close();
    catch (Exception err) {
    err.printStackTrace();
    This sample program will list all the system log information....
    Zoe

  • How to read system evenlog using java program in windows

    How to read system evenlog using java program in windows???
    is there any java class available to do this ? or any one having sample code for this?
    Your friend Zoe

    Welcome to the Sun forums.
    >
    How to read system evenlog using java program in windows???>
    JNI. (No.)
    >
    is there any java class available to do this ? or any one having sample code for this?>You will generally get better help around here if you read the documentation, try some sample code and come back with a specific question (hopefully with an SSCCE included).
    >
    Your friend Zoe>(raised eyebrow) Thank you for sharing that with us.
    Note also that one '?' denotes a question, while 2 or more generally denotes a dweeb.

  • Set system classpath using java program??

    Hi,
    I want to set the System classpath using java program. Can somebody please tell how to do this.
    Prashant

    but this will set the classpath for that particular JVM only.
    Isn't it??? I want that of SYSTEM so that user can access that class path from any JVM instance.
    Prashant

  • The system variables in java, NEEDED ONLY at CLI execution of java programs

    The system variables in java, NEEDED ONLY at CLI execution of java programs, and NOT needed at all[essentially] if I install bundle(14+6.7)?
    if I install bundle(14+6.7) to run-test a web app with netbeans 6.7 what I must press, then opens the default browser? I have to be online,...? How I test browse my project?

    Probably a complete tutorial on all possible environment variables in addition to a tutorial on netbeans configuration.

  • Please help How can i run Os commands thru Java programs

    Hey,
    I want to stop and restart the linux server thru java program.Is it possible to run the os commands thru java program.
    I had it thru Runtime.getRuntime().exec("*.exe");
    it only runs the exe files.How can run files other than exe files like .bat,com ans shell commands..Any body knows please help with the code..or mail to this address
    [email protected]
    thankyou,
    regards,
    j.mouli

    What about "start command.com /C execute.bat", or using the overload that takes a String[] as argument?
    What if you use the the full path of execute.bat?
    What error code do you get?
    And what comes th linux, I'm not sure... you'll need a shell interpreter there too, me thinks. (never had to run anything with runtime.exec on linux). Check the man pages if csh, bash, ksh, or what ever shell you like.

Maybe you are looking for