Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello Friends.....
I have created a GRAPHICAL PASSWORD BASED AUTHENTICATION SYSTEM as part of my final year B.E project. This system uses images as a password to authenticate the user. Now i want to attach the jar file of my project to a folder in Windows XP. Suppose i have a folder named 'ABC'...So double clicking on 'ABC' should open my project....and if the user logins successfully, the contents of the folder should be shown. Can please anyone help me with this matter?
Any other suggestion will also be welcomed...
Posted

1 solution

The Java Runtime (JRE) must be in your PATH variable (Environment variables) of machine: How to do that on any machine[^]

Then you can double click a JAR and - if it is a runnable JAR - the machine should open it.

The rest is simple: After your login procedure let your application run the native windows "explorer.exe" with the path to the folder 'ABC' as an argument.
 
Share this answer
 
Comments
ChiragL 10-Apr-12 11:29am    
Thank you TorstenH.....
But I have already done this and this is not what i want....I want that my JAR file should run after double clicking 'ABC' folder...and if login procedure is successfull...the contents of the 'ABC' should be shown...
Its like a protected WORD document....the document opens...asks for password and then contents are shown......
TorstenH. 10-Apr-12 11:47am    
That is OS functionality. You can't get in between that. There might be a possibility within C programming, I'm not firm with that. But that would be C programming anyway.

What you can do is to create your own file browser and to hide the files in some kind of Directory Service.
ChiragL 10-Apr-12 13:22pm    
Ok....thank you once again for helping...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900