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?
thanks

I'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 .....

Similar Messages

  • Cannot create a project with netbeans 4.1

    hi. i am using jdk1.5 update 3 with netbeans 4.1. my operating system is ubuntu linux 5.04. when i want to create a new project with netbeans i get this error:
    javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
    i open netbeans, click button "new project", select "General > Java Application", click "next" button.
    project name: JavaApplication1
    project location: /home/bsevindi
    project folder: /home/bsevindi/JavaApplication1
    when i click "finish" button, i get the error above. what should i do? BTW, i have compiled
    a sample project and it works fine. the problem is only about creating a new project.

    I suggest you post the question to a netbean users forum.
    This forum is better for question regarding programming rather than how to use an IDE.

  • .jar not working when building project with netbeans plugin and log4j

    hey..
    subject tells everything..if i build my project referencing log4j, i get a .jar file with 280 kb which is executable
    if i add log4j and do some logging, code still works in netbeans, but buildung produces a .jar with 80 kb and an
    attached lib-folder with the log4j.jar in it..if i uncheck copy requested libraries, i just get the 80 kb .jar file which
    is not working
    any hints?

    Are you building the jar file using the fxdeploy ant task to build the Jar? That is required to have an executable jar file.
    Also there was a change to the netbeans project structure, which may be a contributing factor.
    Things to try: Upgrade to the latest netbeans 7.1 beta build, set up a new Java platform in nb that includes JavaFX, create a new JavaFX project and build it. This should produce an executable jar.

  • 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.

  • Deploying my project with Netbeans 4.0

    Does anyone know how I do this? This is one of the pains of Java - no executable files.
    I can't even find a tutorial on how to deploy using Netbeans 4.0.
    Any suggestions?

    Your dead right, it can be a pain in the ass.
    Although, NetBeans IDE makes and places a JAR file of your project in the 'ProjectFolder/dist/' folder, which should run the project when double clicked.
    The problems with this can occur if your using image or sound files (known as resources within a jar file) see my post:
    http://forum.java.sun.com/thread.jspa?threadID=648553

  • How do you setup a remote project with Netbeans 6.1 and IDM 8?

    I have been using Netbeans with IDM 7.1 fine, but have now upgraded to IDM 8 and want to use the new Netbeans plugin. However there is no ide-bundle.zip with IDM 8. If you try to connect to IDM 8 using the previous bundle from 7.1 you get a compatability error. Anyone able to give help on this?

    I have setup a remote project using the other setting of configuring the repository yourself. I couldn't use the remote method as it requires this file from your localhost file store and as I am using a different machine to run netbeans this wouldn't work. The other method allows you to put in connection information.
    I am not sure of the point of the remote method as it doesn't allow what the name suggests.

  • Build project with Netbeans using older version of Java

    Hi,
    I have Java 1.6 and Netbeans 5-5.
    I need to build a project using Java 1.4.2.
    Please let me know how can I do it.
    Thanks,
    Andrei

    click right the "project folder", then "Properties" and under the "Libraries" tab change the Java platform.

  • How do I create a NetBeans project with multiple JavaFX (FXML) dialogs?

    I'm very new to Java and JavaFX, so forgive what is probably a question asked a thousand times, but I can't seem to find the answer.
    I come from a Visual Studio (C# with WPF) background. I'm used to creating a Solution then adding a Project for each dialog/window that gets included in the Solution. Each dialog/window is a class derived from Window, and I simply create an instance of that class when I need to use the dialog.
    What I need to do is have a main window (stage) that contains two lists of participants (a red team and a blue team).
    Then I need a separate dialog for entering the information for the participant. So when a button on the main stage is pressed ("Add Red Participant"), I want to open the ParticipantDialog. When the "OK" or "Close" button on the Participant dialog is clicked, I want the dialog to be able to return a participant object to the main stage.
    Then the main stage adds that participant to the appropriate list.
    What I've gathered so far is that I will be creating an FXML file for the Participant dialog (and I assume an associated controller). Then when the "Add" button is pressed, I will call an FXMLLoader to load that FXML dialog. Something like this:
    FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("ParticipantDialog.fxml"));
    Scene scene = (Scene)fxmlLoader.load();
    final Stage participantDialog = new Stage();
    participantDialog.setScene(scene);
    First question is: is that correct so far? Am I at least on the right track?
    Next question is: how or where do I create the FXML and controller files for the participant dialog using NetBeans? Should I create a separate project to make the participant dialog and then copy those files over, or is there a way to make the files within the parent project? And if I make the participant dialog in a separate project, what's the easiest way to access it from my main stage?
    I feel like I'm missing something simple here because this seems a lot harder than it should be.
    Thanks in advance for any advice.

    >  is that correct so far?
    Yes the sample code you have is fine to launch a new dialog when your Add button is pressed .
    > I create the FXML and controller files for the participant dialog using NetBeans?
    You can edit FXML text in NetBeans, but I think that is kind of tedious.
    You might want to create the FXML using SceneBuilder.
    You can use SceneBuilder in NetBeans.
    You may want to get it working without FXML first.
    For example, use the JavaFX scene graph API, then convert your program to use FXML once you are more comfortable with the JavaFX system.
    The piecemeal approach cuts down on the amount of learning you need to do at one time.
    > Should I create a separate project to make the participant dialog and then copy those files over.
    No.
    Just use a single NetBeans project.
    You will have separate FXML files for your main stage and your participant dialog, but they will both be placed in the same NetBeans project.
    > is there a way to make the files within the parent project?
    In NetBeans 7.3.1, do the following:
      File | New Project | JavaFX | JavaFX FXML Application
    This will create a sample project with a sample fxml file.
    Modify the sample project files to get what you want, changing the sample fxml to your main stage fxml and adding a new participant fxml to the same directory.

  • Possible bug in NetBeans JavaFX project type

    Found the following issue when trying to run a JavaFX app as a jar:
    1) Create a JavaFX app project.
    2) Create a Java class library project, with at least one class.
    3) Add the Java class library to your JavaFX app libraries
    4) In your JavaFX app, invoke a class from class library.
    Now build the app, and try to run it directly using "java -jar". You will get a ClassNotFound exception when it tries to invoke the class from the included library. The library jar file will be copied to the dist/lib directory, but if you open up the manifest in the application's jar file, you'll see that no Class-Path parameter is created for it.
    This isn't an issue for web start, because the path to the library jar file is included in the application's jnlp file, but if you're planning to build a regular application that will be launched locally, this would appear to constitute a bug, unless I'm missing something.

    :groan:
    JavaaFX 2.0 Netbeans external JARS 0 bytes
    db

  • Can javafx intregrate with hibernate in netbeans?

    I'm javafx newbie.
    Can javafx intregrate with hibernate in netbeans? (6.8)
    I try to add Hibernate configuration wizard and Hibernate mapping wizard
    by right click at the project > new > other > hibernate
    but it does't support.
    it shows "Unsupported Project Type"
    How to solve this?
    thank you so much

    thank alexfromsarkoland.
    I try by right click at the project > new > XML document
    and write mapping and configuration file, It's work !
    but if netbeans wizard support on javafx it will be easier.
    thx u.

  • JavaFX project as library under Netbeans

    Hi,
    I have a big JavaFX project and I would like to improve modularity.
    In this case, I would like to set a JavaFX module project under Netbeans as library but I don't know how...
    Isn't there a checkbox "Library" as in the Eclipse project settings to create a module project library for Android :)
    Thanks

    If I need to modularize, I do it in maven with a parent pom and import the parent pom into idea, which generates all of the idea modules corresponding to the maven modules.
    Take a look at how open-jfx (http://openjdk.java.net/projects/openjfx/) is organized for an example of splitting up a large project into multiple parts.
    Or download the javafx samples and look at the modularization of the Henley Sales data app into a main client app, preloader and server components.

  • Profiling JavaFX in Netbeans

    Hi,
    I'm blowing memory in my JavaFX app - I've never 'profiled' with Netbeans before (am using 6.7.1) but I'm getting no joy.
    I'm trying to analyse memory usage but it just sits on the "Connecting to the target VM"
    I read that you have to calibrate first - but the platforms available are only JDK 1.6(default) and JDK 1.6
    Nowhere does it say JavaFX SDK on Java1.6(default)
    and I read on others problems regarding my problem (general Java, couldn't find JavaFX one) that its because the wrong platform has been chosen ?!
    Could someone help me out with my noobness and JavaFX profiling and tell me step by step what I need to do ?
    Cheers
    ScottyB

    I don't use NetBeans, but I had some success in profiling memory of a (standalone) JavaFX program with VisualVM, if it can help.

  • Problem with opening project in NetBeans 5.0

    Hi,
    When i try to open an existing project in NetBeans 5.0 or try to add a new platform to a certain project, my computer is stack and i can't work with the NetBeans IDE ( i have to kill the process)
    How can i fix this problem?

    Hi
    Please ensure servlet can natural work.
    http://localhost:8080/one/Receive
    Please use actual path in form at best.
    /appname/uservletname
    just say:
    <form method="post" action="/one/Receive">
    Regards

  • Using the Netbeans GUI within a Project with existing Ant Script

    I cannot seem to figure out how to use the Netbeans GUI in my Project with existing Ant Script. Is this possible? I have no problem creating GUI interfaces in a java Application, but attempting to make a new JFrame Form gives the error: package org.jdesktop.layout does not exist, and I have not been able to find a way around this. Any suggestions? Thanks in advance.
    Chris Coulon

    OK, I think I am on the right track, but I don't understand why I am still getting this error:
    clean:
    compile:
    Copying 1 file to /Users/chris/**JavaProjects/Netbeans_ImageJ
    Created dir: /Users/chris/**JavaProjects/Netbeans_ImageJ/source/build
    Compiling 292 source files to /Users/chris/**JavaProjects/Netbeans_ImageJ/source/build
    /Users/chris/**JavaProjects/Netbeans_ImageJ/source/plugins/Kline_Frame.java:31: package org.jdesktop.layout does not exist
    org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
    /Users/chris/**JavaProjects/Netbeans_ImageJ/source/plugins/Kline_Frame.java:31: package org.jdesktop.layout does not exist
    org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
    /Users/chris/**JavaProjects/Netbeans_ImageJ/source/plugins/Kline_Frame.java:34: package org.jdesktop.layout does not exist
    layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    /Users/chris/**JavaProjects/Netbeans_ImageJ/source/plugins/Kline_Frame.java:38: package org.jdesktop.layout does not exist
    layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    4 errors
    /Users/chris/**JavaProjects/Netbeans_ImageJ/source/build.xml:11: Compile failed; see the compiler error output for details.
    BUILD FAILED (total time: 6 seconds)
    I no longer have the error in my java code in the Projects list, but I still cannot build the project. This is my current build.xml file:
    <!-- Ant makefile for ImageJ -->
    <project name="ImageJ" default="run">
      <target name="compile" description="Compile everything.">
          <!-- Copy the swing layout library into dist.lib -->
        <copy file="dist/lib/swing-layout-1.0.3.jar" todir=".." />
        <!-- First, ensure the build directory exists. -->
        <mkdir dir="build" />
        <!-- Build everything; add debug="on" to debug -->
        <javac srcdir="." destdir="build" optimize="on" source="1.4" target="1.4" debug="on">
          <!-- The plugins directory only needs to be
                 present at runtime, not at build time. -->
          <!-- exclude name="plugins/**"/-->
        </javac>
      </target>
      <target name="build" depends="compile" description="Build ij.jar.">
        <!-- Copy needed files into the build directory. -->
        <copy file="IJ_Props.txt" todir="build" />
        <copy file="images/microscope.gif" tofile="build/microscope.gif" />
        <copy file="images/about.jpg" tofile="build/about.jpg" />
         <copy file="plugins/MacAdapter.class" tofile="build/MacAdapter.class" />
        <copy todir="build/macros"><fileset dir="macros"/></copy>
        <!-- Build ij.jar. -->
        <jar jarfile="ij.jar" basedir="build"
             manifest="MANIFEST.MF" />
      </target>
      <target name="clean" description="Delete the build files.">
        <delete dir="build" />
        <delete file="ij.jar" />
      </target>
      <target name="run" depends="build" description="Build and run ImageJ.">
        <copy file="ij.jar" toDir=".." />
        <java maxmemory="640m" jar="ij.jar" fork="yes" />
      </target>
      <target name="run2" depends="build" description="Build and run ImageJ.">
        <!-- Run in ImageJ directory -->
        <copy file="ij.jar" toDir=".." />
        <java maxmemory="640m" dir=".." jar="ij.jar" fork="yes" />
      </target>
      <target name="zip" depends="clean" description="Build zrc.zip.">
        <zip zipfile="../src.zip"
           basedir=".."
           includes="source/**"
        />
      </target>
      <target name="javadocs" description="Build the JavaDocs.">
        <delete dir="../api" />
        <mkdir dir="../api" />
        <javadoc
               sourcepath="."
               packagenames="ij.*"
               destdir="../api"
               author="true"
               version="true"
               use="true"
               windowtitle="ImageJ API">
        </javadoc>
      </target>
       </project>notice I added this line: <copy file="dist/lib/swing-layout-1.0.3.jar" todir=".." />
    because the dir ".." is where the other jar files are placed, i.e.:
    [GAIAG:~/**JavaProjects/Netbeans_ImageJ/source] chris% ls ..
    PolarDisplay          ij.jar               swing-layout-1.0.3.jar
    TestFrames          myApp
    api               source
    So why is the build not able to see the package org.jdesktop.layout in the jar file?
    Chris

  • Tryin to Profile weblogic with NetBeans Profiler, getting jrocke exception

    Hi there,
    I am using Weblogic 10, and want to profile a web application on it with Netbeans Profiler. But am getting the following exception upon starting weblogic (Please tell a solution......)
    JAVA Memory arguments: -Xms256m -Xmx512m
    WLS Start Mode=Development
    +.+
    CLASSPATH=;C:\bea\patch_wls1001\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\JROCKI~1\lib\to
    +;C:\bea\WLSERV~1.0\server\lib\weblogic_sp.jar;C:\bea\WLSERV~1.0\server\lib\weblogic.jar;C:\bea\modules\features\w+
    +.server.modules_10.0.1.0.jar;C:\bea\modules\features\com.bea.cie.common-plugin.launch_2.1.2.0.jar;C:\bea\WLSERV~1+
    er\lib\webservices.jar;C:\bea\modules\ORGAPA~1.5/lib/ant-all.jar;C:\bea\modules\NETSFA~1.0/lib/ant-contrib.jar;;C
    LSERV~1.0\common\eval\pointbase\lib\pbclient51.jar;C:\bea\WLSERV~1.0\server\lib\xqrl.jar;;
    +.+
    PATH=C:\bea\patch_wls1001\profiles\default\native;C:\bea\WLSERV~1.0\server\native\win\32;C:\bea\WLSERV~1.0\server
    +\bea\modules\ORGAPA~1.5\bin;C:\bea\JROCKI~1\jre\bin;C:\bea\JROCKI~1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS+
    +32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\CVSNT\;C:\bea\WLSERV~1.0\server\native\win\32\oci92+
    +.+
    +*  To start WebLogic Server, use a username and   *+
    +*  password assigned to an admin-level user.  For *+
    +*  server administration, use the WebLogic Server *+
    +*  console at http:\\hostname:port\console        *+
    starting weblogic with Java version:
    Listening for transport dt_socket at address: 8453
    java version "1.5.0_11"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
    BEA JRockit(R) (build R27.3.1-1_CR344434-89345-1.5.0_11-20070925-1628-windows-ia32, compiled mode)
    Starting WLS with line:
    C:\bea\JROCKI~1\bin\java -jrockit -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8453,server=y,suspend=n
    +.compiler=NONE -Xms256m -Xmx512m -agentpath:"C:\Program Files\NetBeans 6.1\profiler3\lib\deployed\jdk15\windows\+
    +rinterface.dll=\"C:\Program Files\NetBeans 6.1\profiler3\lib\"",5140 -Xverify:none -ea -da:com.bea... -da:javel+
    da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbconsole... -Dplatform.home=C:\bea\WLSERV~1.
    +.home=C:\bea\WLSERV~1.0\server -Dweblogic.home=C:\bea\WLSERV~1.0\server -Dwli.home=C:\bea\WLSERV~1.0\integration+
    ogic.management.discover=true  -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.di
    ea\patch_wls1001\profiles\default\sysext_manifest_classpath -Dweblogic.Name=AdminServer -Djava.security.policy=C:
    SERV~1.0\server\lib\weblogic.policy   weblogic.Server
    Profiler Agent: Initializing...
    Profiler Agent: Options: >"C:\Program Files\NetBeans 6.1\profiler3\lib",5140<
    Profiler Agent: Initialized succesfully
    Listening for transport dt_socket at address: 8453
    Profiler Agent: Waiting for connection on port 5140 (Protocol version: 8)
    Profiler Agent: Established local connection with the tool
    Profiler Agent: Unable to get address of JVM_DumpHeap function
    +===== BEGIN DUMP =============================================================+
    JRockit dump produced after 0 days, 00:00:20 on Thu Aug 28 18:46:28 2008
    Additional information is available in:
    C:\bea\user_projects\domains\nms_dev\jrockit.3728.dump
    C:\bea\user_projects\domains\nms_dev\jrockit.3728.mdmp
    If you see this dump, please open a support case with BEA and
    supply as much information as you can on your system setup and
    the program you were running. You can also search for solutions
    to your problem at http://forums.bea.com in
    the forum jrockit.developer.interest.general.
    Error Message: Unhandled native exception [85]
    Exception Rec: EXCEPTION_STACK_OVERFLOW (c00000fd) at 0x004FE3DF
    Minidump     : Wrote mdmp. Size is 297MB
    SafeDllMode  : -1
    .

    It looks like NetBeans does not support JRockit: http://profiler.netbeans.org/docs/help/5.5/vms.html
    Regards,
    /Staffan

Maybe you are looking for