B4J Question Runtime error

Pedro Caldeira

Active Member
Licensed User
Longtime 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
Longtime User
What version of Java is installed on the other pc's
 
Upvote 0

Pedro Caldeira

Active Member
Licensed User
Longtime 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
 
Upvote 0

stevel05

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

Pedro Caldeira

Active Member
Licensed User
Longtime 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.
 
Upvote 0

Pedro Caldeira

Active Member
Licensed User
Longtime 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.
 
Upvote 0

stevel05

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

Pedro Caldeira

Active Member
Licensed User
Longtime 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
 
Upvote 0
Top