---
title: "NetBeans导出jar"
author: "strutsliu"
date: "2013-06-09T23:26:34Z"
tags: []
categories: ["开源软件"]
slug: "netbeans-jar"
draft: false
lastmod: "2013-06-09T23:27:48Z"
id: 1885102
url: "https://strutsliu.iteye.com/blog/1885102"
---

1.Setting the Main Class（设定主类）
选定项目，右键，选择" Properties"（属性），在"Run"（运行）面板上选择"Main Class"(主类)，如clock.Clock
2.Building the Project (构建项目)
之前未构建项目时选择“构建项目”，如果之前已经构建过，就选择“清理并构建项目”
这时PROJECT_HOME/dist 目录下就会出现jar了

原文：https://netbeans.org/kb/docs/java/javase-deploy.html#createjar