User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: Error running Java Standalone Apps

  1. #1
    No Products Registered

    Join Date
    Aug 2008
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Error running Java Standalone Apps

    Hi. I got Multimedia Fusion 2 Dev and am trying to export an app to a Java standalone application. Ive made sure all extensions are compatible, and the build seems to go fine. However when I run it I run into some problems:

    • When I start the app, It starts off the screen and I have to maximize it to see it
    • The app doesn't seem to respond to the mouse clicks (click to continue etc)


    I ran my app from a terminal and this was the output

    Code:
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
            at Application.CPanel.paintComponent(Unknown Source)
            at javax.swing.JComponent.paint(Unknown Source)
            at javax.swing.JComponent.paintChildren(Unknown Source)
            at javax.swing.JComponent.paint(Unknown Source)
            at javax.swing.JComponent.paintChildren(Unknown Source)
            at javax.swing.JComponent.paint(Unknown Source)
            at javax.swing.JLayeredPane.paint(Unknown Source)
            at javax.swing.JComponent.paintChildren(Unknown Source)
            at javax.swing.JComponent.paint(Unknown Source)
            at javax.swing.JComponent.paintToOffscreen(Unknown Source)
            at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
            at javax.swing.RepaintManager.paint(Unknown Source)
            at javax.swing.JComponent._paintImmediately(Unknown Source)
            at javax.swing.JComponent.paintImmediately(Unknown Source)
            at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
            at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
            at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
            at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
            at java.awt.event.InvocationEvent.dispatch(Unknown Source)
            at java.awt.EventQueue.dispatchEvent(Unknown Source)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
            at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
            at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
            at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
            at java.awt.EventDispatchThread.run(Unknown Source)
    Exception in thread "main" java.lang.NullPointerException
            at RunLoop.CRun.f_RemoveObjects(Unknown Source)
            at RunLoop.CRun.doRunLoop(Unknown Source)
            at Application.CRunApp.loopFrame(Unknown Source)
            at Application.CRunApp.startTheFrame(Unknown Source)
            at Application.CRunApp.playApplication(Unknown Source)
            at CRuntime.run(Unknown Source)
            at CRuntime.main(Unknown Source)
    Any help would be appreciated.

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Kimera's Avatar
    Join Date
    Feb 2007
    Location
    Houston, TX
    Posts
    729
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Error running Java Standalone Apps

    I have no idea what any of that means, OK so I understand some but I am wondering...

    Do you get the same reaction from the app if you set it to a standard exe and try it that way?

    If so then we know it's not the Java. Also the Java aspect of MMF is still in beta right now from what I understand and while they have made great leaps in getting this done, the Java platform is not an easy platform to work with at this level from what I understand. I never understood why we would want to use a language desinged for our coffee pot on the web but as the number of devices and computers that is connected to the web grows it just seems to be getting more and more market share due to it's cross-platform abilities and it has grown to be a very interesting platform. Not as cross platform as they would like you to think but it does a good job of it over all I think and I am looking forward to what comes out of it.

    Anyway, you can post a sample of your MFA file in the file archive for others to check out and see if they get the same issue you are having and have people look at the file to see if there is something there as well. There are some other people who I am sure will chime in who have much better info on the Java end of things and they might also have some input for that might help.

    Take care and enjoy MMF, you made a good choice.
    K

  3. #3
    No Products Registered

    Join Date
    Aug 2006
    Location
    Stockholm, Sweden
    Posts
    479
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Error running Java Standalone Apps

    Hi,

    You could always provide the .jar file (or another one that provides the same result) in order for others to test.

    Kimera, Java was chosen as the platform-of-choice because it works well, and wether it was designed for coffe pots or not is not very relevant in comparison to that

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: Error running Java Standalone Apps

    No, I would like to have the MFA file so that I can test it on my machine.

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Kimera's Avatar
    Join Date
    Feb 2007
    Location
    Houston, TX
    Posts
    729
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Error running Java Standalone Apps

    Quote Originally Posted by Bornemix
    Kimera, Java was chosen as the platform-of-choice because it works well, and wether it was designed for coffee pots or not is not very relevant in comparison to that
    What's your point? What do you have against me? Have I verbally put one of your friends in place and your attempting to get back for it, because that what it looks like to me. I offer help to someone and out of 1348 characters you pick a phrase that is only 94 characters long to pound on me about, and yet the rest of your post turns out has no bearing on fixing the issue to begin with as the .jar file will do no good. What I posted was factual, 100% true and though I stand behind what I posted you also seemed to have missed this part of my post...

    "...it does a good job of it over all I think and I am looking forward to what comes out of it."

    Letting NLK know that I am excited about the potential in the JAVA platform.


    Quote Originally Posted by Bornemix
    Java was chosen as the platform-of-choice because it works well
    Let me tell you something, I have no idea how old you are and it really does not matter but I was around when JAVA was invented and released to the web. In fact I was one of the early testers of JAVA when it hit the web so let me give you a bit of history.

    NOBODY and I mean NOBODY that I have ever worked with chooses JAVA because it worked well!
    Cases in point... Lets talk about the video and joystick power of JAVA and you will see it's not a good platform for those areas compared to other options. What JAVA brings to MMF users is the ability to get the functions that do work in Java to work on many things other than a Windows PC, a smart move for any programmer even if it means less functionality in the platform!

    I would recommend you just stay out of my posts as if you continue to take small sections of my posts to make childish remarks about without offering any valid information to the original post you will just continue to irritate me and I am tire of people like you who come in with nothing valid to offer yet always feel they have to put people down for attempting to help others. About 33% of your post was used to put me down as well so I guess I could turn your question back on you as "it was not is not AT ALL relevant" as you put it. What did you expect to achieve by this anyway? Get a life and stay out of mine, please, I don't have time for this type of petty crap, I am here to help people.

    Just as an FYI, this goes for anyone else who feels they want to get in to one of my posts and act this way. If I state something wrong by all means point that out to me. If you can suggest a better way of doing something by all means, point that out in a reply post as well. But if you have nothing truly constructive to add to a post I start and are just wanting to point out other people faults, even if they are not mine, then find another post other than one I started.

    Thanks,
    K

  6. #6
    No Products Registered

    Join Date
    Aug 2006
    Location
    Stockholm, Sweden
    Posts
    479
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Error running Java Standalone Apps

    Hi,

    First of all, I'd like to say that yes I'm probably some 10+ years younger than you, and I always try to have respect to people who are that. (I'm 23)

    Also, you're right in that I didn't contribute anything to the main subject - if there was a .jar I probably could have done that, though

    Also, I could actually agree with that my remark on your statement was a bit misplaced, thinking that it had nothing to do with the subject and that you just mentioned it in "bypassing" (sorry, english is not my native language )

    ---

    Java does work well in some aspects, but maybe not so much in the field of performance as in platform independence, functionality and "power" (as in flexibility, or something).

    Just my $.02 :grin:

  7. #7
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Kimera's Avatar
    Join Date
    Feb 2007
    Location
    Houston, TX
    Posts
    729
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Error running Java Standalone Apps

    No worries! No hard feelings! Oh, by the way, almost double your age! lol I got the grey to prove it too.

    God Bless,
    K

  8. #8
    No Products Registered

    Join Date
    Aug 2006
    Location
    Stockholm, Sweden
    Posts
    479
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Error running Java Standalone Apps

    BTW, I got 2 kids so my age is a bit misleading :grin:

  9. #9
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Kimera's Avatar
    Join Date
    Feb 2007
    Location
    Houston, TX
    Posts
    729
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Error running Java Standalone Apps

    Well then your 50% more adventerous than I am, I stopped at 1 and he is your age, 23!

    But this has gotten a bit off subject so we can go to PM if you want to chat.

    Thanks,
    K

  10. #10
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: Error running Java Standalone Apps

    Is anyone sending Francois the MFA in question so he can look into the issue?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Included files in standalone apps
    By Simon in forum Multimedia Fusion 2 - Technical Support
    Replies: 18
    Last Post: 30th October 2007, 11:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •