双击Windows XP中的文件夹运行jar文件 [英] Running a jar file on double clicking a folder in Windows XP

查看:73
本文介绍了双击Windows XP中的文件夹运行jar文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友.....
作为我最后一个B.E年项目的一部分,我创建了一个基于图形密码的身份验证系统.该系统使用图像作为密码来验证用户身份.现在,我想将项目的jar文件附加到Windows XP中的文件夹中.假设我有一个名为"ABC"的文件夹...因此,双击"ABC"应会打开我的项目....如果用户成功登录,则应显示该文件夹的内容.请任何人可以帮助我解决这个问题吗?
其他建议也将受到欢迎...

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...

推荐答案

Java运行时(JRE)必须位于计算机的PATH变量(环境变量)中:如何在任何计算机上执行该操作 [
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.


这篇关于双击Windows XP中的文件夹运行jar文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆