JavaFX 1.3 + Ubuntu 9.10 + JDK 1.6_20 + Netbeans 6.9

Hi Guys,
Im having a hard time here trying to get JavaFX 1.3 + Ubuntu 9.10 + JDK 1.6_20 + Netbeans 6.9 to work together.
First I installed Ubuntu 9.10 then I downloaded the JDK and installed it on my /opt, after I've downloaded the JavaFX 1.3 and installed it also on /opt, finally I installed netbeans
on my .bashrc I added
JAVA_HOME=/opt/jdk1.6.0_20/jre
JAVA_BIN=$JAVA_HOME/bin
PATH=$PATH:$JAVA_BIN:/opt/javafx-sdk1.3/bin/
export JAVA_HOME
export JAVA_BIN
export PATH
Made a symbolic link to my /usr/bin of javafx javafxc and javafxpackager
My problem is, when I create a netbeans' javafx project, its complain it cant find java command, because JAVA_HOME is not set
but If i create a JAVA app using netbeans it compiles and run without complain about java
some commands I used on ubuntu's console
echo $JAVA_HOME
/opt/jdk1.6.0_20/jre
java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)
javafx -version
javafx 1.3.0_b412
and using console i can compile a simple fx programan and run
javafxc Test.fx
javafx Test
It works
how can I solve that?
here some extra info about the files I used
jdk-6u20-linux-x64.bin
installion was
cp jdk-6u20-linux-x64.bin /opt
chmod a+x jdk-6u20-linux-x64.bin
sudo ./jdk-6u20-linux-x64.bin
javafx_sdk-1_3-linux-i586.sh
same as jdk
netbeans-6.9beta-ml-linux.sh or netbeans-6_9-beta-javafx-1_3-linux (I've downloaded both and tryed both)
same as jdk

Hi,
experiencing with manual install for JDK+Netbeans on Ubuntu 10.04 I found the following:
-Editing your .bashrc is indeed enough to get Netbeans installed/started but JAVA_HOME error occurs when running JAVAFX project (same error as you have).
-Copying your config from .bashrc to .profile permits to run JAVAFX projects like a charm (but don't ask me why)
Just note that if you use Ubuntu 64 bits you can forget running multimedia project (even with a 32-bits JDK), only Ubuntu 32 bits + 32 bits JDK will do.
Hope this helps

Similar Messages

  • JavaFX and JDK 1.6

    Hi
    I am running the JDK 1.6.0_35 and does not want to change for Java7. What is the latest JavaFX version that runs with the JDK 1.6?
    TIAFYA
    FA

    Currently the latest version of JavaFX for Java 6 is JavaFX 2.2.7
    It can be found here:
    http://www.oracle.com/technetwork/java/javafx/downloads/index.html

  • Installing Javafx in ubuntu 11.0

    Hi, i am new in using javafx, and recently after i install jdk7.03 and netbeans i found that i could not be able to build a javafx program.
    Please could you tell the steps to follow to do that thing gone well.
    Best Regards,

    mk_dba wrote:
    Since Oracle 11.2g is not certified on Ubuntu it is better to run on Oracle Linux.
    Even I tried to install it on Ubuntu and it did not work.
    Please download latest Oracle Linux (Oracle Linux Release 6 Update 3 Media Pack v1 for x86_64 (64 bit)) which is 4 parts (8.5GB) from https://edelivery.oracle.com/EPD/Download/
    Provided you want to install on x86_64 64 bitPl be aware that currently only version 11.2.0.3 is certified on Linux 6.x - http://docs.oracle.com/cd/E11882_01/relnotes.112/e23558/toc.htm#CHDFHIEA
    11.2.0.3 can only be downloaded from My Oracle Support (https://support.oracle.com), access to which requires a paid Support contract with Oracle.
    If you plan to install 11.2.0.1 or 11.2.0.2, then you will have to use OL 5.x - search this forum for many people who have tried to install 11.2.0.1 or 11.2.0.2 on Linux 6.x and failed.
    HTH
    Srini

  • JavaFX stage crashing on program start, Windows 7 Home Premium, NB 6.9 RC2

    Hey all,
    I'm creating a Java/JavaFX application and have been using an interface to pass data back between the two programs. Upon running the program in NetBeans 6.9 RC2, it sometimes runs but often crashes. I'll post up some code, but I think it is mostly to do with the fact that I am trying to run this in a 64-bit environment. If I comment out the section that instantiates and runs the JavaFX portion of the program, the application runs every time. So, for the code, I am using the java interface method as described on this page. My FX class defines a scene and stage and then adds a bunch of lines to it, like such:
    public override function drawPaths(legs: ArrayList): Void
            var leg: Leg;
            for(l in legs)
                leg = l as Leg;          
                insert Line
                    startX: leg.getStart().getX()   startY: leg.getStart().getY()
                    endX: leg.getEnd().getX()       endY: leg.getEnd().getY()
                } into myScene.content;          
        }I tried commenting out the section which calls this code and the program still crashes. It may be all in my head, but I believe it crashes less, though I haven't really got a statistically significant number to prove that.
    As for the system, it's a Core2 Quad with 6 gigs of ram and 64 bit Windows Home Premium. I just installed NetBeans 6.9 RC2 and have been getting the same crashing happening as when I was running NetBeans 6.9 Beta before. NetBeans points to the 64-bit JDK and I also have the 32 bit JDK installed. Earlier I had just the 32 bit JDK installed and the crashes were happening, so I figured I would uninstall it and install just the 64 bit versions, to see if the system liked that better. But then I kept getting the "build failed" error and realized that for whatever reason the 32 bit version is needed for JavaFX. At that point, I reinstalled the 32 bit JDK with the NetBeans directory still set as the 64 bit version, and then it started compiling again. It seems to be crashing the same amount as when I had just the 32 bit version installed.
    So does anyone have any idea where to start looking here? I'm gonna test this out on my laptop (32-bit, Windows 7 ultimate) and report back with what the crash rate is like.

    Well, I did some further testing, and it seems this is a Windows 7 32/64 problem. I installed NetBeans 6.9 RC2 along with the JavaFX developers kit and JDK/JRE in Windows XP Mode, all 32 bit (it's only a 32 bit processor). I ran my app using "javafx -jar MyApp.jar" 25 times and it didn't crash a single time. On W7-32, failure rate was about 40% and it was rather streaky. On W7-64, failure rate was even higher.

  • JavaFX mobile (Android/iOS) update?

    Hi all,
    as I am quite desperately eager to start JavaFX mobile development,
    I would like to ask, if somebody has any update on recent status and progress, if any.
    I have found quite a lot of news titles like 'JavaFX for iOS/Android soon!' at the beginning of the year, but not any other update since.
    According to Javaone 2013 Session Updates
    there should have been some very interesting presentations at JavaOne 2013 last week:
    JavaFX on Android: First Insight [BOF7791]
    Build and Debug Your JavaFX Application for the iPad [BOF5517]
    JDK 8 for Oracle ADF Mobile on iOS and Android Devices [CON3783]
    Can anybody point me to some recent information?
    Thank you

    jsmith wrote:
    I am unaware of anybody submitting a commerical iOS app based on JavaFX to the Apple app store.
    I don't think it's JavaFX, but BadLogic Games has a RoboVM based demo game on the Apple app store.  I tried it on an iPad 2 and was very surprised at how responsive it was.  I was expecting noticeable input lag, but there isn't any.
    http://www.badlogicgames.com/wordpress/?p=3193
    I know the politics of getting JavaFX on iOS, Android, and WinRT are complicated, but I'm still hoping Oracle changes their mind.  The idea of Microsoft, Google, and Apple controlling the mobile platforms top to bottom doesn't strike me as something that's going to be good for anyone (else).  I'm rather amazed at the faith everyone is putting the idea that Microsoft, Google, and Apple won't leverage IE, Chrome, and Safari to give their SaaS initiatives the advantage.
    I'd rather hedge my bets with the JVM and Linux than trust 3 companies who have been making obvious moves to close up and control the computing industry.  Honestly, look at the setup.  They all have hardware branches now and they already control the OSs, the native runtimes, the browsers, and the primary distribution channels for their respective platforms.  Oracle should be worried about getting anything on those platforms 5 years from now.
    IMO, they should be pushing ADF and JavaFX on mobile, not trying to choose one or the other.

  • Problem in Installing JavaFX for NetBeans 6.0.1

    Hi ,
    I am using NetBeans6.0.1. The problem I am facing while installing/updating JavaFX plug-in in NetBeans6 is that the system is watched by network firewall.
    NetBeans is unable to retrieve information about the updates as firewall doesn't allows it to do so.
    I badly need JavaFX plugin installer(I hope it is something like javaFX.nbm file) so that I can update it offline by searching it through Downloaded tab in the plugin window.
    Please don't give me this link ( https://openjfx.dev.java.net/javafx-nb60-plugin-install.html ) to update my NetBeans for JavaFX.
    If there is any option to update NetBeans for JavaFX, do let me know.
    Also, why have you given just one option for installing JavaFX Plug-in in NetBeans??
    I am eagerly waiting for reply.
    PS NetBeans6 doesn't highlights(active) Updates and Available Plug-in's in the plugin window.
    -Virendra

    In my case iOS 6.1.3 got issues with the 3G looks with a strong signal but can´t connect!

  • Forum for Netbeans, JavaFX Composer ...

    I don't see a dedicated forum for JavaFX/Netbeans users. At the forums.netbeans.org site there is'nt anything dedicated for JavaFX. Here there is'nt anything dedicated for Netbeans.
    IMHO a dedicated forum would be valuable. JavaFX seems to be the "future client stack" for Java and Netbeans the principal IDE that supports it.
    What do you all think ?.
    /rk

    Hi,
    There is no forum at NetBeans forum site dedicated for JavaFX since there is no overwhelming amount of messages with JavaFX topic for requiring separation from the nbusers forum.
    We have a mailing list (with a message archive) dedicated specifically to JavaFX:
    [email protected]
    You can freely subscribe there.
    Regards,
    David

  • Netbeans 6.1 JavaFX build error

    Env: Netbeans 6.1, JavaFX, Linux, Java(TM) SE Runtime Environment 1.6.0_06-b02
    Hi,
    The error below is displayed building the "Practical Guide to JavaFX " project (CrudFX)
    http://molgav.nn.ru/index.php?view=article&catid=38%3Aexample&id=229%3Apractical-guide-to-javafx&option=com_content&Itemid=56
    /home/dkennedy/NetBeansProjects/CRUDfx/src/crudfx/DataGrid.fx:13: Sorry, I was trying to understand the module contents but I got confused when I saw 'DataGrid' which is an identifier.
    operation DataGrid.createView():<<javax.swing.JComponent>>
    Any help/suggestions would be greatly appreciated
    Thanks
    Dave
    DataGrid.fx ===================================================================
    package crudfx;
    import javafx.ui.*;
    import java.lang.*;
    import javafx.ui.canvas.*;
    import javafx.ui.filter.*;
    import crudfx.*;
    import javax.swing.JTable;
    class DataGrid extends Table
    operation DataGrid.createView():<<javax.swing.JComponent>>
    var jComponent=super.createView();
    Tools.adjustTableHeader(jComponent);
    return jComponent;
    operation DataGrid.createComponent():<<javax.swing.JComponent>>
    var jComponent=super.createComponent();
    Tools.adjustVerticalScrollBar(jComponent);
    return jComponent;
    log =========================================================================
    Error in syntactic analysis in DataGrid.fx:
    java.lang.NullPointerException
    at com.sun.tools.javafx.antlr.v3Walker.module(v3Walker.java:294)
    at com.sun.tools.javafx.antlr.JavafxSyntacticAnalysis.parse(JavafxSyntacticAnalysis.java:82)
    at com.sun.tools.javafx.main.JavafxCompiler.parse(JavafxCompiler.java:478)
    at com.sun.tools.javafx.main.JavafxCompiler.parse(JavafxCompiler.java:519)
    at com.sun.tools.javafx.main.JavafxCompiler.parseFiles(JavafxCompiler.java:826)
    at com.sun.tools.javafx.api.JavafxcTaskImpl.parse(JavafxcTaskImpl.java:196)
    at org.netbeans.api.javafx.source.JavaFXSource.moveToPhase(JavaFXSource.java:221)
    at org.netbeans.api.javafx.source.CompilationInfoImpl.toPhase(CompilationInfoImpl.java:129)
    at org.netbeans.api.javafx.source.CompilationController.toPhase(CompilationController.java:72)
    at org.netbeans.modules.javafx.source.scheduler.CompilationJob.run(CompilationJob.java:186)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)
    ============================================================================

    The CrudFX code uses the old syntax.
    The JavaFX Script Preview version uses new one: [http://java.sun.com/javafx/reference|http://java.sun.com/javafx/reference]
    The exception means that a project contains empty file:
    =========================================================================
    Error in syntactic analysis in DataGrid.fx:
    java.lang.NullPointerException
    at com.sun.tools.javafx.antlr.v3Walker.module(v3Walker.java:294)
    =========================================================================

  • JavaFX Applet only works with Netbeans

    Hello Together,
    i have a Problem with my JavaFX Applet. All works fine but only if Netbeans start the Browser Applikation or Netbeans is runing in the Background. If i start the Website with the Applet without Netbeans only the JavaFX Icon will schow and nothing happens.
    But the Java Platform is loaded if i start the Applet.
    I inserted the Applet via JS like this:
    <script src="http://dl.javafx.com/1.1/dtfx.js"></script>
    <script>
        javafx(
                  archive: "Applet.jar",
                  draggable: true,
                  width: 600,
                  height: 600,
                  code: "bewertung.Main",
                  name: "Bewertung"
    </script> Sorry for my bad english.

    I forget to Post the Message from the Java Console.
    java.io.FileNotFoundException: JNLP not available: classes/bewertungfx/Bewertung_browser.jnlp
         at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.io.FileNotFoundException: JNLP not available: classes/bewertungfx/Bewertung_browser.jnlp
    But the File classes/bewertungfx/Bewertung_browser.jnlp exists and is readable.

  • Netbeans version and JavaFx

    Hi guys
    It's a bit unclear at this stage as to what to do to get Netbeans and Javafx updated correctly.
    Do I need to still be downloading the Development version of Netbeans or have the plugin fixes been applied to Netbeans 7.01 now?
    The new development Netbeans indicates that it supports JavaFx as part of the package.. so does that mean you still need to install all of the plugins?
    It's confusing and slowing down development a lot - especially with updating javafx across multiple machines and the documentation is not covering
    how best to move from one build of Javafx to the next and how to also ensure Netbeans is setup correctly.
    -- some history since build 42 we could not package our app with netbeans. So we installed the development netbeans and had to muck around with the platform
    manager to get it to work with javafx. It has been somewhat inconsistent across several machines also - some with win7 and some XP.
    I understand that being part of a beta requires some patience but some guidance in how others are keeping their windows based development environments working properly
    would be great!

    You need to use the latest beta of NetBeans 7.1. I suspect the older version you downloaded is using JFX1.x.
    See this: http://netbeans.org/kb/docs/java/javafx-setup.html
    Regarding your threading model, there is a new API for threading but I wouldn't say it's much simpler or easier - at best, more powerful.
    There doesn't seem to be any good official docco on this however (seems like a big important topic so this is weird - maybe I just missed it). The closest is this slightly outdated article: http://fxexperience.com/2011/07/worker-threading-in-javafx-2-0/
    You may also find this useful: Thoughts on best practices for busy/wait and threads?
    If you have further questions on this stuff, probably best to start a new forum topic (or reply to the threading one above) - this thread is starting to lose relevance to it's original topic.
    Cheers,
    zonski

  • Javafx 2.1 deployed jar opening blank forms

    We have created a javafx 2.1 desktop application with hibernate, mysql and netbeans 7.1.2. The code runs fine in netbeans but when packaged and deployed gives problems to load other fxml files except the one which comes with the main class.
    Would appreciate if anyone could help us out.

    gives problems to load other fxml filesWhat kind of problems?
    What is the code you use to load the fxml (both in the case that works and the case that doesn't)?
    How are you packaging?
    How are you deploying?
    Probably you have some kind of resource location issue, e.g. you are not packaging the fxml forms or not looking for them in the location you have packaged them.
    Perhaps you are searching for your resources in a manner which will not work when the app is packaged as a jar or deployed.
    Many bugs were fixed between 2.1 and 2.2 - you might want to try building and deploying your app with 2.2 and see if you still have issues.

  • Netbeans 7.2 - JavaFX Tutorial - problems with imports

    I am indeed a newbie. I installed Netbeans 7.2 and created a JavaFX Application project while following a tutorial. I inserted code (as instructed) for a GridPane with alignment and inset adjustments. After inserting the GridPane code from the tutorial, my build got errors (undefined for pos.Center and Insets
            GridPane grid = new GridPane();
            grid.setAlignment(Pos.CENTER);
            grid.setHgap(10);
            grid.setVgap(10);
            grid.setPadding(new Insets(25, 25, 25, 25));
            Scene scene = new Scene(grid, 300, 275);
            primaryStage.setScene(scene);
    {code}
    It took quite a long time for me to discover what includes to code in order to solve these build errors.  I eventually ended up with :
    {code}
    package login;
    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.layout.StackPane;
    import javafx.stage.Stage;
    import javafx.scene.layout.GridPane;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.text.Text;
    import javafx.scene.text.Font;
    import javafx.geometry.Insets;
    import javafx.application.Application;
    import javafx.geometry.Pos;
    import javafx.scene.Scene;
    import javafx.scene.control.PasswordField;
    import javafx.scene.layout.GridPane;
    import javafx.scene.layout.HBox;
    import javafx.scene.paint.Color;
    import javafx.scene.text.Font;
    import javafx.scene.text.FontWeight;
    import javafx.scene.text.Text;
    {code}
    The wizard produced these includes at the start:
    {code}
    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.layout.StackPane;
    import javafx.stage.Stage;
    {code}
    My questions:
    Is there a way to specify the includes for javaFX  with
    {code}
    javafx.*;
    {code}
    Is there a simple way in Netbeans 7.2 to find out what include to use to solve the undefined build errors?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I am not a Netbeans user but I think this is what you are looking for.
    http://wiki.netbeans.org/Java_EditorUsersGuide#How_to_add_import_statements_for_one_or_more_classes

  • SDK vs. JDK

    I got confused. Is there a difference between terms SDK and JDK?
    I'm currently using SDK 1.4.2.
    On the other hand the 5.0 would be JDK?
    JDK 5.0 source code is available for those interested in exploring the details of the JDK...

    I got confused. Is there a difference between terms
    SDK and JDK?
    I'm currently using SDK 1.4.2.
    On the other hand the 5.0 would be JDK?
    JDK 5.0 source code is available for those interested
    in exploring the details of the JDK...Sun likes to rename their stuff, and they used to call a JDK bundled with Netbeans for SDK.

  • Well is it needed UNINSTALL first the 13 JDK ?

    I installed JDK update 13, [not netbeans till now installed=any ver.] well now I want to install upper but below:
    bundle JDK update 14 & Netbeans 6.7 all together in one file...
    well is it needed UNINSTALL first the 13 JDK ?

    Okay, I will explain in detail.
    Under normal operating circumstances, you do not need to change any system variables. Only in specific cases do you need to do that.
    COMPILING AND RUNNING FROM COMMANDLINE:
    - you want to add the bin directory of the JDK to the PATH variable. You have to do this yourself on windows.
    - you may want to set a CLASSPATH variable, but only if you do not use ANT or Maven. Alternatively you can run javac and java with the -cp commandline property. Even better is to use a build tool like ANT to automate a build for you.
    RUNNING ANT OR MAVEN:
    - you may need to set the JAVA_HOME variable to the directory where you installed the JDK.
    RUNNING ANT:
    - you may need to set the ANT_HOME variable to the directory where you installed Ant.
    - you may want to add the bin directory to the PATH variable
    - further configuration (such as classpath) is configured in the build files
    RUNNING MAVEN:
    - you may need to set the MAVEN_HOME variable to where you installed maven
    - you may want to add the bin directory to the PATH variable
    - you may also want to set a MAVEN_OPTS variable so you can define minimum and maximum heap space used by maven
    - further configuration (such as classpath) is configured from the pom files
    These are borderline cases that I can think of. If you use an IDE, all configuration is done within the IDE itself. For example when you install Netbeans it will allow you to choose which JDK you want to use, it will even detect a default one for you. Project classpath settings are controlled from within the netbeans project. Eclipse works similarly.

  • Hi, I'm new to JavaFX, do we have any textmate bundle of JavaFX?

    coz i like using textmate instead of netbeans. But i can't find one from google, JavaFX is really quite young

    There was only one thing I could find on this topic: A forum post, where the autor states, that he has created a textmate bundle for JavaFX. He has added his E-Mail to that post, so you might be able to contact him. Look here:
    http://jfx.wikia.com/wiki/Forum:Compiled_JavaFX_Script_Editor_Syntax_Highlighting
    Anyways, JavaFX is very young, and it will take some time until Editors and IDEs support it. Personally, I'm still hoping for the JavaFX Eclipse Plugin to be better than the current Netbeans one.

Maybe you are looking for

  • F-04 Post with clearing - Document Splitting issue

    Hi Guru, In the system I have implemented the document splitting by Profit Centre and Segment. I'm trying to post an Incoming Payment (Tcode F-04) with clearing related to two customer. During the invoices I inserted two different Profit Centre by cu

  • Will Windows install on an external with Leopard?

    Hi, I'm looking to purchase a firewire external hd to put Mac OS X Leopard on, but I want to know whether the external will be considered the 'internal drive' by Boot Camp. Any ideas?

  • PERSONALIZATION AND PASSING PARAMETERS

    i created a button in OA personalization that luanches a URL. This URL requires parameters to be passed. I found the view object and view attributes in the page definition, but when I pass the URL as follows: http://usciapp04.utilityservice.com:59204

  • Will the AirPort or AirPort Extreme turn any printer into an AirPrint printer?

    I have a printer (HP CP1518ni) and I want to know if I get the AirPort/AirPort Extreme will it allow me to use my current printer with my iphone and ipad?

  • My music as ring tones

    i have loaded  many songs on my  I5  but canot use them as a ringtone  is this not possible     anyone know what i;m doing rong