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 156566 - Project does not run: Unknown argument: -encoding
Summary: Project does not run: Unknown argument: -encoding
Status: VERIFIED DUPLICATE of bug 155927
Alias: None
Product: javafx
Classification: Unclassified
Component: Platform (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Adam Sotona
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-11 10:02 UTC by Alexandr Scherbatiy
Modified: 2009-01-14 14:39 UTC (History)
1 user (show)

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 Alexandr Scherbatiy 2009-01-11 10:02:24 UTC
JavaFX_NB_Plugin_Franca_NB_65_fixes_installer: #25 08-Jan-2009 16:35:35

  Product Version         = NetBeans IDE 6.5 (Build 200901071801)
  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 


  Product Version         = NetBeans IDE 6.5 (Build 200901071801)
  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.


- Run the project

---------------------------------------------------------------------------
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: javafxapplication5/Main
Caused by: java.lang.ClassNotFoundException: javafxapplication5.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: javafxapplication5.Main.  Program will exit.
Exception in thread "main" 
Exception in thread "main" BUILD FAILED (total time: 0 seconds)
Comment 1 Adam Sotona 2009-01-12 11:12:51 UTC
This is still outdated JavaFX SDK. It should be fixed soon.
Please test the builds with the fresh SDK.
Comment 2 Alexandr Scherbatiy 2009-01-12 11:18:39 UTC
It is also reproduced in build JavaFX_NB_Plugin_Franca_NB_65_fixes_cont:  #20 	12-Jan-2009 13:26:24
Does it mean that the build _Franca_NB_65_fixes_cont does not contain the fresh SDK?
Comment 3 Alexandr Scherbatiy 2009-01-12 11:48:04 UTC
Is it a known compiler issue?
Comment 4 Adam Sotona 2009-01-12 13:26:33 UTC

*** This issue has been marked as a duplicate of 155927 ***
Comment 5 Alexandr Scherbatiy 2009-01-12 16:07:08 UTC
JIRA issue http://javafx-jira.kenai.com/browse/INFR-17
Comment 6 Alexandr Scherbatiy 2009-01-14 14:39:30 UTC
verified in JavaFX_NB_Plugin_Franca_NB_65_fixes_cont: #28 14-Jan-2009 16:26:31