Executing/Running a Java app

theProphecy

Newbie

Posts: 5

Loc: Denmark

3+ Months Ago

Well, might sound easy! And it propably is...
But this is my problem: i need a way to execute/run a Java app.
The tricky thing is, that first of all, its for Windows. (Not that i ONLY develop it for Windows, but this way of executing the Java App is for Windows).
It's because when i pack up my app's in a package (zip,rar,gzip,tar...), i whant to put in a shortcut (for Windows) and a runnable script (for Linux), so that nomatter what OS your running, you'll be able to run my app.
The next thing, is that i put a JRE together with it in tha "pack", so that the person using the app, doesn't need to have a JVM installed.
But the big problem is in Windows, because i can't get the shortcut's to point to the folder, from where they are executed.
So i was thinking if there is any other way to run the Java App in windows, for example a .exe file, that just starts the Java app.

This is most likely possible, the only thing is how do i do it? And if it is possible, then i don't have any C/C++/C# compiler/ide/editor, so if it possible to make a .exe, then i would be really happy if i also could get some url's to a developing tool for the language (whatever the .exe needs to be written in). And im not really into C/C++/C#, so if someone could demonstrate it for me!

I hope someone can help me out here.. It would make me a happy man!

theProphecy

Newbie

Posts: 5

Loc: Denmark

3+ Months Ago

Right... Sorry, i missed out, i know that a Batch file would do the job.