I know that .bat isnt java, but I dont know were else to place this thread

So ive finished my program, has sounds, images and other junk all in a folder on my desktop.

as soon as you open the folder you can see the file program.java and also folders with images and sounds.

on my desktop i want to make a .bat file that when i click on it it open the program.java in the folder and runs it?

im never made a .bat file

how do i accomplish this?

I know that .bat isnt java, but I dont know were else to place this thread

So ive finished my program, has sounds, images and other junk all in a folder on my desktop.

as soon as you open the folder you can see the file program.java and also folders with images and sounds.

on my desktop i want to make a .bat file that when i click on it it open the program.java in the folder and runs it?

im never made a .bat file

how do i accomplish this?

check here:http://www.velocityreviews.com/forums/t127584-how-to-create-a-batch-file-to-run-a-java-application.html and perhaps here:http://www.coderanch.com/t/385909/java/java/Running-Java-program-bat-file , jsut remeber rename your batch textfile to *.bat or else it wont execute :D

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.