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

Problems building with Eclipse on MacOS with M1 #252

Open
rpgoldman opened this issue Sep 26, 2024 · 1 comment
Open

Problems building with Eclipse on MacOS with M1 #252

rpgoldman opened this issue Sep 26, 2024 · 1 comment

Comments

@rpgoldman
Copy link

I checked out a copy of the PRISM repo, and built it with gmake. The build completed successfully.

Then I installed eclipse using brew install eclipse-java.

I started up Eclipse following the instructions here.

The last step was to do "Project > Clean" as instructed:

You probably now want to re-compile PRISM's Java code using Eclipse (select "Project | Clean...") to check that everything is working and to make sure that the code gets compiled with debugging info.

When I did so, though, Eclipse gave me 9,221 errors!

I wonder if there is a simple configuration problem, since the errors I have looked at involve being unable to resolve type references:
image

I feel confident that this is a stupid error on my part, and apologize in advance.

@rpgoldman
Copy link
Author

Partial solution: switch to use JRE System Library with JavaSE-1.8 in the PRISM project settings > Java Build Path > Libraries.

That resolves all the "cannot be resolved" errors -- probably because Java 23 has a much more restricted set of libraries.

But now there are a smaller set of errors because PRISM uses syntax constructs that are not in 1.8.

image

I tried switching to 9, but when I do version 9 comes from Java 23 which has the smaller set of libraries and so goes back to the "cannot be resolved" errors.

We note that the Oracle web site says to use 1.8 on Mac.

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

1 participant