Eclipse plugin, Create New Project not working

RichDulabahn
Posts: 4
Joined: Fri Jan 17, 2020 8:28 pm

Eclipse plugin, Create New Project not working

Postby RichDulabahn » Fri Jan 17, 2020 8:42 pm

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

ESP_kondalkolipaka
Posts: 188
Joined: Wed Jul 17, 2019 5:26 pm

Re: Eclipse plugin, Create New Project not working

Postby ESP_kondalkolipaka » Mon Jan 20, 2020 5:17 am

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

RichDulabahn
Posts: 4
Joined: Fri Jan 17, 2020 8:28 pm

Re: Eclipse plugin, Create New Project not working

Postby RichDulabahn » Mon Jan 20, 2020 2:05 pm

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
Attachments
eclipse.log
(625.33 KiB) Downloaded 581 times
error.png
error.png (1.43 MiB) Viewed 8550 times

RichDulabahn
Posts: 4
Joined: Fri Jan 17, 2020 8:28 pm

Re: Eclipse plugin, Create New Project not working

Postby RichDulabahn » Mon Jan 20, 2020 2:32 pm

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

RichDulabahn
Posts: 4
Joined: Fri Jan 17, 2020 8:28 pm

Re: Eclipse plugin, Create New Project not working

Postby RichDulabahn » Tue Jan 21, 2020 2:22 pm

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 8526 times

Who is online

Users browsing this forum: No registered users and 77 guests