Migrate database 4.2.5 to 2.0.5 desktop

I have developed since a few years a database under Desktop 4.2.5 which has now over 7 000 nodes and 15 000 relationships.

I am changing my computer and have now installed the newest version 2.0.5 of Ne4j Desktop and have tried to restore my database from a dump file created from the application Desktop 4.2.5 of my previous computer.

Under Neo4j Desktop 2.0.5 (under Ubuntu 24.04.3 LTS), I followed the procedure to stop the instance I just created and from the … menu in the instance I selected the instance load database from file which is said that it supports also .dump files and selected the dump file in the directory home/…./dbmss/dbms-xxx. I received an error message saying the request cannot be executed. I then opened a terminal at dbms-xxx level where I typed the following instruction bin/neo4j-admin database load <nameoffile.dump> --from-path= –overwrite-destination=true –verbose. The error message is “JAVA_HOME is not defined correctly. We cannot execute.”

I since read in another part of the doc that the versions 4.2.5 and 2.0.5 are not compatible. Then I tried to upgrade in the same Desktop from 4.2.5 to 5.15 since I read in the menu of 2.0.5 that I could select up to down 5.15. From another topic I read that I should enable the instruction dbms.allow_upgrade=true in the neo4j.conf file in the subdirectory conf. I did it but unfortunately after importing the dump file into the instance apparently correctly when starting the base I obtained the message Database 'neo4j' is unavailable and after running :sysinfo

Databases
Name
neo4j
system
and Call to dbms.queryJmx failed

Can anyone help me?

With many thanks in advance.

Vincent