This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 233545 - MANIFEST file inside jar doesn't include JavaFX-Class-Path references to dependencies, so the project fails to run.
Summary: MANIFEST file inside jar doesn't include JavaFX-Class-Path references to depe...
Status: RESOLVED DUPLICATE of bug 233456
Alias: None
Product: javafx
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.4
Hardware: PC All
: P3 normal (vote)
Assignee: Petr Somol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-27 19:31 UTC by darkness_s
Modified: 2013-07-30 10:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description darkness_s 2013-07-27 19:31:38 UTC
This is similar to bug 205844, although this applies to NetBeans 7.4 beta.

I have a JavaFX project that I was working on in Netbeans 7.3.1. When I open this project with Netbeans 7.4 Beta and try do run it, it compiles but throws the following exception when it tries to execute it:

Caused by: java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64

The Apache Commons commons-codec-1.6.jar is added to the project. I did some digging up and the MANIFEST.MF inside the jar contains the following:

Manifest-Version: 1.0
JavaFX-Version: 2.2
Implementation-Vendor: david
Implementation-Title: ProjectAuroraFX
Implementation-Version: 1.0
JavaFX-Application-Class: projectaurorafx.ProjectAuroraFX
JavaFX-Class-Path: 
Created-By: JavaFX Packager
Main-Class: com/javafx/main/Main

While the same jar file generated by Netbeans 7.3.1 has:

Manifest-Version: 1.0
JavaFX-Version: 2.2
implementation-vendor: Tres Factorial
implementation-title: ProjectAuroraFX
implementation-version: 1.0
JavaFX-Application-Class: projectaurorafx.ProjectAuroraFX
JavaFX-Class-Path: ProjectAuroraFX.jar lib/commons-codec-1.6.jar lib/commons-c
 ollections-2.1.1.jar lib/commons-digester-2.1.jar lib/commons-javaflo
 w-20060411.jar lib/commons-logging-1.1.1.jar lib/joda-time-2.2.jar lib/mariadb-java-client-1.1.3.jar lib/poi-3.9
 -20121203.jar
Created-By: JavaFX Packager
Main-Class: com/javafx/main/Main

It's clear that the "JavaFX-Class-Path" attribute in the MANIFEST file is not being correctly generated by Netbeans 7.4 while it's fine when using Netbeans 7.3.
Comment 1 Petr Somol 2013-07-30 10:03:15 UTC

*** This bug has been marked as a duplicate of bug 233456 ***