wood burning stoves 2.0*
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
Author

program running problem

salil misra
Greenhorn

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: 685
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
Sheriff

Joined: Oct 27, 2005
Posts: 19653
    
  18

"SachinJoshi",

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 ]

SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: program running problem
 
Similar Threads
How to automaticlly start an application
running a java program
Making a Java Executable Program
How to run a commandline command from a java program
Java Portability ?