awent0428
Posts: 9
Joined: Mon Oct 20, 2014 1:46 am

Running a program on start up

Mon Oct 20, 2014 1:59 am

Note: I do not own a Raspberry Pi, yet. I am doing research on it and plan on getting one soon.
Here is the question: Can I have just one program start up when the Pi without having to code a whole operating system? I have a program that I developed in Panda3D using Python and Java, and I want it to be the only thing that runs when the Pi is booted. How could this be done?
Installer(Compiled version): http://www.mediafire.com/download/b7856 ... x/PyVa.exe
Rar(Not compiled): http://www.mediafire.com/download/p9kvi ... 4/PyVa.rar

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Running a program on start up

Mon Oct 20, 2014 9:25 am

awent0428 wrote:Note: I do not own a Raspberry Pi, yet. I am doing research on it and plan on getting one soon.
Here is the question: Can I have just one program start up when the Pi without having to code a whole operating system? I have a program that I developed in Panda3D using Python and Java, and I want it to be the only thing that runs when the Pi is booted. How could this be done?
Installer(Compiled version): http://www.mediafire.com/download/b7856 ... x/PyVa.exe
Rar(Not compiled): http://www.mediafire.com/download/p9kvi ... 4/PyVa.rar
If you have a completely self-contained binary executable that will run on the RPi's ARM processor you don't need to run a Operating System (OS) at all. This is the realm of 'Bare Metal' and reading topics in that sub-forum may help. But that is probably not what you have.

If your program requires the services provided by an OS you do not have to 'code a whole OS' - there are several distributions based on linux and one based on RiscOS freely available to download, install and use.

If you use the OS recommended by the Raspberry Pi Foundation - Raspbian - then it is trivial to start a program when the OS starts up. It is documented here.

But note that a file with an extension of .exe is likely to be a binary executable for the Windows OS running on 'wintel' hardware, and thus completely inappropriate for the RPi - whether as bare metal or via an OS. If you have the java source you may still be able to run it, as java and python are installed by default with the Raspbian OS.

Return to “General discussion”