2012-07-14 2 views
0

프로젝트의 하나의 패키지 만 jar 파일을 만듭니다. 내 프로젝트에 속한 패키지 한 개만 만들 것입니다. 이 패키지에는 기본 클래스가 포함되어 있습니다. 어떻게해야합니까? jar documentation에서netbeans ide

+0

어의'jar' 명령 :

jar cf jar-file input-file(s) ... * The input-file(s) argument is a space-separated list of one or more files that you want to include in your JAR file. The input-file(s) argument can contain the wildcard * symbol. If any of the "input-files" are directories, the contents of those directories are added to the JAR archive recursively. 

그래서 당신은 패키지와 같은 경로를 지정할 수 있을까? –

+0

병을 가동시킬 수 있습니까? – plasma147

+0

예. 항아리를 실행할 수 있습니다. 나는 많은 패키지가있는 프로젝트가 있음을 의미합니다. 주를 포함하는 패키지 하나만 만듭니다. – Mazzy

답변

1

:

jar cf <jar file name> com/companyname/package/ 
관련 문제