hello to all
i want to run a java programs (.class file) from system boot .
i'm java beginner programming , please help me to do this work.
thank full,
Printable View
hello to all
i want to run a java programs (.class file) from system boot .
i'm java beginner programming , please help me to do this work.
thank full,
... not sure what you mean by running from "system boot". You can run java programs using the following commands:
Code :java -classpath my_class.class
note that you must supply the appropriate path for the class (either through relative pathing or absolute pathing).
To run programs from OS startup is highly dependent on the OS. On windows, I believe it's done by going to the task scheduler (vista or newer), and then telling it to run a task on user login. Ubuntu linux has a gui for which applications should be started at login/startup.
hello
thank you for your answer
i want to programming a java boot programs , that means after booting system (no OS) automatically running a java program .
in fact, i want to know that Java Vitural Machine is running in system boot or no ?
No, the JVM needs to run with the OS.
hello
in fact , i want to programming a simple and small Operating system ,
i write a few class file . now , i want to this files runing from system boot load.
please help me that do i this work ?
and put name of software and books that i need .
thank full
This is not possible using Java, you would need to start up some kind of JVM the first thing you do in order to run a Java program and just the fact that you are writing your own OS will probably make everything in the Java SDK not work anyways because Java has been designed and implemented towards certain operating systems.
Writing your own OS required some ASM and C code, there are some examples out there on how to get your own boot loader to work and how to hook into the interrupts of the keyboard etc.
Conclusion anyways is that you can just forget about Java if you want to write your own OS.
// Json
hello
but i am reading in a book that java can create an Operating System . i want to progranmming this for my thesis.