B4J Question Runtime error

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
 

stevel05

Expert
Licensed User
What version of Java is installed on the other pc's
 

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
 

stevel05

Expert
Licensed User
Have you tried running the jar on the development PC outside of the IDE?
 

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.
 

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.
 

stevel05

Expert
Licensed User
How large are the images, do they need to be full size or can you load them sampled?
 

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
 
Top