Closed O19E4 closed 6 years ago
ESP32 plugin here: https://github.com/me-no-dev/arduino-esp32fs-plugin
This is built using Arduino and not Processing :)
Hi. Thanks for the link. But I still would like to be able to compile (myself) the .java to .jar. I got quite the same errors. Could you tell me the exacts steps to compile/build the .java to .jar ? This would be great. Thanks in advance.
Best Regards.
Please have a look at travis-ci build script in this repository, it has exact steps.
On Tue, Oct 24, 2017, 02:42 O19E4 notifications@github.com wrote:
Hi. Thanks for the link. But I still would like to be able to compile (myself) the .java to .jar. I got quite the same errors. Could you tell me the exacts steps to compile/build the .java to .jar ? This would be great. Thanks in advance.
Best Regards.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/esp8266/arduino-esp8266fs-plugin/issues/38#issuecomment-338757317, or mute the thread https://github.com/notifications/unsubscribe-auth/AEJceu1TVye9o_OFx_RS0Ky-FKseGR0vks5svN4FgaJpZM4QBqRa .
I got this same problem. The problem is you have to tell javac where those classes are. So I checked out the make.sh file, and saw on line 22 that that's the command you need for javac. Adapting to Windows and got this to work by running: javac -target 1.8 -cp "C:\Program Files (x86)\Arduino\lib\pde.jar;C:\Program Files (x86)\Arduino\lib\arduino-core.jar;C:\Program Files (x86)\Arduino\lib\commons-codec-1.7.jar" -d bin src/ESP8266FS.java from root directory (so the source code is in the src directory above this directory). This of course depends on where your Arduino installation is. Hopefully this is useful to someone!
I get the following:
D:\Development\arduino-esp32fs-plugin>javac -target 1.8 -cp "d:\Program Files (x86)\Arduino\lib\pde.jar;d:\Program Files (x86)\Arduino\lib\arduino-core.jar;d:\Program Files (x86)\Arduino\lib\commons-codec-1.7.jar" -d bin .\src\ESP32FS.java
warning: target release 1.8 conflicts with default source release 17
Changing target 1.8 to target 17 fixed the problem.
This creates multiple class files in the /bin folder. ESP32FS.class ESP32FS$1.class ESP32FS$2.class
If I run jar -cf esp32fs.jar .\bin\com\esp32\mkspiffs*.class then it generates a jar file although when I copy it to the tools folder the Arduino IDE runs but then closes shortly after (the releases version of the jar runs fine though).
Any ideas?
Hi. I planed to edit the ESP8266FS.java according to https://github.com/espressif/arduino-esp32/issues/411, copercini 17 July. I installed "jdk-8u152-windows-x64.exe" and, starting a bash GUI (providen with GIT installation) from "C:\Program Files (x86)\Arduino\tools\ESP8266FS\tool", I got following errors (see below).
Thanks in advance ;)
Regards.