This site requires JavaScript, please enable it in your browser!
Greenfoot back
SebiRaul
SebiRaul wrote ...

2020/5/15

.jar export error

SebiRaul SebiRaul

2020/5/15

#
Hey all!. So basically I did a game in Greenfoot back in 2018 and I need it for a project right now and I wanted to add a gif to the intro. All good, until I tried to export it in a jar executable. I'm getting a Java Virtual Machine Launcher error which says "Error: A JNI error has occured, please check your installation and try again", "A Java exception has occured" and I tried a lot of things to fix it, but nothing seems to work. My Java version is: "java version "1.8.0_251" Java(TM) SE Runtime Environment (build 1.8.0_251-b08) Java HotSpot(TM) Client VM (build 25.251-b08, mixed mode, sharing)" Any idea? I'm really desperate. Thanks in advance ^-^
SebiRaul SebiRaul

2020/5/17

#
Nothing? ://
Weeb2.exe Weeb2.exe

2020/5/17

#
SebiRaul wrote...
Hey all!. So basically I did a game in Greenfoot back in 2018 and I need it for a project right now and I wanted to add a gif to the intro. All good, until I tried to export it in a jar executable. I'm getting a Java Virtual Machine Launcher error which says "Error: A JNI error has occured, please check your installation and try again", "A Java exception has occured" and I tried a lot of things to fix it, but nothing seems to work. My Java version is: "java version "1.8.0_251" Java(TM) SE Runtime Environment (build 1.8.0_251-b08) Java HotSpot(TM) Client VM (build 25.251-b08, mixed mode, sharing)" Any idea? I'm really desperate. Thanks in advance ^-^
you might want to update your java by going onto javas website and download a new version or you can navigate to java's folder and right click java, then click properties and security then update
SebiRaul SebiRaul

2020/5/17

#
Ok, I just tried that but it doesn't seem to work. I'm getting the same error. Maybe I should tell you what I already did so, I updated Java, JDK, I installed every Greenfoot version since 2.4.0 (the one I originally created the game in) up to 3.6.1, but not a single one is working, the older ones don't have enough memory allocation for that GIF, I tried to fix it but I couldn't give it more than 1 GB, which was also too little apparently and the newer ones can't export it. I also tried disabling Windows Defender, nonoe of the above worked so far.
Super_Hippo Super_Hippo

2020/5/17

#
How big is that GIF?
SebiRaul SebiRaul

2020/5/17

#
It's a 1600 x 890 gif of about 35 MB, but there are a lot more actors and images, so maybe that's why it doesn't have enough memory for that gif.
You need to login to post a reply.