-
Notifications
You must be signed in to change notification settings - Fork 1
Eclipse troubleshoot
In order to work effectively with the iDynoMiCS 2 source, you will need to install a Java IDE (Integrated Development Environment) and a Java Development Kit (JDK). This will enable you to see and interact with the code, which will almost certainly come in handy when you start to get your first errors and would like to see which part of the program is to blame.
The iDynoMiCS 2 source code is written as a series of .java files, written in the syntax of the Java programming language, which can then be read by a compiler and run as a program. In a Java IDE you can view and edit these files, run simulations, step through code, find out where errors are occurring. Because the program is still in development, and unexpected errors and bugs do crop up, it would be ideal for you to use an IDE to run iDynoMiCS 2.That way you will be able to see where errors are occurring and either make fixes for yourselves, or raise issues with us. You will not be expected to learn to code in Java, but you may pick up some understanding of it as you use iDynoMiCS 2. The IDE that our group is most familiar with using is called Eclipse, which can be downloaded here:
https://www.eclipse.org/downloads/
The Java Development Kit is a piece of software that allows your computer to compile and run Java programs. There are various different versions of Java, each with an associated JDK. iDynoMiCS 2 is compatible with JDK 8 and newer. JDK 8 can be found here:
https://www.oracle.com/uk/java/technologies/javase/javase-jdk8-downloads.html
The JDK should contain a Java Runtime Environment (JRE), that Eclipse will use to run iDynoMiCS 2. You may need to change some settings in Eclipse, or whatever your preferred IDE is in order to get it to recognise your JDK once it’s installed.
The JVM incompatible error can occur when multiple versions of JAVA are installed on your local machine. Locate your eclipse folder and open eclipse.ini. Locate the line with -vmargs and insert the following before this line:
-vm
C:\Program Files\Java\jdk-15.0.1\bin\java.exe
where of course the second line should direct to your local java installment.