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 149925 - [MAC] Projects do not run: Unknown argument
Summary: [MAC] Projects do not run: Unknown argument
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P1 blocker (vote)
Assignee: Andrey Yamkovoy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-13 11:01 UTC by Alexandr Scherbatiy
Modified: 2011-10-19 12:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log file (41.97 KB, text/plain)
2008-10-13 11:10 UTC, Alexandr Scherbatiy
Details
IDE log file (41.97 KB, text/plain)
2008-10-13 11:10 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2008-10-13 11:01:25 UTC
Steps to reproduce:

- Create a JavaFX Script project
--------------------------------------------
import javafx.stage.Stage;
import javafx.scene.Scene;

Stage {
    title : "MyApp"
    width: 200
    height: 200
    scene: Scene {
        content: [  ]
    }
}
------------------------------------
- Run the project

init:
deps-jar:
Unknown argument: 

JavaFX Packager arguments:
---------------------------
-src | -sourcepath <source root1>[;<source root2>...]          at least 1 source root is required
-cp | -classpath | -librarypath <library1>[;<library2>...]     optional
-res | -resourcepath <resource root1>[;<resource root2>...]    optional
-d | -destination <target directory>                           default target directory is ./dist
-workDir <working directory>                                   optional
-v | -verbose                                                  enables verbose output
-p | -profile [DESKTOP | MOBILE | EMBEDDED]                    default profile is DESKTOP
-appName <application name>                                    default application name is application class name
-appVendor <application vendor>                                default application vendor is "user.name" Java system property
-appVersion <application version>                              default application version is 1.0
-appClass <application class>                                  mandatory argument
-appWidth <applet width>                                       default applet width is 200
-appHeight <applet height>                                     default applet height is 200
-appCodebase <application code base URL>                       default code base is empty
-keystore <keystore for signing>                               temporary self-signature is created when keystore is not specified
-keystorePassword <password>                                   mandatory when signing with specific keystore
-keyalias <alias>                                              mandatory when signing with specific keystore
-keyaliasPassword <password>                                   keystorePassword is used instead when not specified

-help                                                          prints this help screen
-version                                                       prints JavaFX Toolchain version number

sample usages:
--------------
javafxpackager -src ./mysources -appClass mypackage.MyApplication
  builds all JavaFX and Java sources according to default DESKTOP profile specification into ./dist/MyApplication.html, ./dist/MyApplication.jnlp, 
./dist/MyApplication.jar and ./dist/MyApplication.jar.pack.gz

javafxpackager -src ./mysources -appClass mypackage.MyApplication -p mobile
  builds all JavaFX and Java sources according to MOBILE profile specification into ./dist/MyApplication.jad and ./dist/MyApplication.jar

compile:
jar:
standard-run:
Exception in thread "main" java.lang.NoClassDefFoundError: javafxapplication2/Main
Java Result: 1
browser-run:
jws-run:
midp-run:
run:
BUILD SUCCESSFUL (total time: 1 second)
Comment 1 Alexandr Scherbatiy 2008-10-13 11:09:59 UTC
JavaFX_trunk_NB_Plugin_NB65_cont: #342 	2008-10-13_12-42-21.zip

  Product Version         = NetBeans IDE Dev (Build 200809251401)
  Operating System        = Mac OS X version 10.5.5 running on x86_64
  Java; VM; Vendor        = 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52; Apple Inc.
Comment 2 Alexandr Scherbatiy 2008-10-13 11:10:31 UTC
Created attachment 71654 [details]
IDE log file
Comment 3 Alexandr Scherbatiy 2008-10-13 11:10:35 UTC
Created attachment 71655 [details]
IDE log file
Comment 4 Adam Sotona 2008-10-13 12:30:24 UTC
I've fixed it on both sides (javafxpackager and NetBeans plugin).
Comment 5 Alexandr Scherbatiy 2008-10-27 14:17:55 UTC
verified in 2008-10-27_03-01-09.zip 
Comment 6 David Strupl 2011-10-19 12:05:04 UTC
Cleaning bugzilla categories ....