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
Similar Messages
-
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 javaFirst take a look at Embedded Server forum (http://forum.java.sun.com/forum.jsp?forum=46) and/or OSGi (http://www.osgi.org)
-
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.
-
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 -
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. -
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.
ThanksThere isn't any core Java API for this. Use JNI or call an external process with Runtime.exec().
~ -
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 ZoeHi,
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 ZoeWelcome 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.
Prashantbut 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.
-
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. -
Program to Set System Time in Java
Is there any way to set the system time through Java. If there is can you help me some information.
Regards,
Shivakumar ThotaHey Hey,
You could run Runtime.exec() to execute a command such as VBScipt to do it.
Other than that you may have to take a look at Java Native Interface(JNI) that will basically take control of doing anything you need.
Also, You may want to post this in "New To Java" or some other forum other than Java Web Start. You'll get more people to help ya.
Hope this helped,
--Ryan -
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 AMHi, 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:"
Maybe you are looking for
-
I basically got this phone about 2 weeks ago and i cannot download or update anything . I would mind it asking for my sisters apple password but she doesn't know it so how do i take it off ? It will ask for mine then a few seconds later it will ask f
-
Hello, I have two Booleans and an alphanumeric string that I want to write to a spreadsheet. The attached code changes the two Booleans to strings, builds an array comprised of the two Booleans and the alphanumeric string and writes the data in a sp
-
What's the correct order to install OEM Grid Control + DB + AS?
Hi everbody! I'm getting start on OracleAS and Grid Control. What's the correct order to install: * Enterprise Manager 10g Grid Control * Database 10gR2 * Application Server 10gR3 (on RHEL4-Upd2) or the order is not important? I need have the environ
-
SAP Archive Link and DMS integration configuration
Hi SAP Gurus, I have always come across that SAP DMS is very well integrated with SAP Archive link, is that means SAP Archive link can be used as an storage location for storing original application files, in normal DMS check in original CV01N transa
-
The other day I was watching videos on youtube through Safari. Later that day and still now it says I have to enable plug-ins under the settings. However there is not a selection to enable plug-ins. Any idea what I can do to fix this. The youtube app