Javafx 1.1linux netbeans
Just tried following Weiqi Gao's instructions for manually integrating the nbms
- http://www.weiqigao.com/blog/2008/12/11/javafx_1_0_on_linux_netbeans_plugin.html
.... and the nbms from
http://updates.netbeans.org/netbeans/updates/6.5/uc/final/stable/patch2/javafx2/
There seems to be an issue with the JavaFX Platform module and - "No plugin providing the capability javafx.sdk.v1_1 could be found".
Has anyone managed to to get this to work?
This whole javafx linux (netbeans) problem is becoming a real pain
Please goto [http://java.dzone.com/tips/javafx-11-linux-netbeans]
You can debug JavaFX on Linux.
Similar Messages
-
JavaFX and the Netbeans platform
Hi,
Quick question...does anyone know if there are any plans or ongoing work to port the netbeans platform to JavaFX?
NuwandaNuwanda, take a look at these links, perhaps they can help you:
http://blogs.oracle.com/geertjan/entry/deeper_integration_of_javafx_in
http://netbeans.dzone.com/javafx-2-in-netbeans-rcp
http://blogs.oracle.com/geertjan/entry/a_docking_framework_module_system
http://blogs.oracle.com/geertjan/entry/thanks_javafx_embedded_browser_for
I think the Netbeans RCP JavaFX strategy would be to enhance Netbeans RCP to provide better support for embedding JavaFX scenes in the platform.
Converting the platform to be written in JavaFX rather than Swing would not make much sense - such as thing would actually be a completely new platform in it's own right. -
JavaFX in a netbeans NBM module
Does anyone have an example that uses javafx in a netbeans module. JavaFX and the Netbeans platform could be a strong combination.
Please goto [http://java.dzone.com/tips/javafx-11-linux-netbeans]
You can debug JavaFX on Linux. -
New javafx properties in netbeans.
Hi everybody,
Is there a way to let netbeans automatically generate the new type of getters and setters for the javafx Property objects simply by selecting the Property fields in the code?
The same way it is done in eclipse.
I tryed using the "add JavaFx property" but this allows only to add a single javafx property at a time, but is not so convenient to add the various properties one by one this way.
Thanks!Hi everybody,
Is there a way to let netbeans automatically generate the new type of getters and setters for the javafx Property objects simply by selecting the Property fields in the code?
The same way it is done in eclipse.
I tryed using the "add JavaFx property" but this allows only to add a single javafx property at a time, but is not so convenient to add the various properties one by one this way.
Thanks! -
Profiling JavaFX project with Netbeans
Hello,
I'm trying to profile my application with the built-in netbeans profiler.
But when I click the 'Run' button, the message 'Connecting to the target VM...' does not disappear anymore...
What could be the problem?
thanksI've installed a 64 bit JDK and additionally a JRE , where I'm not sure if this is 32 or 64 bit.. I thought having downloaded a 64 bit version, but the system wanted to locate it in the 'Program Files (x86)' folder (Win 7).
The jvisualvm does not really support my javafx applications.
They're listed as <Unknown application> and eg. at the 'System properties' tab only the message 'Not supported for this JVM' is shown.
Tell me if you need some more informations viewed in jvisualvm!
thanks
P.S. i had massive problems with installing the java staff under Win 7. After first installation java did not work in Firefox. So I had to experiment with uninstalling / installing again and the env variables. Now it works with Firefox too and all my apps can be run in netbeans. But the Java symbol in the Control Panel does not work, and the 'java -version' command results in " Error: could not open `C:\Java\jre6_x86\lib\amd64\jvm.cfg' "
amd64 in the path ?? I have Intel. I'm really scared ..... -
Create web service client for javafx project in netbeans 6.8
I here have a javafx project and need to create a web service client for it (in netbeans 6.8).
However when I right click this project -> new -> web service client -> input wsdl location\package -> finish, it seems that the client code is never generated. This is quite different from what happens when creating web service client for a java project.
Anyone knows how is this happening?Thanks for your reply.
I did write my own ws client code but I need to create a web proxy based on an appointed wsdl path. That requires me to create a web service client from netbeans 6.8, like what I described in my first post. Unfortunately, it's not behaving like what I imagined it should do for a java project, even the javafx file itself doesn't have any error. The error occurs in package definition line.
package fx;For the definition above, it cannot access java.lang.builtins.
The question now is about the possibility to include javafx file in an non-javafx, say, java project. Any comments?
---Regards. -
Media viewing when running JavaFX on NetBeans in Windows 7
I'm having trouble loading video in a JavaFX MediaPlayer via NetBeans on Windows 7. Media seems to load and play correctly when I launch the player through Java Web Start (without NetBeans), but not when I run it in NetBeans. The same code also works fine when I test it in NetBeans on Windows Vista. Is this a known issue? Any workarounds?
Here is the code snippet:
def mediaPlayer: MediaPlayer = MediaPlayer {
media : Media {
source : "http://www.jhepple.com/support/SampleMovies/WindowsMedia.wmv"
autoPlay: true
}and the error output:
java.lang.UnsatisfiedLinkError: com.sun.media.jmcimpl.plugins.directshow.DShowEngine.ndsInit()Z
at com.sun.media.jmcimpl.plugins.directshow.DShowEngine.ndsInit(Native Method)
at com.sun.media.jmcimpl.plugins.directshow.DShowEngine.nInit(DShowEngine.java:234)
at com.sun.media.jmcimpl.plugins.directshow.DShowProvider$1.run(DShowProvider.java:206)
at java.security.AccessController.doPrivileged(Native Method)
...My test platforms are:
Windows 7 (64-bit), NetBeans 6.7.1 and 6.8 RC1, and Java 6u17
Vista (32-bit), NetBeans 6.7.1, and Java 6u14I also tried adding to my system environment path variable: %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;and this did not help.
My webstart properties are:
$label=Web Start
execution.target=jnlp
javafx.profile=desktopbut I think the matter is more basic because I also receive the same error from the command line:
"D:\Program Files\NetBeans 6.8\javafx2\javafx-sdk\bin\javafx.exe" -versionas I already mentioned. -
Using log4j with JavaFX and Netbeans 6.8
Hello,
I'm trying to use log4j within a JavaFX project using NetBeans 6.8.
I've donwloaded the .zip file from the Apache website and added the log4j-1.2.16.jar to the project's libraries.
Then I added the imports:
import org.apache.log4j.Logger;
import org.apache.log4j.BasicConfigurator;But using the Logger class does not work:
def log:Logger = Logger.getLogger("MyApp.class");NetBeans says 'cannot find symbol'
When I'm doing the same things within a Java project, everything works fine.
What am I doing wrong?
thanks
Edited by: Lichti on Apr 17, 2010 12:08 PMTo answer my own question ... there's a known bug in NB 6.8 with including JARs.
-
I having no luck running my JavaFX code on my NetBeans 6.1. I set a Class Path to the javaFX SDK but netbeans insists that the packages don't exsist even though they have the libraries listed. What can I do?
Right click on your project -> properties -> libraries. Make sure that everything you need is there.
-
Netbeans Platform Application and JavaFX CSS API
I'm using JavaFX in my Netbeans Platform Application. I load JavaFX scene with next code:
SwingUtilities.invokeLater(new Runnable()
@Override
public void run()
javaFxPanel.setSize(getSize());
add(javaFxPanel, BorderLayout.CENTER);
Platform.runLater(new Runnable() {
@Override
public void run() {
Group branchNode = new Group();
Scene scene = new Scene(branchNode);
try{
scene.getStylesheets().add("C:\\Xlab\\pandora\\branches\\simon-welcome-screen\\TraineeGuiApp\\modules\\ui\\welcomescreen\\main.css");
catch(Exception e)
Exceptions.printStackTrace(e);
Rectangle rect = new Rectangle(100,100);
rect.setLayoutX(50);
rect.setLayoutY(50);
rect.getStyleClass().add("my-rect");
((Group)scene.getRoot()).getChildren().add(rect);
// Add scene to panel
javaFxPanel.setScene(scene);
javaFxPanel.setVisible(true);
//Application.launch(FXApplication.class, null);
});As you can see i provide absolute path to my css file. CSS file and class that i want to use it from are in same package. I also tried providing just a "main.css" string to scene.getStylesheets().add("main.css"); method.
I have no idea why this is not working. Any suggestions?
Edited by: user8867321 on 1.9.2011 9:56Admittedly, the stylesheet path handling is pretty bad. If you can see the .css file in your browser, then you have a valid URL. You can also use Class.getResource("blah").toExternalForm() to get the right URL string. For example, if I have my .css file in the same directory as Main.java, then I could do scene.getStylesheets().add(Main.class.getResource("sample.css").toExternalForm());
-
Netbeans+Javafx+JBoss-7 : Any netbeans plugin for JBoss-7 support?
Hello world,
I am trying to switch from eclipse to netbeans for my current javaee+javafx project, but netbeans doesn't currently support JBoss-7. Any suggestions?
Thanks.
BTW The decision to exclude JBoss-7 from netbeans -- perhaps hoping that developers would rush to adopt glassfish-- is a silly one. And yet, Oracle JDeveloper seems to works well with JBoss-7.
No serious development department in any organization that is already tied to a AS (say) JBoss is going to suddenly change it to glassfish just to be able to use netbeans. This decision will only backfire on Oracle, as its effect would be to stop developers already using JBoss from trying or even adopting netbeans.I am already using JBoss and eclipse. I was only trying netbeans to use the javafx facilities, but the JBoss version provided in the project creation task does not include JBoss-7. Beside, if you work for an organisation, you don't have the flexibility to change tools --The decision is not entirely yours.
-
JavaFX, Junit, Netbeans problem
Hi,
After setting up everything for running tests using JUnit I stumbled upon an issue.
The app that I was going to test runs fine but the tests (JUnit part) don't. I get this error: "java.lang.NoClassDefFoundError: javafx/scene/Group"
Does anyone know what's wrong?
Thanks in advance,I'm curious how you will use junit to test a JavaFX app.
How will the junit test work and what will it do?
Will it launch the JavaFX app?
Will it trigger events on the app?
What will it evaluate when comparing expecteds to actuals?
I don't use NetBeans that much, but I downloaded 7.3 beta 2 + a jdk8 pre-release build and installed them both. I created a new JavaFX project in NetBeans, then right-clicked on the generated HelloWorld class and selected Tools | Create Tests. NetBeans went and downloaded junit and a junit plugin for NetBeans, then it generated a Test harness for the public methods. It set each generated test harness method to deliberately fail because they were just dummy methods. I changed the fail statements in the test harnesses to assertTrue(true), then I right clicked again on the original HelloWorld class and selected Test. The junit tests ran. The one which executed the main method passed. The one which executed the start method failed because the app wasn't on the JavaFX application thread. There weren't any compilation errors or missing classes - so I guess that something was clever enough to get jfxrt.jar on the classpath without me needing to do anything. -
Web Start no longer working with JavaFX?
As of 7.25 (at least), whenever I create a JavaFX project in Netbeans (using 64-bit Windows JDK and Netbeans), trying to launch it with the JNLP file that Netbeans automatically generates results in the following:
java.lang.NullPointerException
at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)
at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)
at sun.awt.SunToolkit.getSystemEventQueueImpl(Unknown Source)
at java.awt.Toolkit.getEventQueue(Unknown Source)
at java.awt.EventQueue.isDispatchThread(Unknown Source)
at sun.plugin.util.PluginSysUtil.execute(Unknown Source)
at sun.plugin.util.PluginSysUtil.execute(Unknown Source)
at sun.plugin.util.PluginSysUtil.delegate(Unknown Source)
at com.sun.deploy.util.DeploySysRun.execute(Unknown Source)
at sun.plugin2.applet.Applet2Environment.initialize(Unknown Source)
at sun.plugin2.applet.viewer.JNLP2Viewer.parseAndInitialize(Unknown Source)
at sun.plugin2.applet.viewer.JNLP2Viewer.run(Unknown Source)
at sun.plugin2.applet.viewer.JNLP2Viewer.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher$3.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Is there any way around this?It's the JNLP that Netbeans automatically generates for you when building a JavaFX project. It used to run the jar (in the same directory) just by double-clicking it after creating a project, but no longer does. Anyhow, here it is:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0" xmlns:jfx="http://javafx.com" href="TestLaunch.jnlp">
<information>
<title>TestLaunch</title>
<vendor>ibibby</vendor>
<description>Sample JavaFX 2.0 application.</description>
<offline-allowed/>
</information>
<resources>
<jfx:javafx-runtime version="2.2+" href="http://javadl.sun.com/webapps/download/GetFile/javafx-latest/windows-i586/javafx2.jnlp"/>
</resources>
<resources>
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
<jar href="TestLaunch.jar" size="17987" download="eager" />
</resources>
<applet-desc width="800" height="600" main-class="com.javafx.main.NoJavaFXFallback" name="TestLaunch" >
<param name="requiredFXVersion" value="2.2+"/>
</applet-desc>
<jfx:javafx-desc width="800" height="600" main-class="testlaunch.TestLaunch" name="TestLaunch" />
<update check="always"/>
</jnlp> -
How to install JavaFX 1.1 on Linux
Hi all,
I would like to add some notes here.
The Mac SDK worked well for the JavaFX 1.01 (mount and using .dmg file). Now with the current version of JavaFX, mounting the .dmg file, is no longer possible. Instead you can use a .nbm file containing the Mac SDK (yes !).
Installing plug-ins on NetBeans 6.5 (or even 6.7M2) and on Eclipse are not very difficult. There are some points to be aware of. That's it.
I have post on my own Blog (French, some are in English) a step by step instructions (with a lot of screen-shots) for installing :
http://java-javafx-iipt.blogspot.com/
JavaFX 1.1 (stand alone compiler)
JavaFX 1.1 NetBeans Plug-in
JavaFX 1.1 Eclipse Plug-in
Hope this is helpful for Linux Users :)
Kaesar ALNIJRESIf you have any specific question, I might be able to answer - I have done it on RH3 (my development environment).
-
<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
H1 { margin-bottom: 0.21cm }
H1.western { font-family: "Times New Roman", serif }
H1.cjk { font-family: "Lucida Sans Unicode" }
H1.ctl { font-family: "Tahoma" }
-->Review/”wish-list” for JavaFX/NetBeans
The following “wish-list” for JavaFX (1.1) and NetBeans (1.5), was made based on my experience doing three - smaller - projects in JavaFX. I plan to submit these projects (“DestroyerFX”, “AceOfSpadeFX” and “SteamPunkWatch”) to the “JavaFX Coding Challenge” (see “http://www.javafx.com/challenge/”):
- a ”recreate”-method for “CustomNodes” in style of the ”repaint”-method of ”java.awt.Component”. Should force the (re)call of “create”-
method of a “CustomNode”-objects (normally “create” is only called once – the first time the “CustomNode” is drawn).
Useful for “CustomNodes” changing their graphical expression over time, other than what may be expressed by using transformations.
Solutions to the problem (using the existing system) could be:
- reconstruct “CustomNode”'s for each iteration, or when they need to change their graphics. This would force a (re)call to the “create”-
method
- using a “Group” (or “Sequence”) to group different graphical representations/”Nodes”. The “visible”-attributes are manipulated to change
between different representations
- better support in NetBeans for export of projects as executable JAR-files. Useful for people wanting to distribute their application more in
the style of traditional applications
- default-values “http://localhost:8082/servlet/...” in generated *.jnlp files (by NetBeans) should be changed to relative-path “file:.”. This would
make distribution of projects easier.
I don't know if this already is possible in present system, by for instance setting up NetBeans
- merge of Java and JavaFX (-script language). Basically features of JavaFX should be included in Java.
For object-construction-syntax, I suggest some thing like:
(new) MyClass(parm1,parm2, ...) {
attr1: ...,
attr2: ...,
i.e. first the normal Java-constructor is called, hereafter attributes are assigned in JavaFX-style.
JavaFX “bindings” could be a good alternative to “Beans Bindings” (JSR 295).
I think both technologies (object-construction and bindings), would be a great addition to the Java-language, and could prove useful in other
areas than just GUI's.
The JavaFX API should further be accessible from Java
- having a project of mixed Java- and JavaFX-files, I wasn't able to “see” JavaFX-files from Java-files in NetBeans. It would be nice to be able
to do this, since I still consider Java as a better general-purpose language (for larger projects); and people might have older Java-code they
may want to incorporate in their JavaFX-projects. I think, I recall some forums talk about this topic, but the solution isn't obvious anyway
- problems playing sound-clips with the JavaFX “MediaPlayer” (multiple clips are played at the same time in my application). According to
forums, this could be due to the sound-files being placed in JAR-files.
In my projects I “cheated” by using the JavaSE-primtives for this (“javax.sound.sampled”). It would be nice if this could be fixed
- in one of my applications (“DestroyerFX”), I wanted to use dynamic binding of the “Scene” of the central “Stage”-object, allowing the
application to switch between a number of difference “Scene”'s according to functionality and context (“introduction”, “level-up”, actual game
and “final score”). When running the application as a web-browser applet, this approach didn't seem to work (the application was stuck on
first shown “Scene”). I recall some forums-posts discussing this.
My solution to the problem was to reformulate the difference “Scene”-objects to “Group”-objects, swifting between the different
“Scene”/”Group”'s by manipulating their “visible”-attribute.
A performance problem was discovered in a “Group” having a “content” consistent of “Sequences” with dynamic changing content. I solved
this by extracting the “Sequences” from the group, making them “first-generation” children of the “Stage”, i.e. going from:
var grp1 : Group = Group {
content: [ seq1, seq2, ...],
var grp2 : Group = Group { ... };
var actualGroup : Group = ...;
Stage {
scene: Scene {
content: bind [ actualGroup],
... to:
var grp1 : Group = Group {
content: [ ...],
var grp2 : Group = Group { ... };
var actualGroup : Group = ...;
Stage {
scene: Scene {
content: bind [ seq1, seq2, actualGroup],
With the critics giving, I owe people to say that my overall impression of the JavaFX-system (and NetBeans) has been very positive and
satisfying. I hope for future development and deployment on diverse platform of the system.
Fell free to comment, give solutions to problems and make new “wishes”.
RegardsDarn Rich Text-editor:
Review/wish-list for JavaFX/NetBeans
The following wish-list for JavaFX (1.1) and NetBeans (1.5) was made
based on my experience doing three - smaller - projects in JavaFX. I plan
to submit these projects (DestroyerFX, AceOfSpadeFX and
SteamPunkWatch) to the JavaFX Coding Challenge
(see http://www.javafx.com/challenge/):
- a recreate-method for CustomNodes in style of the repaint-method
of java.awt.Component. Should force the (re)call of create-method
of a CustomNode-object (normally create is only called once at
the first time the CustomNode is drawn)
Useful for CustomNodes changing their graphical expression over time,
other than what may be expressed by using transformations.
Solutions to the problem (using the existing system) could be:
-- reconstruct CustomNode's for each iteration, or when they need
to change their graphics. This would force a (re)call to the create-method
-- using a Group (or Sequence) to group different graphical representations/
Nodes. The visible-attributes are manipulated to change between
different representations
- better support in NetBeans for exporting of projects as executable
JAR-files. Useful for people wanting to distribute their application
more in the style of traditional applications
- default-values http://localhost:8082/servlet/... in generated *.jnlp-
files (by NetBeans) should be changed to relative-path file:.. This
would make distribution of projects easier.
I don't know if this already is possible in present system, by for
instance setting up NetBeans
- merge of Java and JavaFX (-script language). Basically features of
JavaFX should be included in Java.
For object-construction-syntax, I suggest some thing like:
(new) MyClass(parm1,parm2, ...) {
attr1: ...,
attr2: ...,
}i.e. first the normal Java-constructor is called, hereafter attributes
are assigned in JavaFX-style.
JavaFX bindings could be useful as an alternative to Beans Bindings
(JSR 295).
I think both technologies (object-construction and bindings) would be a
great addition to the Java-language, and could prove useful in other
areas than just GUI's.
The JavaFX API should further be accessible from Java
- having a project of mixed Java- and JavaFX-files, I wasn't able to
see JavaFX-files from Java-files in NetBeans. It would be nice to be
able to do this, since I still consider Java as a better general-purpose
language (for larger projects); and people might have older Java-code
they may want to incorporate in their JavaFX-projects. I think I
recall some forums talk about this topic, but the solution isn't
obvious anyway
- problems playing sound-clips with the JavaFX MediaPlayer (multiple
clips are played at the same time). According to forums, this could be
due to the sound-files being placed in JAR-files.
In my projects I cheated by using the JavaSE-primitives for this
(javax.sound.sampled). It would be nice if this could be fixed
- in one of my applications (DestroyerFX), I wanted to use dynamic
binding of the Scene of the central Stage-object, allowing the
application to switch between a number of difference Scene's
according to functionality and context (introduction, level-up,
actual game and final score). When running the application as a
web-browser applet, this approach didn't seem to work (the application
was stuck on first shown Scene). I recall some forums-posts discussing
this.
My solution to the problem was to reformulate the different Scene-objects
to Group-objects, swifting between the different Scene/Group's by
manipulating their visible-attribute.
A performance problem was discovered in a Group having a content
consistent of Sequences with dynamic changing content. I solved this
by extracting the Sequences from the group, making them
first-generation children of the Stage, i.e. going from:
var grp1 : Group = Group {
content: [ seq1, seq2, ...],
var grp2 : Group = Group { ... };
var actualGroup : Group = ...;
Stage {
scene: Scene {
content: bind [ actualGroup],
}... to:
var grp1 : Group = Group {
content: [ ...],
var grp2 : Group = Group { ... };
var actualGroup : Group = ...;
Stage {
scene: Scene {
content: bind [ seq1, seq2, actualGroup],
}With the critics giving, I owe people to say that my overall impression of
the JavaFX-system (and NetBeans) has been very positive and satisfying. I
hope for future development and deployment on diverse platform of the system.
Fell free to comment, give solutions to problems and make new wishes.
Regards
Maybe you are looking for
-
Firefox worked earlier today (August 19, 2013 about 6:30 pm EDT). When I opened Firefix after 9pm EDT, Firefox attempted to perform an update. No error was given, but now Firefox will not start. Running a Windows 8 machine with all updates and curren
-
Reading menu props for menus stored in repository
Hi All, I need to come up with a way to read the roles on a menu item when the menu is stored in the database. The company I work for use to run a pl/sql routine that pulled this data from the tables in the repository. This no longer works becasue th
-
I am creating an "electronic" panel that will be viewed at a convention. I am going to set my document properties to open at "full screen". I also want to set the transitions and the seconds each panel will appear on the screen and the background col
-
I can't connect to the firefox browser. Every time that I click on the browser I get a " The proxy server is refusing connections. Firefox is configured to use a proxy server that is refusing connections. " I've never had this problem before. I'm now
-
I've be able to open them in all previous updates to Numbers with the exception of the one mentioned above and the one right before (3.0?). I am still able to open them fine on my iPhone 5 (its numbers program is updated to the most recent release).