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 201849 - Jar file created by NB 7.1 is not runnable
Summary: Jar file created by NB 7.1 is not runnable
Status: RESOLVED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Deployment (show other bugs)
Version: 7.1
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Anton Chechel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-08 17:55 UTC by joemcglynn
Modified: 2011-09-14 17:07 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 joemcglynn 2011-09-08 17:55:59 UTC
Using NetBeans IDE 7.1 Build 201109070600, JDK7u27 and JavaFX B45

1. Set up new platform using JavaFX
2. Create new JavaFX project
3. Run -> OK
4. Clean & build -> OK
5. Double click on jar from windows explorer or attempt to launch using java -jar

//exp: Runs
//act: Fails with error (screen shot attached)

Work around:

Add the following to the project's build.xml file

    <target name="-pre-init">
        <property name="javafx.preloader.class" value=""/>
    </target>
Comment 1 Anton Chechel 2011-09-08 21:02:27 UTC
Works for me in current dev version for both projects with and without preloader.

I think this was fixed by my yesterday's change: http://hg.netbeans.org/jet-main/rev/33903a833766

Currently target "deploy-app" should not be invoked since "preloader-app" property will not be set for project without preloader.

Please test it in tomorrow's daily build.
Comment 2 Anton Chechel 2011-09-14 17:07:33 UTC
fixed
please verify