# How to use GDNJava

1. Install Java 8.

2. Put GDNJava.jar in any folder, open terminal in that folder, execute the command: 

   `java -jar GDNJava.jar "<absolute path of your spectrum file>"`

3. Then if the reconstruction is success full, you shall see a file named `rec.<your spectrum file name>.gwa` generated in the same folder as your spectrum file.

4. Install GlycoWorkbench 2, use it to open the `gwa` file, then you can see the visualization of the reconstruction result. (Remember to change "Files of Type" to `.gwa` in open dialog.)

   PS: Some names of monosaccharide are different between GDNJava and GlycoWorkbench. Unfortunately we don't know exactly the names they use. If GlycoWorkbench says "invalid type", you may replace that name in `gwa` file with another name and try again.