Is java suitable for hardware related programming?

in general, is java suitable for hardware related programming?

One small hurdle is that device driver writing often requires very specific machine instructions that are not directly available to any high level language. IN, OUT, LOCK (lock memory bus), VERR (Verify for Reading), RDMSR (Read Model-Specific Registers), move from/to memory without going through the MMU address mapping, ... (those are from x86, there are a few dozen of them.)
In C, you'd write assembler glue. In Java, you'd write assembler glue and call it through JNI.
So if you modify the question: "is Java + JNI suitable", the answer changes a bit. Still, threading and garbage collection are issues: often you can't have anything else happening in the computer when you are talking to a hardware device; it's often timing-dependent and any other parallel bus access migh throw the bus protocol off.
Depends on the hardware, the operating system, and the Java (real-time Java may be required). Be prepared to write the lowest levels of communication in assembly; there is no other language for those bits.
Would you consider controlling Lego Mindstorms hardware related? The low level bits are operating system services in C/C++/assembly, and the high level is Java.

Similar Messages

  • Java Help For Apple Widget Program

    I'm working on a Apple Widget and I have a question for the JS part of it.
    I want multiple elements to fade out when the widget loads up, I can get one element to fade out, but how do I get multiple elements to fade out on the same onLoad event.
    Here is the code to get one item to fade out.
    function elementHide(event)
    // Values you provide
    var itemToFadeOut = document.getElementById("img"); // replace with name of element to fade
    // Fading code
    var fadeHandler = function(a, c, s, f){ itemToFadeOut.style.opacity = c; };
    new AppleAnimator(5, 13, 1.0, 0.0, fadeHandler).start();
    } Thanks for any help given.

    Avi,
    Dude, this is java forum, and Java is NOT javascript... so try a [javascript forum|http://www.google.com/search?q=javascript+forum&hl=en&sourceid=gd&rls=GGLD,GGLD:2008-06,GGLD:en&aq=t].
    You just might get an answer here, but the majority of regulars refuse to address javascript questions here, as a matter of principle... even though the same people are happy to answer the same questions on the javascript forums. Go figure.
    Cheers. Keith.

  • Java API for Hardware

    Hi,..
    I'm working about hardware detection project. Its about finding all hardware in PC like Device Manager that show all device in PC (bundle with MS Wins). So we find the solution about java that Is there any API of java can do our task ? and what's its product ?
    Thanks a lot...
    Golf

    One way to do it is to use the Java Native Interface to make C calls to the local operating system.

  • Java Libraries for Linear Programming/ Optimisation / OR Related Topics

    Dear all,
    I am working on some applications dealing with optimisation of constraints spaces/resource.
    I will probably need to engage linear programming / optimisation techniques or algorithms to solve the problems. I wonder if anyone know of any Java libraries for purpose (trying to write my own optimisation/linear programming solving packages will require way too much effort and re-inventing the wheel).
    Many thanks!
    regards

    Hi,
    I wonder if there are more complete and comprehensive packages. I hope to find some libraries that will provide the optimal solution and at the same time with report generation facilities (i.e. sensitivity reports).
    Any ideas / advices?
    regards,
    david

  • Java Libraries for Linear Programming/Optimisation or OR related algorithms

    Dear all,
    I am working on some applications dealing with optimisation of constraints spaces/resource.
    I will probably need to engage linear programming / optimisation techniques or algorithms to solve the problems. I wonder if anyone know of any Java libraries for purpose (trying to write my own optimisation/linear programming solving packages will require way too much effort and re-inventing the wheel).
    Many thanks!
    regards

    DON'T cross-post:
    http://forum.java.sun.com/thread.jsp?thread=562802&forum=31&message=2769992

  • Which IDE is suitable for GUI in Java?

    Which IDE is suitable for GUI in Java?
    I have kind of complex form with many text fields and buttons in a Java application. I have been trying with Netbeans, everything is fine with Netbeans but it is a huge problem when all the graphics components move around when you have too many graphic....
    I am looking for IDE with GUI tools??? Any suggestions???
    Many thanx for all advices

    I tested Eclipse 3.2 and NetBeans 5.5. NetBeans definitely has the more stable, reliable and more user friendly GUI editor.
    From the rest of the development - the features of the IDE - I see that Eclipse offers more but with the drawback for the beginner (as I am) that some things are harder to figure out how they work in Eclipse. NetBeans seems more "intuitive" and easier for me. - Emphasizing again that I am a beginner.

  • I am unable to successfully download updates for Encore or any other CS6 related programs. I get an error code

    Whenever I am prompted that there are updates available for downloading for any of the CS6 related programs including Encore, I get the following message.
    Encore CS6 update
    There was an error installing this update. Please quit and try again later. Error Code: U44M1I210. Quitting and trying again makes no difference. Is anyone able to help please?

    Okay.
    For CS6, the page I linked has this to explore install logs:
    Troubleshoot install issues with log files | CS5, CS5.5, CS6
    Many of the updates you see are for associated elements that may not be needed (e..g. camera raw files).
    For Encore, on PC, the latest version is 6.0.2. On Mac, 6.0.1. If you have that version, you do not need to update.

  • I'm involved in fashion and would like to know which Adobe program would be suitable for importing images and my company logo to design fabric and send as image to fabric printers? Thanks

    I'm involved in fashion and would like to know which Adobe program would be suitable for importing images and my company logo to design fabric and send as image to fabric printers? Thanks

    Adobe Illustrator.  Your company logo should be a vector file.  Image files can be "Placed" in Illustrator.  Artwork created for printing can be drawn in Illustrator and saved as .ai, .eps, and .pdf files which can be imported into your printer's RIP.  But, check with your print vendors and see what they require.  This does not rule-out Photoshop, however Photoshop can be limited.  So, it would be a good idea to have Photoshop and Illustrator loaded in your workstation with Illustrator being the go-to application.

  • I use OS X Yosemite and Java Version 8 Update 25. Which java version is suitable for flash CS6?

    I use OS X Yosemite and Java Version 8 Update 25. Which java version is suitable for flash CS6?

    See System requirements | Flash Professional
    Java version 1.6 is included with Flash Pro.

  • HT4623 my husbands iphone4 was dropped and it doesnt work now... according to powermac representative, hardware related problem, what should i do? anybody knows where to bring the unit for repair, because powermac didnt accept it.

    my husbands iphone4 was dropped and it doesnt work now... according to powermac representative, hardware related problem, what should i do? anybody knows where to bring the unit for repair, because powermac didnt accept it.

    Who is powermac? Are they and authorized iPhone sales site?

  • Does it give any java parser for java programming guidelines?

    i've got a parser for c/c++ programs (codecheck from abraxas) from 1996, i think. but i didn't find anyone for java. does anyone know where from i'm able to download one?

    http://www.experimentalstuff.com/Technologies/JavaCC/

  • Programing language software suitable for leopard OSX

    Hello,
    please i need your help to find a programing language software which is suitable for OSX. and certainly, something near to (Dot net), hoping that somebody can help me in this, thanks a lot...
    best regardss

    Hi Zak,
    Suitable for what type of things in particular? Also, which languages within .Net are you interested in? .Net can cover a wide range of languages.

  • What is Java good for?

    I need to develop a really serious solution for Win2K server, that will handle security data. Now I am thinking of a platform to do it. Can Java really secure the data I will trust to store it? I mean various mulfunctions, program bugs, errors, so on. Microsoft really insists on trusting its programs, not Java's (see the installiation guide for Win2K: 'Java cannot be used for medical, technical (for example handling the nuclear enterprises) ...'), so I don't know what to do. Developing a Java solution will be simplier that doing the same thing with VC.Net, but ... What do you think? What is Java good for?

    Microsoft really insists on trusting its programs, not Java'sDo you trust Microsoft?
    (see the installiation guide for Win2K: 'Java cannot be used for medical, technical (for example handling
    the nuclear enterprises) ...'), so I don't know what to do. The nuclear bit is in the Java license ("You acknowledge that Software is not designed, licensed or intended for use in the design, construction, operation or maintenance of any nuclear facility.") I think it's probably either a result of US law requiring some certification or other for software used in nuclear facilities, or a preemptive move by Sun to forestall possible lawsuits.
    The JVM is stable, probably more so than .NET since it's older, and should be suitable for your use, based on the description so far. The things you need to worry about are primarily personnel and hardware configuration (i.e. disabling virtual mem).

  • New to JAVA, but old school to programming

    Objects & Classes & Methods, Oh my!
    I'm pretty new to java, but I've been programming in several languages over the years. I thought it was about time to update my skill set, especially with the job market as it is today. I wanted to go JAVA because it's not specific to any environment.
    I picked up a begining JAVA book and was a little confused. When I was learning programming a program was called a program. a peice of code in a program called by a statement was called a subroutine (it was performed then control returned to the calling line and continued).
    Now I'm trying to make sense of everything I have read so far and trying to relate it back to my old school of thinking. I was hoping it would make it easier to retain and I could expand it as I learn and possibly realize that it IS different. I know it's a new way of thinking, but stay with me for minute.
    What I used to call a program is now a CLASS in JAVA (this can be a collection of code or other objects). A sub-routine in a CLASS is a Method. I know that the language part will come as I use it since I understand if's then's and whatever you use to gosub or goto, but I want to make sure I have down the lingo before I go to deep.

    I have no idea how you can compare Java to Cobol.
    DataFlex? How about that! In about '84 I switched to
    DataFlex from dBaseII. In '91 DataFlex changed from
    procedural to OOP. It took most of us at least a year
    to adjust, and then some to write concrete code. It
    was tough. They had bugs and we were limited with DOS.
    BUT, it was a great OOP training experience. Anyhow,
    needless to day Java is miles ahead on all fronts.Small world. I was stuck in the old DataFlex Ver 2.3 at that time. The company I worked for had the newer OOP package. I did get to work with it some, but not enough to become totally familiar with it. We started to move out of DataFlex towards PowerBuilder towards the end of 1995. I did get some OOP from that experience, but again only enough to learn about global variables, instance variables, and a few other items. I hoping that I will be able to get the solid OOP background that I need from JAVA since I hear through the grapevine that it may be a new tool that we will be looking at to enhance our programming. I was looking at PERL but even the PERL programmers we have agree that JAVA is more scalable.

  • Need recommendation for hardware and software

    Hi all,
    I am doing a project related to current control.
    The purpose is to keep the current at constant. So I measure the current and get the value; and send a analog signal to tell our machine to discharge or to charge in order to keep the current at constant. I need to write the program to give analog signal to machine based on the current input.
    Also, the machine can communicate with user. User can monitor the machine operation statuse and current level, etc.
    I want to use LabView to program, since it doesn't cost a lot of time. I saw there is LabView RT LabView FPGA, etc. I am confused whether all of these are just diffrent function for LabView or different software. Which one I should use?
    For hardware, I have no idea what is compactible with LabVeiw. What I should use?
    I am totally new to this. I'll appreciate a lot if anyone can give suggestions.
    Thanks

    I would recommend having a look at the C-Series Modules. You can then either use the USB Single Module Carrier, Wi-Fi Single Module Carrier, the CompactDAQ platform or the CompactRIO platform. Here is a page that gives a detailed explanation:
    C Series Hardware
    For your application, you will definitely need LabVIEW. If you decide to go with the cRIO platform, then you will need LabVIEW RT. If you have any questions after reading through, please ask.
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

Maybe you are looking for

  • What is the best process to backup and rebuild an iMac?

    I have an old iMac running Snow Leopard.  It's starting to show signs of age in how it's been running, so I thought I'd start over with it. I've rebuilt Windows machines but never a Mac.  I have tons of stuff I don't want to lose.  I have Time Machin

  • Compressor 2.3 - Quicktime error:0

    HI All This morning I wake up with this new thing. Im using FCP 5.1.1 and a 15minutes DV Pal sequence, already converted in the past. This morning I've tried to re-encode the sequence using DVD 90 min. High quality and I've got this new message : Qui

  • JDK 1.5 compilation error !!!

    Hi all, My source code looks like this: * Test.java * Created on November 9, 2004, 6:20 PM package test; * @author Administrator public class Test /** Creates a new instance of Test */ public Test() * @param args the command line arguments public sta

  • Mail Stationery Templates

    The 30 or so professionally designed stationery templates that come as standard with the Mail application have disappeared from my computer. I know not how!! I am running OSX v 10.5.8 and Mail version 3.6 (936) Where can I find the templates on my co

  • Won't let me choose who I call, auto connects with...

    It used to be that when I called my to-go number a voice would invite me to choose between calling a contact or entering another number I wished to call--and I used it for making calls mostly to non-contacts. Now there's no voice and automatically it