Mixing Java and JavaFX

Hola!
I wondered how I could use a JavaFX class inside a Java class. Like this:
FXClass.fx
package fxpackage;
public class FXClass  {
    var chiquito: Integer;
JavaClass.java
package javapackage;
import fxpackage.FXClass;
public class JavaClass {
    FXClass fxVar;
}With this example, Netbeans marks the import statement as an error, arguing that the package "fxpackage" doesn't exist.
Am I doing something wrong? Or does a .java file not descry a package with no .java files??

Without testing anything something like that:
//Interface
public interface FXCall {
     public void call();
//JavaFX side
package test;
public class FXImpl implements FXCall {
     public override function call(): Void {
            Alert.inform("call from javaFX);
public class JavaTest {
     public static void main(String[] args) {
         FXObjectValue fxov = FXLocal.getContext().findClass("test.FXCall").newInstance();
         FXCall fxcall = (FXCall)fxov;
         com.sun.javafx.runtime.Entry.deferAction(new Runnable() {
            @Override
            public void run() {
                fxcall.call();
{code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Is it possible to have java and javafx project types combined ?.

    Today, in NetBeans (not sure about the eclipse world) one has to decide between a "Java" project or a "JavaFX" project.
    Why can't these two be combined ?.
    For e.g, when I try to add JavaFX files (script, classes) to a Java Project it fails to compile. I poked around Netbeans and googled a bit and could'nt find any answers.
    The only way that I can make it work is to create a JavaFX project and Java code to it.
    In situations where one is attempting to "add" JavaFX to an existing Java/Swing app the current approach is too weird and abnormal.
    For e.g Amy Fowler's excellent guide http://weblogs.java.net/blog/2009/06/10/insiders-guide-mixing-swing-and-javafx should be such that I should be able to "simply" add JavaFX code and NetBeans should take care of the plumbing. (calling javafx compiler, adding the right jars for runtime ...)
    /rk

    I'm not sure how JavaFX works, but it is built rather differently from "normal" Java (Single threaded, high level of abstraction from the actual implementation, etc). It is easy to use Java classes inside a JavaFX class, but the reverse is not true.
    Plus, though this part is technically fixable, some classes installed inside the JRE don't seem to work by default in a netbeans JavaFX project.

  • Build java and javafx applications

    Hello everybody! Currently, I am building a netbeans project that consist of java and javax applications and the questions are :
    1. How to call java object in javafx object or it reverse. Which one the better?
    2. How to compile and run the project that consist of java and javafx applications.
    Help me, please!Thank's

    Also, If you want to call JavaFX methods from Java you can use interface and have the JavaFX class extend it (interfaces are extended in JavaFX)
    For example, make interface FXAdapter.java
    interface FXAdapter {
         public void modifyLayout();
    }And in your FX class
    public class FXClass extends FXAdapter {
         public override function modifyLayout() : Void { /*Implementation*/ }
    }Now in your java class you can ask for FXAdapter as a parameter and pass a FXClass object

  • Integrating Java and JavaFX..?

    Hi
    I am a new bee to JavaFX. I have a Java program which connects to the MySql Databas and fetches the data and prints the data, and also I have written a Java FX program for my GUI. Is there any way for me to integrate these two program so that the data fetched by using the Java program can be used in Javafx. If is there any way plz let me know.
    Or
    Is there any other way for me to connect to the MySql Database through JavaFx
    Edited by: Ajaybvs on Feb 15, 2010 7:35 PM

    It is a common question that have been answered several times on this forum.
    I suggest to try and use the search facilities...
    But in short, in JavaFX you instantiate Java objects as usual (var x = new JavaObject();) and you can use them freely.

  • Java and JavaFX

    Hi,
    How can I integrate java in the javaFX class?
    I need my graphical application take data from file. I'd want using java file api in the javaFX.
    Thanks

    You can use a Java class inside of a JavaFX class similarly to a JavaFX class. Only major difference is instantiation:
    import java.io.File
    var file : File = new File("some path");

  • How do I mix text and Html format in a java mail?

    How do I mix text and Html format in a java mail? some part I want to keep the text format, the other part I want to use Html functions(like fond, color, etc)

    You don't mix them. Pick one or the other.
    However if you want to have a text version and an HTML version, so that mail readers that don't handle HTML can see regular text instead, then you could produce a "multipart/alternative" message. There's an explanation of how to do that in this article:
    http://www-128.ibm.com/developerworks/java/library/x-xmlist2/

  • Difference between Java applet and JavaFX

    Hello, all!
    I am studying javaFX in general. As far as I understand there is no main difference between java applet and javafx, except javafx has different syntax and library simple to use. Is it right?

    Basically, yes. But as you point out, it is supposed to be faster to develop in JavaFX...
    For example, Processing allows to export to applet, and is strong on doing graphics, but to see if user has clicked on a circle, you have to check the mouse coordinates against the circle coordinates, or create your own Circle class: it is at a much lower level.
    Likewise, you can use gaming frameworks like Slick2D or PulpCore, but they might be lacking on GUI (but perhaps faster). Or use Apache's Pivot, strong on GUI, but perhaps lacking a bit on graphics and animation.
    It depends on your needs, if you prefer to stick to Java, etc.

  • Mixing static and dynamic content in a single outputText value causes NPEs

    Hi,
    I am having a problem and I'm wondering if it is a result of my error or if this is a bug.
    I am mixing dynamic and static content in the value attribute of tags (e.g., outputText). On initial page load, everything works fine. However, if the same view is reloaded (e.g., after a failed validation) I get an NPE from JSF:
    [#|2006-10-24T08:49:03.756-0500|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=12;|StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception
    java.lang.NullPointerException
            at com.sun.faces.el.MixedELValueParser.getNextToken(MixedELValueParser.java:140)
            at com.sun.faces.el.MixedELValueParser.parse(MixedELValueParser.java:123)
            at com.sun.faces.el.MixedELValueBinding.getValue(MixedELValueBinding.java:60)
            at javax.faces.component.UIOutput.getValue(UIOutput.java:147)
            at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:82)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:201)
            at com.sun.faces.renderkit.html_basic.LabelRenderer.encodeBegin(LabelRenderer.java:128)
            at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:683)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:443)
            at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:445)
            at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:130)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:445)
            at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:445)
            at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:130)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:445)
            at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
            at javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:609)
            at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:546)
            at com.sun.faces.taglib.html_basic.PanelGridTag.doEndTag(PanelGridTag.java:460)
            at org.apache.jsp.registration_jsp._jspx_meth_h_panelGrid_0(registration_jsp.java:324)
            at org.apache.jsp.registration_jsp._jspx_meth_h_form_0(registration_jsp.java:223)
            at org.apache.jsp.registration_jsp._jspx_meth_f_view_0(registration_jsp.java:157)
            at org.apache.jsp.registration_jsp._jspService(registration_jsp.java:118)
            at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
            at sun.reflect.GeneratedMethodAccessor188.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
            at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
            at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
            at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
            at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
            at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723)
            at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:482)
            at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:417)
            at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:80)
            at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:95)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:313)
            at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:326)
            at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:132)
            at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
            at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
            at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:194)
            at sun.reflect.GeneratedMethodAccessor202.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
            at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
            at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
            at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
            at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
            at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)My code looks like this:
    <h:outputText escape="false"
              value='<link href="#{myBean.styleSheet}" rel="stylesheet" type="text/css"  />' />If I replace this with a much more convoluted set of tags, it works:
    <h:outputText escape="false"
              value='<link href="' /><h:outputText escape="false" value="#{myBean.styleSheet}"
              /><h:outputText escape="false" value='" rel="stylesheet" type="text/css" />' />So is the problem that I am mixing dynamic and static content with a single value? If so, why does it work on the first view, and not after?
    If it matters, I'm using the reference implementation version 1.1 (as included with NetBeans 5.5RC2) on SuSE 10.0 w/ JDK 1.5_09.
    Thanks,
    Bill

    Yes, that's how I originally had it, but then changed it to the outputText approach since a single tag could do what I wanted, as long as I was allowed to mix static and dynamic content within a single value.
    I think this is a bug in JSF 1.1, since if what I am doing is illegal, it should throw an exception on the first page view, not work on first view and throw an exception on subsequent views. I'm guessing that this has something to do with the fact that on first page view it only runs the restore view and render response JSF phases, while on subsequent requests all of the phases will be run, and it's in one of those other phases that the exception is thrown.
    For now, multiple tags is the work-around, I guess.
    Thanks,
    Bill

  • Adding a jar to the classpath of an executable jar (mixing -jar and -cp)

    Hello,
    frankly I hesitated over posting this to "New to Java"; my apologies (but also, eternal gratefulness) if there is an ultra-simple answer I have overlooked...
    I integrate a black-box app (I'm not supposed to have the source) that comes packaged as an executable jar (with a Manifest.MF that specifies the main class and a bunch of dependent jars), along with a few dependent jars and a startup script. Long story short, the application code supports adding jars in the classpath, but I can't find a painless way to add a jar in its "classpath".
    The app's "vendor" (another department of my customer company) has a slow turnaround on support requests, so while waiting for their suggestion as to how exactly to integrate custom jars, I'm trying to find a solution at the pure Java level.
    The startup script features a "just run the jar" launch line:
    java -jar startup.jarI tried tweaking this line to add a custom jar in the classpath
    java -cp mycustomclasses.jar -jar startup.jarBut that didn't seem to work ( NoClassDefFound at the point where the extension class is supposed to be loaded).
    I tried various combination of order, -cp/-classpath, using the CLASSPATH environment variable,... and eventually gave up and devised a manual launch line, which obviously worked:
    java -cp startup.jar;dependency1.jar;dependency2.jar;mycustomclasses.jar fully.qualified.name.of.StartupClassI resent this approach though, which not only makes me have to know the main class of the app, but also forces me to specify all the dependencies explicitly (the whole content of the Manifest's class-path entry).
    I'm surprised there isn't another approach: really, can't I mix -jar and -cp options?
    - [url http://download.oracle.com/javase/6/docs/technotes/tools/windows/classpath.html]This document (apparently a bible on the CLASSPATH), pointed out by a repited forum member recently, does not document the -jar option.
    - the [url http://download.oracle.com/javase/tutorial/deployment/jar/run.html]Java tutorial describes how to use the -jar option, but does not mention how it could play along with -cp
    Thanks in advance, and best regards,
    J.
    Edited by: jduprez on Dec 7, 2010 11:35 PM
    Ahem, the "Java application launcher" page bundled with the JDK doc (http://download.oracle.com/javase/6/docs/technotes/tools/windows/java.html) specifies that +When you use [the -jar] option, the JAR file is the source of all user classes, and other user class path settings are ignored+
    So this behavior is deliberate indeed... my chances diminish to find a way around other than specifying the full classpath and main class...

    I would have thought that the main-class attribute of the JAR you name in the -jar option is the one that is executed.Then I still have the burden of copying that from the initial startup.jar's manifest. Slightly less annoying than copying the whole Class-path entry, but it's an impediment to integrating it as a "black-box".
    The 'cascading' behavior is implicit in the specification
    I know at least one regular in addition to me that would issue some irony about putting those terms together :o)
    Anyway, thank you for confirming the original issue, and merci beaucoup for your handy "wrapper" trick.
    I'll revisit the post markers once I've actually tried it.
    Best regards,
    Jérôme

  • About a JTree of mixed String and JLabel leafs

    Dear Java and Swing freaks,
    Why do I get the text code instead of the expected JLabel in the leaves of my JTree ?
    I want to construct a Jtree in which each tree leaf is made of a JLabel (displaying an amount and with a coloured background), followed by a normal String (the label of this amount).
    An array (of arrays) of Ojects describes the tree that I want to display in a Swing JPanel of Container, as in the "2.1 Simple JTREE Example" at URL
    http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/Swing-Tutorial-JTree.html
    So, using the "DefaultMutableTreeNode" class and a "private DefaultMutableTreeNode processHierarchy(Object[] hierarchy)" re-entering function.
    Either the 'nodeSpecifier' is of type 'new Object[]', and the 'processHierarchy()' interpretes it as a new node,
    Or the 'nodeSpecifier' is of type 'JLabel' (or 'String'), and the 'processHierarchy()' has to interprete it as a new leaf.
    Of course, 'JLabel', as 'String', is also a subclass of 'Object'.
            BigDecimal TotalDistrNetBeh1= 1.11;
            Object[] hi�rarchie =
            { "Blablabla",
              new Object[]
              { "Bloc de compteurs",
                new Object[] { "Total1" + " : The 1st listed item = The title of this node",
                                     new JLabel(TotalDistrNetBeh1.toPlainString()),
                       /* + "DistrNetBeh1" */
                                     new JLabel(" 2.22")
                       /* + "DistrNetBeh2" */
                new Object[] { "Total2" + " : Title of this node",
                                     new JLabel("Total Bijdrage Herniewbare energie"),
                   /* Test : Leaf of type 'String' mixed with leaves of type 'JLabel'.
                                     "Total Opties : French and Dutch",
                                     "<html>Total Bijdrage <font color=red>WarmteKrachtKoppeling</font></html>",
                                     TotalDistrNetBeh1.toPlainString() + "Test1",
                                     new JLabel("<html>Total <font color=blue>Test2</font></html>")
            };In the displayed tree, rows with JPanel appear like this :
    javax.swing.JLabel[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=8388608,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,horizontalAlignment=LEADING,horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text= 2.22,verticalAlignment=CENTER,verticalTextPosition=CENTER]
    <b>instead of simply " 2.22"</b>, as if there is a hiden (java.lang.String) casting. Why ?
    Nevertheless, the 'nodeSpecifier' argument in
            else
              child = new DefaultMutableTreeNode(nodeSpecifier); // Leafis casted to (javax.swing.JLabel)
    and 'child' and 'node' - both of 'Object' type - seem to be casted to (javax.swing.tree.DefaultMutableTreeNode)
    For memo :
        private DefaultMutableTreeNode constructHi�rarch(Object[] hi�rarchie)
        { DefaultMutableTreeNode node = new DefaultMutableTreeNode(hi�rarchie[0]);
          DefaultMutableTreeNode child;
          for(int i=1; i<hi�rarchie.length; i++)
          { Object nodeSpecifier = hi�rarchie;
    if (nodeSpecifier instanceof Object[]) // Node with children
    // Re-entering the function
    child = constructHi�rarch((Object[])nodeSpecifier);
    else
    child = new DefaultMutableTreeNode(nodeSpecifier); // Leaf
    node.add(child);
    return(node);
    Is it "DefaultMutableTreeNode(nodeSpecifier)" or "add(child)" that cannot operate properly with a argument of type 'JLabel' ?
    How to solve it ?
    Sorry, I'm a beginner in Java and Swing.
    Thanks in advance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Learn to properly use a TreeCellRenderer
    You never need to add a Component to a JTree, ie JLabel. You add the data, like a String, and then render the component you want to appear. Already, the String you have in your JTree are being rendered using JLabels, with a White Background. Hence, you need to provide a custom renderer that allows you to display different coloured rows depending on your condition or requirements.
    Read a little more on the TreeCellRenderer here: http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html
    ICE

  • Java and javadeveloper_for_mac_os_x_10.7.dmg

    i am having problems installing java and javadeveloper_for_mac_os_x_10.7.dmg, i keep getting an error saying,
    "...can't be installed on this disk. An error occurred while evaluating JavaScript for the package"
    On my Lion 10.7.1 running in VMWare, I can't install java or javadeveloper
    $ uname -a
    Darwin Builds-Mac.local 11.1.0 Darwin Kernel Version 11.1.0: Tue Jul 26 16:07:11 PDT 2011; root:xnu-1699.22.81~1/RELEASE_X86_64 x86_64
    on my host (Lion 10.7.2) I have java installed but I can't install javadeveloper.dmg
    $ uname -a
    Darwin Rajinders-MacBook-Pro.local 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug  9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64
    java -version
    java version "1.6.0_26"
    Java(TM) SE Runtime Environment (build 1.6.0_26-b03-383-11A511)
    Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-383, mixed mode)
    I am trying to build firefox, there is a link here for the javadeveloper.dmg here
    https://developer.mozilla.org/En/Simple_Firefox_build

    My situation is similar in that I want to install Java runtime on Mac OS X 7.3 .. MBP ..
    When querying Terminal>Java -version it states that:
    "To open Java you need to install a Java runtime but you are not connected to the Internet"
    BUT, I assure you I am .. thoughts, ladies and gentlemen ?

  • Java and Flash not working ONLY in Safari

    Ok, so Java and flash stopped working in Safari on my 10.6.8 system. It seems a recent update caused a problem and all of the normal items I have gone through have made it worse or not helped.
    Java is not working in Safari (My account or guest account)
         http://javatester.org/version.html    Error "attempted to load Java content, but Java is unavailable or not installed."
         http://www.java.com/en/download/testjava.jsp " attempted to load Java content, but Java is unavailable or not installed."
         http://www.adobe.com/shockwave/welcome/  Error "Missing plugin"
         Flash tests just say missing plugin
    Java DOES work in Chrome and Firefox
         http://www.java.com/en/download/testjava.jsp
              Java SE 6 Update 31
              Flash - 11,2,202,235 installed
    Able to use apps and other items online that are not working in Safari.
    Have downloaded and installed the following and done the following
         Ran software update
         Verified Java and Java Script are enabled via Safari > Preferences > Security
         Re-installed Java for Mac OS X 10.6 Update 8
         Reinstalled current version of flash
         Looked around and deleted all plist, and java folders in library locations (user and main system)
         Cleared out metadata folders
         Reset Safari several times
         Java Preferences
              Cleared all cache
              Made sure no old versions there (2 entereis)
              Reset all defaults
              Removed any blocked items
    Current Java version per terminal
    java -version
    java version "1.6.0_31"
    Java(TM) SE Runtime Environment (build 1.6.0_31-b04-415-10M3646)
    Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01-415, mixed mode)
    So - Java is up and working - works in Chrome and Firefox. Have reinstalled both from current versions. Reset all browser cache. Issue follows Safari. Normally installing these and trying again works. I do not know what other things to reset or clear out.

    baltwo wrote:
    I thought the OP already went through the preferences app.
    Yes, I got distracted for a moment with something, came back and I didn't finish reading the OP's original post, I have since edited mine.
    BTW, the Mozilla plug-in checker is basically useless for Safari users, since have of those I have have no status, but work in Safari:
    I don't know the causes for the "Research" one's, why there isn't a link or why it doesn't update the checker,
    But at least it's infomative, as vulnerable plug-ins are responsible for MacDefender and Flashback malware attacks.
    Someone with a lot of plug-ins should be running Firefox and NoScript, as your very exposed to multiple attack vectors from any of those plug-ins, which is the purpose of the web site, to get the word out about outdated plug-ins with potential security issues.

  • JavaServer Faces and JavaFX

    Is JavaServer Faces and JavaFX the same?

    Nope, Java FX was only announced in May 2007 whereas JSF has been around for a few years now. JSF is a framework and JavaFX are a series of products.
    Try looking up Wikipedia for the info:
    http://en.wikipedia.org/wiki/Java_FX
    http://en.wikipedia.org/wiki/Java_Server_Faces
    Illu

  • 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

  • UML,Java and Access

    Hello Good morning. Maybe this message has not a lot to do at all with Java. Iam doing a program in Java using UML(both OO).Wouldn't be a contradiction to use MS Access as "DataBase" since Java and UML are Object Oriented?.
    Thanks.
    CELH.

    You are quite right. Thus, I wonder about it because it's strange mixing Object Oriented programming and modeling with a relational DataBase. Maybe a Object Oriented DataBase will suit it better, but then again, you are right: There a few known Object Oriented DataBase.
    Thanks.
    CELH

Maybe you are looking for