Questions tagged [startup]

Startup usually refers to the processes or events that occur at the start of a program, at the beginning of execution of a code block, or when a device is first booted.

2846 questions
332
votes
34 answers

Cannot run Eclipse; JVM terminated. Exit code=13

I just append -vm C:\Program Files\Java\jre6\bin\javaw.exe in eclipse.ini then I try to start eclipse again and got this error. Give me how to solve or link that actually solve it. this is my eclipse.ini -startup…
Prince OfThief
  • 6,323
  • 14
  • 40
  • 53
272
votes
4 answers

How to prevent docker from starting a container automatically on system startup?

Docker starts a container on every system startup (debian) but I didn't create a service to do so. How can I prevent docker from doing that?
Techradar
  • 3,506
  • 3
  • 18
  • 28
269
votes
6 answers

How to call a method after bean initialization is complete?

I have a use case where I need to call a (non-static) method in the bean only-once at the ApplicationContext load up. Is it ok, if I use MethodInvokingFactoryBean for this? Or we have a some better solution? As a side note, I use…
peakit
  • 28,597
  • 27
  • 63
  • 80
268
votes
9 answers

How do I start my app when the phone starts on Android?

I tried using the sample code in this tutorial but it seems outdated and it did not work. So what changes do I have to make and to what files to have my app start automatically when Android finishes booting up?
Poojan
  • 3,312
  • 4
  • 20
  • 23
214
votes
20 answers

Spring Boot application as a Service

How to configure nicely Spring Boot application packaged as executable jar as a Service in the Linux system? Is this recommended approach, or should I convert this app to war and install it into Tomcat? Currently, I can run Spring boot application…
MariuszS
  • 30,646
  • 12
  • 114
  • 155
175
votes
11 answers

Speed up Spring Boot startup time

I have a Spring Boot application. I've added a lot of dependencies (unfortunately, looks I need all of them) and the startup time went up quite a lot. Just doing a SpringApplication.run(source, args) takes 10 seconds. While that might not be much…
steady rain
  • 2,246
  • 3
  • 14
  • 18
157
votes
4 answers

What is the use of _start() in C?

I learned from my colleague that one can write and execute a C program without writing a main() function. It can be done like this: my_main.c /* Compile this with gcc -nostartfiles */ #include void _start() { int ret = my_main(); …
SimpleGuy
  • 2,764
  • 5
  • 28
  • 45
150
votes
4 answers

Error starting Tomcat from NetBeans - '127.0.0.1*' is not recognized as an internal or external command

Both Google and Stackoverflow have shown me people with similar issues however this error is slightly different in that the IP address is suffixed with an asterisk: NetBeans 8.0.1 is giving me the following error when trying to start…
user835745
  • 1,974
  • 3
  • 17
  • 18
140
votes
1 answer

Automatically run a program on startup under Linux Ubuntu

I'd need a program to be run every time I start up my Ubuntu Linux. So I'd need to add it to my startup programs list. Just one problem: I'd need to do it via the terminal.
Matteo Monti
  • 8,362
  • 19
  • 68
  • 114
109
votes
5 answers

ElasticSearch start up error - the default discovery settings are unsuitable for production use;

I have tried giving the following configurations in the elasticsearch.yaml file network.host: aa.bbb.ccc.dd that being my IPv4 Address and http.port: 9200 The response to this is as follows when I try to run elasticsearch.bat on my windows…
SSB
  • 1,572
  • 2
  • 10
  • 12
105
votes
4 answers

How to force Android Studio to start with the welcome screen?

is it possible to let Android Studio start into the welcome screen instead of directly loading the last recent project? I´ve not really the fastest pc and I often need to switch between projects, its really annoying sometimes.
Marian Klühspies
  • 15,824
  • 16
  • 93
  • 136
91
votes
9 answers

Run Batch File On Start-up

Is there a way to start multiple programs in a batch file on system start-up? In addition to that, in that batch file, I would like to be able to say: Once I execute a program, wait until that program completely loads, and execute the next listed…
Randomishlying
  • 1,161
  • 2
  • 9
  • 15
85
votes
9 answers

How to run a program automatically as admin on Windows 7 at startup?

I created my own parental control app to monitor my kids activity. The app's only GUI is a task bar icon. The program is installed as admin. I'd like this program to be started up automatically as admin user on Windows startup, so that standard…
newman
  • 6,841
  • 21
  • 79
  • 126
78
votes
5 answers

How to auto-load MySQL on startup on OS X Yosemite / El Capitan

After upgrading OS X my install of MySQL stopped loading on startup. This walk-through on MySQL says: "The Startup Item installation adds a variable MYSQLCOM=-YES- to the system configuration file /etc/hostconfig. If you want to disable the …
Justin
  • 26,443
  • 16
  • 111
  • 128
75
votes
25 answers

Error: Selection does not contain a main type

I am trying to run some java files in a new project. So I make the project, put the files in it and I try to run the main file so my game starts. I get an error that says selection does not contain a main type. I have tried several ways to run…
user2321611
  • 1,049
  • 1
  • 7
  • 17
1
2 3
99 100