You need a executable jar file. See how to create a jar file or Get the demo jar Once your jar file is ready. Step 1: Create a bat file with any name. Step 2: Write the following line in you bat file.
start javaw -jar Drive:\<path>\AutoRun.jar
If you want to hold the black screen. Use the following […]
To Run jar file on windows startup you first need to create a executable jar file. See how to create a jar file or Get the demo jar Once your jar file is ready. Put you jar file in startup folder C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup Restart your computer now and this jar file run when computer starts
You can do this by using eclipse. Step 1: Create a project. I have created a project with name “autorun” Step 2: Right click on project > select Export You will see export options select JAR file, then click next Step 3: Select the resource to export. Give export destination. Step 4: Click […]