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 155927 - [Latest SDK] Projects do not run
Summary: [Latest SDK] Projects do not run
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Deployment (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Adam Sotona
URL:
Keywords:
: 156566 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-12-22 10:57 UTC by Alexandr Scherbatiy
Modified: 2009-01-14 13:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log file (39.50 KB, text/plain)
2008-12-22 10:57 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-12-22 10:57:10 UTC
JavaFX_NB_Plugin_Franca_NB_65_fixes_latest_SDK_installer: #6 22-Dec-2008 00:38:06

  Product Version         = NetBeans IDE 6.5 (Build 200812180656)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_11; Java HotSpot(TM) Client VM 11.0-b16; Sun Microsystems Inc.


Steps to reproduce:

- Create a JavaFX Script project
- Run the project
The project does not run:
 Unknown argument: -encoding


Output:
----------------------------------------------------------------------------------------
init:
deps-jar:
Unknown argument: -encoding

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]                               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
-sign                                                          builds signed application
-draggable                                                     makes application draggable from Web browser
-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

-pack200                                                       compress application using pack200
-help                                                          prints this help screen
-version                                                       prints JavaFX Toolchain version number

sample usages:
--------------
javafxpackager -src ./mysources -appClass mypackage.MyApplication -sign -pack200 -draggable
  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:
java.lang.NoClassDefFoundError: javafxapplication12/Main
Caused by: java.lang.ClassNotFoundException: javafxapplication12.Main
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: javafxapplication12.Main.  Program will exit.
Exception in thread "main" 
Exception in thread "main" BUILD FAILED (total time: 0 seconds)
----------------------------------------------------------------------------------------
Comment 1 Alexandr Scherbatiy 2008-12-22 10:57:36 UTC
Created attachment 75239 [details]
IDE log file
Comment 2 Adam Sotona 2009-01-02 08:07:52 UTC
There is an issue in the latest SDK changes propagation into the plugin builds.
This option has been already implemented but we have to wait until it appears in the SDK builds.
Comment 3 Adam Sotona 2009-01-12 13:26:26 UTC
*** Issue 156566 has been marked as a duplicate of this issue. ***
Comment 4 Alexandr Scherbatiy 2009-01-14 13:58:08 UTC
verified in JavaFX_NB_Plugin_Franca_NB_65_fixes_latest_SDK: #42 14-Jan-2009 00:11:09