izhodzis
izhodzis

Reputation: 69

Despite creating file association, file will not open in my Application

In my registry, for the extension '.conf' I made the (Default) value point to the pathway of my App. However when I try clicking a file with the extension '.conf' the window asking the user to select a program still opens, rather than simply opening the app associated with the extension. Am I declaring something wrong?

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.conf]
@="C:\\Users\\izhodzis\\workspace\\ConfCompiler\\src\\ConfCompiler.jar"

PS. The idea is that it will work on other peoples' computers. They shouldn't need to select "Always use the selected program to open this kind of file"

So I am ok with having this pop up open because... Now I have this when I try to use the Java program

Upvotes: 1

Views: 178

Answers (1)

Jay
Jay

Reputation: 3515

Your regedit should look something like this: PATH_TO_JAVAW -jar PATH_TO_CONFCOMPILER

"C:\\Program Files\\Java\\j2rex.y.z\\bin\\javaw.exe -jar C:\\Users\\izhodzis\\workspace\\ConfCompiler\\src\\ConfCompiler.jar"

That probably won't work but hopefully it would help you further.

Upvotes: 2

Related Questions