Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: from java to javaFX

  1. #1
    Junior Member
    Join Date
    Aug 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default from java to javaFX

    hi all,

    I need your help.. I have successfully writing a program to read smart card (pcsc compliance) in java program. Suddenly i got an idea to port all the code to JavaFX because the GUI is very good and clean. Unfortunately i got stuck when try to port in into javafX. In order to resolve this problem i had strip down all the code and only left minimum code. Below is the final code which is not working.

    package mykadapplet;

    import com.linuxnet.jpcsc.Context;

    public class test {

    private Context ctx ;

    public test(){
    //do nothing


    }
    public void Start()
    {
    ctx = new Context();


    }
    }

    The error occur when it execute ctx= new Context();
    First command to initiate library in pcsc before do connection to the hardware.

    please help me,
    Thank


  2. #2
    Junior Member
    Join Date
    Aug 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: from java to javaFX

    Below is the details on error


    java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at javafx.fxml.FXMLLoader$ControllerMethodEventHandle r.handle(Unknown Source)
    at com.sun.javafx.event.CompositeEventHandler.dispatc hBubblingEvent(Unknown Source)
    at com.sun.javafx.event.EventHandlerManager.dispatchB ubblingEvent(Unknown Source)
    at com.sun.javafx.event.EventHandlerManager.dispatchB ubblingEvent(Unknown Source)
    at com.sun.javafx.event.CompositeEventDispatcher.disp atchBubblingEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatch Event(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispat chEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatch Event(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispat chEvent(Unknown Source)
    at com.sun.javafx.event.EventUtil.fireEventImpl(Unkno wn Source)
    at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
    at javafx.event.Event.fireEvent(Unknown Source)
    at javafx.scene.Node.fireEvent(Unknown Source)
    at javafx.scene.control.Button.fire(Unknown Source)
    at com.sun.javafx.scene.control.behavior.ButtonBehavi or.mouseReleased(Unknown Source)
    at com.sun.javafx.scene.control.skin.SkinBase$4.handl e(Unknown Source)
    at com.sun.javafx.scene.control.skin.SkinBase$4.handl e(Unknown Source)
    at com.sun.javafx.event.CompositeEventHandler.dispatc hBubblingEvent(Unknown Source)
    at com.sun.javafx.event.EventHandlerManager.dispatchB ubblingEvent(Unknown Source)
    at com.sun.javafx.event.EventHandlerManager.dispatchB ubblingEvent(Unknown Source)
    at com.sun.javafx.event.CompositeEventDispatcher.disp atchBubblingEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatch Event(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispat chEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatch Event(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispat chEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatch Event(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispat chEvent(Unknown Source)
    at com.sun.javafx.event.EventUtil.fireEventImpl(Unkno wn Source)
    at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
    at javafx.event.Event.fireEvent(Unknown Source)
    at javafx.scene.Scene$MouseHandler.process(Unknown Source)
    at javafx.scene.Scene$MouseHandler.process(Unknown Source)
    at javafx.scene.Scene$MouseHandler.access$1300(Unknow n Source)
    at javafx.scene.Scene.impl_processMouseEvent(Unknown Source)
    at javafx.scene.Scene$ScenePeerListener.mouseEvent(Un known Source)
    at com.sun.javafx.tk.quantum.GlassViewEventHandler.ha ndleMouseEvent(Unknown Source)
    at com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
    at com.sun.glass.ui.View.notifyMouse(Unknown Source)
    at com.sun.glass.ui.win.WinApplication._runLoop(Nativ e Method)
    at com.sun.glass.ui.win.WinApplication.access$100(Unk nown Source)
    at com.sun.glass.ui.win.WinApplication$2$1.run(Unknow n Source)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    ... 42 more
    Caused by: java.lang.UnsatisfiedLinkError: no jpcsc in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java :1734)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.Runtime.loadLibrary(Runtime.java:811)
    at com.linuxnet.jpcsc.PCSC.<clinit>(PCSC.java:264)
    at com.linuxnet.jpcsc.Context.<clinit>(Context.java:1 7)
    at mykadapplet.test.Start(test.java:24)
    at mykadapplet.MainFormController.handleButtonAction( MainFormController.java:29)
    ... 46 more

  3. #3
    Junior Member
    Join Date
    Aug 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: from java to javaFX

    -- deleted--

    multiple entries

  4. #4
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: from java to javaFX

    Please use [code=java] and [/code] around your code, no matter how short the code may or may not be.

Similar Threads

  1. JavaFX on javaprogrammingforums
    By cselic in forum Forum Updates & Feedback
    Replies: 1
    Last Post: July 31st, 2012, 03:48 PM
  2. Getting error messages with my javafx video player
    By sharksaw40 in forum What's Wrong With My Code?
    Replies: 11
    Last Post: July 24th, 2012, 01:27 AM
  3. Questions about javafx
    By mDennis10 in forum Java Theory & Questions
    Replies: 3
    Last Post: September 5th, 2011, 12:19 AM
  4. [SOLVED] JavaFx
    By chronoz13 in forum Java Theory & Questions
    Replies: 2
    Last Post: August 28th, 2009, 09:13 PM