Help creating hibernate.cfg.xml file

I am following a Hibernate tutorial which has gone well up until now. No one else in the comment section of the Youtube tutorial seems to have this issue. At this point I am trying to create the hibernate.cfg.xml file but I get the error "Cannot invoke "org.eclipse.swt.widgets.Button.getSelection()" because "this.createConsole.Configuration" is null"

The error window shows up once I try to select the "java" file in the "Create Hibernate Configuration File" window ( in Eclipse Wizard )

What I have tried:

- Switching to older versions of Hibernate as suggested.

- Running " configuration.configure("hibernate.cfg.xml");" and then building

- Restarting Eclipse.

How can I create the hibernate.cfg.xml file?