Systems level programming in Java

Sometimes I heard people saying systems level programming in Java. And
I have seen some job posting also say that. Systems level programming
usually are done in C/C++. Can Java do that? Any examples?
please advise. thanks!!

My definition of system level programming includes the need to directly access the hardware through ports, interrupts,. calling BIOS functions and other system level code. Since Java can't do any of this, you can't do system level programming in Java.
However, if you accept another definition, you probably can do it.

Similar Messages

  • How to Access the Systems ipaddress in a java program

    Hi
       In a network The ip addresses of every system is changing.So that i want to know the ipaddresses of the system dynamically.
       I want a client program to  do that.
    And also i want to kno how to create a .exe file for java
    class file

    Hi
    In order to find the IP address of a system dynamically through a java programme Here is code...
        import java.net.*;
        public class check{
         public static void main(String args[])
                  try
    { InetAddress addr = InetAddress.getLocalHost();
        String ipaddress_as_text =addr.getHostAddress();
        System.out.println(ipaddress_as_text);
            catch(Exception ex){}
      For the 2 question ie to convert a .class file to a
    .exe file there are some tools available...
    I think the following link will be useful to you.
           http://duckware.com/jexepack/index.html 
        Thank you....

  • 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)

  • Can java be a low level programming language??*

    can java be a low level programming language??
    can anyone answer this question and explain it why?
    please please please...�
    [email protected]

    strike one: you are asking an obvious homework type program without showing any evidence of having done any work of your own first. Please show your work first. This isn't a homework service.
    strike two: you are cross posting here and in the "new to java forum". This irritates many of us to no end as we end up doing volunteer work to solve a problem only to find that its already been solved in another thread. So we've wasted our time for nothing. Don't do this.

  • 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

  • Setting persitent system environment variables using java program

    hai,
    Iam tryng to write installation for an application,which require to set some persistent system environment variables using java program. I have tried using set command Runtime.getRuntime().exec("cmd /c set blah blah "),but this applies only to that particular DOS promt only,i presume.And this is not perisistent.please do help.
    Biju

    The solution I proposed worked only on Windows XP/2003.
    The following solution will work on Windows NT/2000/XP/2003 with JDK 1.2+.
    1- Download the [url http://www.gjt.org/download/time/java/jnireg/registry-3.1.3.zip]JNIRegistry zipped archive.
    2- Open the registry-3.1.3.zip file and extract in the folder of your choice ( Eg. c:\setenv ) only the 2 first files (when sorted by path): ICE_JNIRegistry.dll and registry.jar.
    You don't need to keep the folder tree in the extraction.
    3- Create the following SetEnv.java file in the same folder ( Eg. c:\setenv ).
    import com.ice.jni.registry.Registry;
    import com.ice.jni.registry.RegistryKey;
    import com.ice.jni.registry.RegStringValue;
    import com.ice.jni.registry.RegistryValue;
    public class SetEnv
        static final String REG_HKLM_SUBKEY_NAME = "SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment";
        public static void main(String[] args)
        throws Exception
            new SetEnv().exec(args);
        void exec(String[] args)
        throws Exception
            if (args.length != 2)
                throw new IllegalArgumentException("\n\nUsage: java SetEnv {varName} {varValue}\n\n");
            String varName = args[0];
            String varValue = args[1];
            RegistryKey key = null;
            RegStringValue value;
            try
                key = Registry.HKEY_LOCAL_MACHINE.openSubKey(REG_HKLM_SUBKEY_NAME, RegistryKey.ACCESS_ALL);
                value = new RegStringValue(key, varName, RegistryValue.REG_EXPAND_SZ);           
                value.setData(varValue);
                key.setValue(value);
                key.flushKey();
            finally
                try { key.closeKey(); }
                catch (Exception e) {}
    }4- Compile it.
    javac -classpath .;registry.jar SetEnv.java
    5- Run it. varName and varValue are strings of your choice.
    java -classpath .;registry.jar -Djava.library.path=. SetEnv varName varValue

  • JRE System-level settings does not work - JRE1.6.30

    Good day,
    I need to set deployment.security.mixcode parameter to "DISABLE" within of deployment.properties configuration file.
    Also I wish to place the deployment.properties configuration file is not user-specific path. The default location is
    <User Application Data Folder>\Sun\Java\Deployment\deployment.properties.
    TO change the default location I read about possibility to use the deployment.config for specifying the System-Level
    deployment.properties in the infrastructure.
    Unfortunatelly seems does not work. Someone have got experience about system level settings of deployment.properties?
    This is the configuration I have used.
    deployment.config:
    deployment.system.config.mandatory=FALSE
    deployment.system.config=file/:C:\Program Files\Java\jre6\lib\deployment.properties
    deployment.properties:
    #deployment.properties
    #Fri Feb 17 15:54:57 CET 2012
    deployment.version=6.0
    deployment.capture.mime.types=true
    deployment.browser.path=C\:\\Program Files\\Internet Explorer\\iexplore.exe
    #Java Deployment jre's
    #Fri Feb 17 15:54:57 CET 2012
    deployment.javaws.jre.0.product=1.6.0_31
    deployment.javaws.jre.0.registered=true
    deployment.javaws.jre.0.osname=Windows
    deployment.javaws.jre.0.platform=1.6
    deployment.javaws.jre.0.path=C\:\\Program Files\\Java\\jre6\\bin\\javaw.exe
    deployment.javaws.jre.0.location=http\://java.sun.com/products/autodl/j2se
    deployment.javaws.jre.0.enabled=true
    deployment.javaws.jre.0.osarch=x86
    deployment.security.mixcode=DISABLE <<====
    Thank you in advance
    Adriano C.
    Edited by: user12025469 on Feb 20, 2012 6:23 AM
    Edited by: user12025469 on Feb 20, 2012 7:48 AM

    user12025469 wrote:
    This is the configuration I have used.
    deployment.config:
    deployment.system.config.mandatory=FALSE
    deployment.system.config=file/:C:\Program Files\Java\jre6\lib\deployment.propertiesHm, try using a file URL like this:
    file\:C:/Program Files/Java/jre6/lib/deployment.propertiesI believe that the file is interpreted as a properties file, which means the colon and slashes need to be escaped. This would be it if you want to use a proper Windows path:
    file\:C:\\Program Files\\Java\\jre6\\lib\\deployment.properties

  • Program in JAVA-ABAP

    Can we program in JAVA in mySAP to build an application equivalant to ABAP?
    If yes, then how much JAVA is essential? is basics fine? or advance concepts are required?

    Theoretically its is definitely possible, but you might face a lot of practical difficulties. For one, all your application tables are in ABAP and for each operation you would have to call the ABAP table. As far as I know, the dictionary-level integration between ABAP and Java is not fully functional yet.
    Secondly, each time you would have to do a Jco call to the ABAP engine to pass back values/call an FM in the system, etc. That would add to the time taken by your app.
    You would require a very good knowledge of java to be able to code an entire app.
    Sudha

  • Gets error "-17502; System Level Exception" while running the custom Step in NI TestStnad 2010

    I have a custom teststand step which works like For loop in TestStand. Previously I was using LV 2009 and NI TestStand 4.2.1 and this step was working fine. Recently I upgraded my system to LV 2010 and TestStand 2010, since that it is not working.
    When I run the step it gives error "-17502; System Level Exception". I have attached error screenshot.
    I am using NIFlowControl.dll in this step.
    Please do the needful.
    Attachments:
    System Levle Exception error.JPG ‏25 KB

    The source code for NIFlowControl.dll ships with TestStand. Did you perhaps
    1) modify the code and rebuild this dll in teststand 4.2.1, but did not move your changes into the 2010 version and recompile the 2010 version?
    Or
    2) Move your 4.2.1 version of this dll to 2010 in which case it might be missing important code that exists only in the 2010 version. It's best to redo your code changes to the 2010 version and recompile that if needed.
    Also ideally your modified version of NIFlowControl.dll should be located in the teststand public directory rather than the program files directory.
    -Doug

  • Setting system level deployment.user.cachedir in deployment.config

    G'day,
    I've been experimenting with JRE 1.5.0_04 on Windows XP.
    By default deployment.user.cachedir is set to <user home>\Application Data\Sun\Java\Deployment\cache. However, I want it to be <user home>\Local Settings\Application Data\Sun\Java\Deployment\cache.
    I have managed this as follows.
    C:\Windows\Sun\Java\Deployment\deployment.config contains:
    deployment.system.config=file\:C\:/WINDOWS/Sun/Java/Deployment/deployment.propertiesand C:\Windows\Sun\Java\Deployment\deployment.properties contains:
    deployment.user.cachedir=$USER_HOME\\..\\..\\..\\..\\Local Settings\\Application Data\\Sun\\Java\\Deployment\\cacheThis works but is ugly. The problem is that $USER_HOME=<user home>\Application Data\Sun\Java\Deployment. It seems that $USER_HOME and $JRE_HOME are the only two variables for use in deployment properties. Are there any others, in particular, one that mirrors the user's actual home directory?
    Thanks,
    Chris.

    G'day,
    Open the Java Console and execute "dump system and
    deployment properties" which shows property values,
    and see if what you want is there.Thanks, but I don't think I can use these at the system level, can I?
    I did try using ${user.home} but that doesn't work.
    So, are there any variables other than $USER_HOME and $JRE_HOME that can be used when setting system level properties?
    More info, http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/properties.html
    Thanks,
    Chris.

  • New "Windows Programming Using Java" Website

    Our newly created "Windows Programming Using Java" website (http://fivedots.coe.psu.ac.th/~ad/winJava/) is for programmers who want to extend Java's capabilities on Windows XP and/or Vista, but aren't sure where to start. One of the drawbacks of Java's portability is that many Java programmers have a rather sketchy knowledge of Windows-specific programming.
    We plan to explain how Java applications can utilize Windows application software, OS features, and hardware beyond the reach of Java's standard libraries. A variety of Java/Windows programming techniques will be explained, including:
    * Java's employment of the Win32 API via C, JNI, and J/Invoke.
    * Java's utilization of Window's Command Line Interface (CLI) and batch files, accessed through Java's Runtime, ProcessBuilder, and Process classes.
    * Java and Windows object-based scripting, centered around the use of VBScript, Windows Script Host (WSH), and Windows Management Instrumentation (WMI).
    * Java interoperability with COM, including hosting of ActiveX controls in Swing containers using jacoZoom.
    This website is a work in progress, with four chapters available for download at the moment. We'll be adding more regularly, and would love feedback on what we're doing.
    Thanks,
    Gayathri Singh and Andrew Davison
    [email protected] and [email protected]
    Edited by: AndrewDavison on Jun 20, 2008 1:36 AM

    Hi, I am looking the similar kind of requirement that you had done.. Do you have any more details on the code that is working for you . All i need is if the user logs in successfully in windows, the the app should be accessible. Please let me know if you have the code with you on this problem.
    Thanks in advance
    "what i meant is the we b applications running in my system, when i access the application iam able to to login automatically with windows authentication and now in case of other users following process happened:"

  • Asynchronous socket programming in Java?

    I am a C++ programmer, I just wonder how do I do asynchronous programming in Java?
    In VC++, you can hook an event handler to the socket and the system will fire an event whenever there is data coming in to the socket. The event handler can then spawn a thread and handle the network message.
    In Unix, you can use the select() function. This function will return whenever the indicated socket fires events. If nothing happens within the timeout period, the function simply returns.
    What about in Java? I don't see any methods that allows you to hook an event handler to it. Is there anything like select() function in Unix?
    Thanks so much.

    There is something very much like C's select: selectors. I don't immediately know where to read more about them but google for things like "java selector example", "java nio tutorial", etc (NIO = new I/O, the library where selectors live.)
    Another way to do async sockets in Java is by threading. That is the traditional way before New I/O. It's still a perfectly good and easy way, thanks to Java's easy threading. Downside is that it scales to only maybe 100-200 simultaneous connections per server (will depend on your operating system). For thread-based sockets check Sun's Java socket tutorial (first item when you google "java socket tutorial").

  • How to compile and run package programs in Java

    Hi,
    I want to know how to compile and run the package programs in Java using -d. instead of creating the package folder manually.
    eg:
    package Test;
    class test1
    public void disp()
    //Any code;
    I want to compile this without creating the folder ' Test ' manually. that is if we use -d with javac the Test folder will be created automatically. I need the format of -d
    could anyone please help me.
    Thanks in Advance ,
    Ambika

    My program Test.java in F:\Tomcat5\webapps\Ambika\WEB-INF\Classes. I compiled in the format below. I got like this. What should I do for this? But yesterday I compiled like this only, It compiled and the folder com\cert\Test.class is created. Today again I compiled the pgm after deleting the already created folder 'com\cert', I got the error like this.
    I've given my pgm and the thing I've got when I compiled it.
    Test.java
    package com.cert;
    public class Test
         public void display()
              System.out.println("Hai");
    F:\Tomcat5\webapps\Ambika\WEB-INF\Classes>javac -d F:\Tomcat5\webapps\Ambika\WEB-INF\Classes\Test.java
    javac: no source files
    Usage: javac <options> <source files>
    where possible options include:
    -g Generate all debugging info
    -g:none Generate no debugging info
    -g:{lines,vars,source} Generate only some debugging info
    -nowarn Generate no warnings
    -verbose Output messages about what the compiler is doing
    -deprecation Output source locations where deprecated APIs are u
    sed
    -classpath <path> Specify where to find user class files
    -cp <path> Specify where to find user class files
    -sourcepath <path> Specify where to find input source files
    -bootclasspath <path> Override location of bootstrap class files
    -extdirs <dirs> Override location of installed extensions
    -endorseddirs <dirs> Override location of endorsed standards path
    -d <directory> Specify where to place generated class files
    -encoding <encoding> Specify character encoding used by source files
    -source <release> Provide source compatibility with specified release
    -target <release> Generate class files for specific VM version
    -version Version information
    -help Print a synopsis of standard options
    -X Print a synopsis of nonstandard options
    -J<flag> Pass <flag> directly to the runtime system
    F:\Tomcat5\webapps\Ambika\WEB-INF\Classes>
    Plz help me.
    thanks in advance
    Ambika

  • Ni 6602 Card, Configuration in Register Level Programming

    Hello,
    I want to do register level programming with the NI 6602 card .
    I want to use an x4 encoder reader and I want to use the continuous
    frequency generation.
    so i got the following tool to map the kernel space to the user space, so
    a simple shell script will do the job.
    http://www.linux.it/~rubini/software/phob/phob.html
    and than just using the provided function phob_io
    to programm the registers in a shell script:
    #!/bin/bash
    # shell script for init 6602 card with prf and encoder counter
    # set prf
    ../phob_io ''0:048=0000'' # Input Select Register
    ../phob_io ''0:00C=1109'' # Command Register
    ../phob_io ''0:038=00ffffff'' # Load A Register
    ../phob_io ''0:03C=00ffffff'' # Load B Register
    ../phob_io ''0:
    034=9218'' # Mode Register
    But don"t get any output as i expect, what is wrong?
    Do i have to set some othe registers, or write somthing to the PCI-Config?
    Does anyone has some sample configuration?
    Thanks
    Mario Behn
    Mario Behn
    Microwave Remote Sensing Laboratory Room 104
    University of Massachusetts
    Knowles Engineering Building
    Amherst, MA 01003-4410
    phone (413) 545-4675
    fax (413) 545-4652
    email [email protected]

    A typical project for one of the 660x RLP examples needs to include the following source code files:
    ../OSinterface/osiBus.cpp - generic register I/O interface used by the example code
    ../OSinterface/Linux/osiUserCode.cpp - OS specific adapter used by osiBus to access registers on the hardware in the specific OS
    ../ChipObjects/tTIO.cpp - abstraction of the chips and registers on the hardware into C++ classes and properties
    and one of the examples files, e.g.
    ../Examples/gpct_ex1.cpp - implementation of a specific operation, including all initialization of the hardware
    (The same is true for the examples for other boards although the names of the ChipObject and examples will be different.)
    Each of these files needs to be compiled to give y
    ou object files, and then all of the object files need to be linked together to build an application (executable binary). The errors you list seem to indicate that you are not using all of these files.
    There is more information on the RLP example architecture in the attached PDF document.
    Christian Loew, CLA
    Principal Systems Engineer, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense
    Attachments:
    Register_Level_Programming_Architecture.pdf ‏165 KB

Maybe you are looking for

  • Nomad Jukebox Zen Xtra 60 GB can't be found through Mediasource Organizer

    I have been using the Creative Nomad Jukebox Zen Xtra HDD Player since a few years and I have always been satisfied. But recently, I had a massi've computer problem, forcing me to do a complete re-install of Windows XP, without the chance to backup m

  • OAM and RESTful services

    All, I'm looking for some advice regarding the consumption of REST services (from the users browser) in an environment that utilizes OAM security and the Oracle Service Bus. Let me set the stage. We've configured an instance of OAM with OHS acting as

  • Single work item in the Manager's inbox for weeks times

    Hi all, I am sure lot of people might have faced this issue. Currently we are on EP 6 SP 20 R/3 4.7 MSS B.P 60.1 <b>Scenario</b>: Employee enters times in ESS through CATS. MAnagers ened to approve time WF assigned to CATS: 20000460 <b>Issue:</b> Eve

  • Papi-ws: could not call activityExecute

    Hello i am using papi-ws , and want to move my instance from state to other, means execute the activity to accept/or reject it depends on user input : I am suing papiws,activityExecute() , the request looks like this: <soapenv:Envelope xmlns:soapenv=

  • Push Button Problem in Custom screen

    Hi All.. Hi All.. In my custom screen, i have 2 (A1, A2) input boxes with F4 option and a Push Button.. When i select the data in these input boxes, i will click Push Button (COPY) to transfer the data from these (A1, A2) to other two input Boxes (B1