Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

board jsons not parsing #1403

Closed
MangyDogUK opened this issue Nov 3, 2021 · 23 comments
Closed

board jsons not parsing #1403

MangyDogUK opened this issue Nov 3, 2021 · 23 comments

Comments

@MangyDogUK
Copy link

image

Running latest sloeber...
been having a nightmare getting it to install on a fresh windows install, with JDK installed.

@MangyDogUK
Copy link
Author

Sorry for not the great bug report... im really tired from loads of system rebuilding over the last few days... This is the last thing to get working.

@jantje
Copy link
Member

jantje commented Nov 3, 2021

Do you have the log file? Seems very similar to #1384

@MangyDogUK
Copy link
Author

error.log

@MangyDogUK
Copy link
Author

Adding --illegal-access=permit to eclipse ini didnt work.

@jantje
Copy link
Member

jantje commented Nov 4, 2021

According to the log you are on java 17 so parsing json files is not going to work.Which is confirmed by the loggings

!ENTRY io.sloeber.core 4 0 2021-10-31 23:17:51.186
!MESSAGE Failed to parse json file "G:\embedcpp-2021-09\eclipse\arduinoPlugin\package_index.json"
!STACK 0
java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module @13140c17
	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)

It can be the workaround no longer works in java17.

I also see java.io.IOException: Unable to resolve plug-in "io.sloeber.application". which basically says your install is not ok.

@MangyDogUK
Copy link
Author

OK, its not ok :D so what do i need to do to get it working... as the usual methods dont seem to be working.

@jantje
Copy link
Member

jantje commented Nov 5, 2021

use java 11

@MangyDogUK
Copy link
Author

image

still getting this after removing JDK17 and installing 11...

@MangyDogUK
Copy link
Author

error.log
fresh install fresh workspace

@jantje
Copy link
Member

jantje commented Nov 5, 2021

How do you install?

@MangyDogUK
Copy link
Author

Downloaded latest eclipse from eclipse.... Selected the embedded option as I use some of the tools it come with.
Then i go to the market place and install sloeber from there.

I have also tried installing via install new software and the link off your site.

@jantje
Copy link
Member

jantje commented Nov 5, 2021

The marketplace install on latest eclipse will hit #1361
We do not support this path as it is very error prone.
FYI Part of CDT embedded is (and has been for a long time) in Sloeber

I have also tried installing via install new software and the link off your site.

I do not understand what you mean with that statement
Here is where you should be http://eclipse.baeyens.it/stable.php?OS=Windows
or you can go directly to the releases here on github https://github.com/Sloeber/arduino-eclipse-plugin/releases

@MangyDogUK
Copy link
Author

image
installed via the install new software.... And getting that again.

@jantje
Copy link
Member

jantje commented Nov 5, 2021

You need java 11

@MangyDogUK
Copy link
Author

MangyDogUK commented Nov 5, 2021 via email

@jantje
Copy link
Member

jantje commented Nov 5, 2021

please provide error log

@MangyDogUK
Copy link
Author

error.log

@MangyDogUK
Copy link
Author

looking at the log it says java 16, but i did install jdk 11

@jantje
Copy link
Member

jantje commented Nov 6, 2021

As I said it is using java 16.
You can modify the sloeber.ini to point to the java you want it to use

-vm
C:/Program Files/Java/jdk-11.0.4/bin/javaw.exe

By the way ... you are not using the product as that comes with a compatible java

@MangyDogUK
Copy link
Author

i think its already set
image

@MangyDogUK
Copy link
Author

oh wait i see it now

@MangyDogUK
Copy link
Author

MangyDogUK commented Nov 6, 2021

seems to be working now

Yep all working now...
Thanks and sorry for being a pain.

@uzi18
Copy link
Contributor

uzi18 commented Nov 6, 2021

@MangyDogUK what is your solution?

@jantje jantje closed this as completed Dec 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants