-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Cannot find symbol 'sun.misc.Cleaner' on MacOS/Java 9 #1477
Comments
What branch/tag/commit hash are you on? |
master.
|
Can you try Java 8? Seems like the |
Hi, like so:
but I'm still seeing the error:
I'm not familiar with maven/JDK. Thanks |
Maven should be using $JAVA_HOME to choose which version of Java to use, however check to see if it is overwritten in ~/.mavenrc. Here is an article about maven & java home & osx |
Thanks @dbkingsb, that article was really useful. I installed JDK 8 and changed my
wallet-tool builds now. |
Is Java 9 not supported? |
FYI, there is a PR #1533 to migrate from Maven to Gradle. I wonder if WindowsMMapHack.java can maybe simply be removed due to the underlying problem fixed in newer versions of Windows. If it needs to be kept, perhaps we should use reflection? |
I've been investigating this issue for bitcoinj.cash and reflection is the
only satisfactory solution I can find but it does depend on whether the
problem still exists in newer windows. Do you have a reference that
indicates it is? I've exhausted all my Google-fu trying to answer that
question.
…On Mar 13, 2018 9:31 PM, "Andreas Schildbach" ***@***.***> wrote:
FYI, there is a PR #1533 <#1533>
to migrate from Maven to Gradle.
I wonder if WindowsMMapHack.java can maybe simply be removed due to the
underlying problem fixed in newer versions of Windows. If it needs to be
kept, perhaps we should use reflection?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1477 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA52iKR_0vWVoTJZSLq5jWF3myWFUA8fks5td64rgaJpZM4QQmAf>
.
|
I added two tests (dbc4c35) that can hopefully aid to reproduce the original issue. Is there some volunteer running Windows? |
|
Resolved via 1700ec0. I removed the mmap hack for Windows. Let's see if some of the Windows folks complain. |
Has anybody checked "recover from seed" works on windows after the fix? I added a test that fails: Environment: |
We should add the failing test to master. |
I added the test to #1695 |
@schildbach I think we can close this one. |
That's right. The test Oscar mentioned was merged. |
I followed the instructions for a full build but I got a compilation error.
MacOS 10.13.1
Java version: 9.0.1
Apache Maven 3.5.2
git clone ...bitcoinj
mvn clean package
Here's the relevant output:
The text was updated successfully, but these errors were encountered: