permaculture playing cards
The moose likes Java in General and the fly likes program running problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "program running problem " Watch "program running problem " New topic

program running problem

salil misra

Joined: Jun 24, 2008
Posts: 5
normally for a c program when it is compiled and run a .exe file is created
if we place that .exe file at the startup the .exe file runs at windows startup

how could we make this scenerio possible with java so that we cud make my java program run at windows startup

please help me out i m in great fix
Norm Radder
Ranch Hand

Joined: Aug 10, 2005
Posts: 692
Make a shortcut with the commandline that will execute your java program and put that in the start folder.
Sachin Joshi
Ranch Hand

Joined: Aug 06, 2008
Posts: 83

Here is what you need to do

1. Create a MyProgram.bat file.
2. first line in the MyProgram.bat file should be

Call this bat file at startup....this should run your program in windows startup.

Web Development Tips and Tutorials - By Sachin
Rob Spoor

Joined: Oct 27, 2005
Posts: 20275


This is the third time I'm warning you. Read your private messages.

Failure to follow instructions may lead to having your account blocked.
[ August 10, 2008: Message edited by: Rob Prime ]

How To Ask Questions How To Answer Questions
I agree. Here's the link:
subject: program running problem
It's not a secret anymore!