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,
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
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,
davud97 (April 1st, 2010)
... not sure what you mean by running from "system boot". You can run java programs using the following commands:
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.
davud97 (April 1st, 2010)
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 ?
davud97 (April 1st, 2010)
No, the JVM needs to run with the OS.
davud97 (April 1st, 2010)
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
davud97 (April 1st, 2010)
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
davud97 (April 1st, 2010)
hello
but i am reading in a book that java can create an Operating System . i want to progranmming this for my thesis.
davud97 (April 1st, 2010)