Click to See Complete Forum and Search --> : Open with...


agent_x91
04-21-2007, 05:55 PM
Just to check if anyone knows if this is possible (although I doubt it). I have made a scripting interpretation system, and ideally I want to be able to make files of type .lcs (my script extension) open with a JAR file which will then run the script through the interpretation class.

However, since JAR files themselves are opened with a program (i.e. javaw.exe), and generally a program specified as the "open with" program for a file type needs to be a valid Win32 application (which a jar file isn't) I'm not sure if this is actually possible.

Does anyone know how this could be possible? If it's not, I may simply make a C++ application which simply forwards the path of the script opened straight on to the java application, but I'd like to avoid having to do this if possible.

I'm using Windows XP Professional by the way.

agent_x91
04-21-2007, 06:29 PM
Hmm I'm going to compile my code with a native compiler, hopefully that should solve my problem. I'll let everyone know if it works well :)

agent_x91
04-21-2007, 08:06 PM
It took me forever to get a working native compiler (and that was on 30-day trial anyway :\) but i now have a working .exe file and have set up the script files to run using my interpreter and be editable using my editor :)

I used Excelsior JET, incase anyone's interested.