简体   繁体   中英

How to properly attach .Jar file into HTML

我有一个Java(NetBeans IDE)程序,该程序接受带有.zip文件的名为“ Data”的文件夹作为数据集,然后对gi窃进行一些重大比较,并将结果提取到文件夹“ Results”中的.txt文件中(没有程序中的GUI)。我用Clean and Build创建了一个.jar文件,如果我双击它,它可以正常运行,而且也可以在CMD中正常运行。我如何将其嵌入HTML中? chkSubmission是主要类。我在程序中尝试了几乎所有公共类。我将Netbeans的dist文件夹包含在HTML页面的文件夹中。

(there is no GUI in program) .. How can i embed this in HTML?

You can't. The only Java classes that can be embedded in HTML are java.applet.Applet and javax.swing.JApplet . Both are GUIs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM