2013-04-30 3 views
2

javafx 앱을 .app (Mac 용)에 설치하는 데 어려움을 겪고 있습니다. 내가 할 수있는 합법적 인 방법을 찾았습니다. 리소스는 여기에 있습니다. http://docs.oracle.com/javafx/2/deployment/deploy_quick_start.htm 그러나 내가 찾고있는 것과는 거리가 멀습니다. 이 튜토리얼을 따르면 javafx 프로젝트에서 애플리케이션을 빌드 할 수 있었지만 파일의 크기는 우스 꽝 스러운데 전체 JRE가 내부에 번들되기 때문입니다. 이제는 .app 파일 을 종속성과 함께 배포하는 방법을 찾고 있습니다. (중요) 및 (JRE 제외). JRE는 사용자가 사전 설치해야합니다. 그렇게 할 수있는 방법이 있습니까? 나는 정말로 하나 찾으려고했지만 실패했다. 당신, 얘들 아, 내가 도와 줘. JRE를 포함하지 않고 기본 설치 응용 프로그램으로 자바 FX 애플리케이션을 포장하기위한JRE없이 Netbeans javafx mac 번들

답변

2

방법 :

JavaFX packaging tools update - Self-Contained Applications: Create Package without Java Runtime.

사용 된 도구는 질문에 언급 된 deployment quick start과 동일합니다. fx:platform basedir=""을 설정하기 만하면됩니다.

난 그냥 여기에 글을 인용합니다 :

This may sound a bit puzzling at first glance. Package without embedded Java Runtime is not really self-contained and obviously will not help with:

  • Deployment on fresh systems. JRE need to be installed separately (and this step will require admin permissions).
  • Possible compatibility issues due to updates of system runtime.

However, these packages are much much smaller in size. If download size matters and you are confident that user have recommended system JRE installed then this may be good option to consider if you want to improve user experience for install and launch.

Technically, this is implemented as an extension of previous feature. Pass empty string as value for 'basedir' attribute and this will be treated as request to not bundle Java runtime, e.g.

<fx:platform basedir=""/> 
+0

이것은 최적의 솔루션처럼 보인다. 그러나 어떤 이유로 그것은 작동하지 않습니다. Neatbeans는 오류를 발생시킵니다 : fx : platform은 "basedir"속성을 지원하지 않습니다. 최신 JDK를 사용하고 있습니다. 어떤 아이디어? – ksarunas

+0

NetBeans는 JavaFX 배포 도구의 모든 기능을 지원하지 않습니다. 명령 줄에서 ant 기반 JavaFX 배포 작업을 직접 실행하여 NetBeans 외부에서 시험해보십시오. – jewelsea

+0

나는이 해결책을 직접 시도하지 않았다. 나중에 집에있는 OS X 상자에서 나중에 사용해 보겠습니다. – jewelsea

관련 문제