Page 1 of 1

Eclipse plugin, Create New Project not working

Posted: Fri Jan 17, 2020 8:42 pm
by RichDulabahn
Hello everyone,

I'm having a small problem getting Eclipse to make a new ESP32 project. I'm stepping through the instructions, and everything works well right up until we are ready to make a new project. When you click "Finish", nothing happens. Here's what all I've done:

Oracle Virtualbox 6.0.16
ESP-WROVER-KIT v4
Ubuntu 18.04.3 Desktop ISO

Create VM 4gb ram, 60gb disk, 2 cpu
Install Ubuntu, normal installation
Do all Ubuntu updates after boot, reboot
Install Guest Additions, reboot

Step through this page:
https://docs.espressif.com/projects/esp ... t-started/
Build and flash work properly, "hello world" runs just fine.

Install Eclipse from Ubuntu Software, orange suitcase on the favorites bar
Install java from Oracle by doing the following:
  1. sudo add-apt-repository ppa:linuxuprising/java
  2. sudo apt-get update
  3. sudo apt-get install oracle-java13-installer
Start Eclipse, it works.

Step through this page:
https://github.com/espressif/idf-eclipse-plugin
Get to “Create a New Project” step
Finish button does nothing. No project is created, nothing happens.

Any ideas what I'm doing wrong?

Thanks,
Rich

Re: Eclipse plugin, Create New Project not working

Posted: Mon Jan 20, 2020 5:17 am
by ESP_kondalkolipaka
Hope you've ran "install tools" from eclipse. This will take care of installing and configuring required paths for the eclipse to run esp-idf projects.

Anyway, please send us the error log to see the reported error.
https://github.com/espressif/idf-eclips ... #error-log

Re: Eclipse plugin, Create New Project not working

Posted: Mon Jan 20, 2020 2:05 pm
by RichDulabahn
Hi kondalkolipaka,

Yeah I followed everything on the page including the "install tools" part.

Enclosed is the log, as well as a picture. Thanks for your help. :)

Rich

Re: Eclipse plugin, Create New Project not working

Posted: Mon Jan 20, 2020 2:32 pm
by RichDulabahn
Found the problem! The tip from kondalkolipaka about the error log did the trick - thank you. I'm not much of an Eclipse guru, so I didn't know the log was available.

When I would click the Finish button, that's when you'd see the Unhandled Exception in Loop error show up. If you look at the stack trace it would say:

Code: Select all

java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
A few minutes with Stack exchange found this article:
https://stackoverflow.com/questions/435 ... ption-in-j

Long story short, JAXB is not available on the classpath in Java 9, and removed entirely past Java 11, and I was using Java 13. If you're using a newer version of Ubuntu like 18.04 you have to install an older version of Java 8 like this:

Code: Select all

sudo apt install openjdk-8-jdk openjdk-8-jre
And the plugin will work. Hope this saves someone some headaches. :)

Rich

Re: Eclipse plugin, Create New Project not working

Posted: Tue Jan 21, 2020 2:22 pm
by RichDulabahn
Discovered another thing. Ubuntu 18.04's version of Eclipse doesn't like the plugin even if you have the correct Java installed. You have to use the version of Eclipse mentioned in the readme.md. Use this Eclipse:

https://www.eclipse.org/downloads/packa ... developers

Or else you won't get the Toolbar you need. It's easy to do. Just download, unzip, and run.

toolbar.png
toolbar.png (47.24 KiB) Viewed 8522 times