使用NetBeans从java项目制作可执行文件 [英] making executable file from a java project using NetBeans

查看:236
本文介绍了使用NetBeans从java项目制作可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在NetBeans中创建了一个java项目。现在我想用它制作一个可执行文件。可以在安装了JDK或JRE但没有安装NetBeans或任何其他Java IDE的其他计算机上执行(运行)。我可以使用NetBeans做这样的事情吗? ??

i have created a java project in NetBeans. now i want to make an executable file out of it.that can be executed (run) in other computers that have JDK or JRE installed but don't have NetBeans or any other Java IDE installed.how can i do such thing using NetBeans???

推荐答案

你的意思是把它编译成JAR吗? Netbeans会自动执行此操作,只需执行清理并构建(锤子sybol)并查看项目的 dist 子目录。将有包含所需库的 lib 文件夹的JAR。这些JAR + lib足以运行该应用程序。

Do you mean compile it to JAR? Netbeans does that automatically, just do clean and build (hammer sybol) and look in the dist subdirectory of your project. There will be the JAR with lib folder containing the required libraries. These JAR + lib are enough to run the application.

Maby你取消选中一个选项:

Maby you unchecked an option:

项目属性 - >构建 - >打包 - >编译后构建JAR

(但默认情况下启用)

这篇关于使用NetBeans从java项目制作可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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