B4J Question Runtime error

Discussion in 'B4J Questions' started by Pedro Caldeira, Jun 20, 2018.

  1. Pedro Caldeira

    Pedro Caldeira Active Member Licensed User

    Hello All,
    I have a GUI application that load correctly in my development computer, either in debug or release modes.

    when i place the jar in a differente pc also wit windows 10(like mine) orwith windows 7.
    I get a error message

    (RuntimeException)java.lang.RuntimeException:Object should first be initialized (ImageView).
    But I have checked and I don't have any imageview that has not been created wit the designer.
    and i don't have any errors in the Development machine
     
  2. stevel05

    stevel05 Expert Licensed User

    What version of Java is installed on the other pc's
     
  3. Pedro Caldeira

    Pedro Caldeira Active Member Licensed User

    1.8.0_171-b11

    and in the developmente PC exactly the same.
    verified with java -version in the commandline

    the java VM also have the same version : Java Hotsppot 64 bits server VM 25.171-b11, mixed mode
     
  4. stevel05

    stevel05 Expert Licensed User

    Have you tried running the jar on the development PC outside of the IDE?
     
  5. Pedro Caldeira

    Pedro Caldeira Active Member Licensed User

    yes, it runs correctly. Maybe is a question of RAM. The Window has several boxes, and the development PC has 8GB against 2GB from the other PC.
     
  6. Pedro Caldeira

    Pedro Caldeira Active Member Licensed User

    iT is memory, I tried to take out the boxes and eventually it runs.
    It just can't handle 20 boxes :)
    Apparently the forms take too much memory.
     
  7. stevel05

    stevel05 Expert Licensed User

    How large are the images, do they need to be full size or can you load them sampled?
     
  8. Pedro Caldeira

    Pedro Caldeira Active Member Licensed User

    no images, just plain designer boxes.
    Just remember thati use 2 bitmaps to simulate leds, each with 1.3 mb
    going to try to reduce them
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice