如何从autohotkey脚本运行java .class文件? [英] how to run java .class file from an autohotkey script?

查看:196
本文介绍了如何从autohotkey脚本运行java .class文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从提供一些命令行参数的脚本运行java .class文件?该脚本使用autohotkey框架构建。我们可以从脚本中触发执行.class文件吗?如果我错了,请告诉我。

How to run java .class file from a script providing some command line parameters? The script is built using autohotkey framework. Can we trigger the execution of .class files from a script? Please let me know if I am wrong.

推荐答案

我不熟悉autohotkey,但是如果你的命令行是

I am not familiar with autohotkey, but if your command line is something like

java -cp <yourclasspath> <yourclassname> <yourarguments>

我想你很高兴。

ADDITION:

在我看来,运行指令允许您这样做。假设在 C:\ mypath 中有 MyClass.class 文件(默认包中包含MyClass),我期待你必须发出类似

It seems to me that the Run directive allows you to do that. Assuming to have your MyClass.class file (with MyClass in the default package) in C:\mypath, I expect you have to issue something like

Run,java -cp . MyClass,C:\mypath

我无法验证上述行,因为我不知道有一个Windows安装。

I am not able to verify the above line, since I do not have a Windows installation at hand.

这篇关于如何从autohotkey脚本运行java .class文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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