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

Could not find class 'sun.misc.Cleaner' on android #2604

Closed
darting opened this issue Jun 26, 2014 · 6 comments
Closed

Could not find class 'sun.misc.Cleaner' on android #2604

darting opened this issue Jun 26, 2014 · 6 comments

Comments

@darting
Copy link

darting commented Jun 26, 2014

my netty version based on https://github.com/netty/netty/tree/d8d0bbfc26404836770d9e5409e36c77af5a427d

refer: #2599

06-26 17:28:20.722 8680-8680/com.myapplication E/dalvikvm﹕ Could not find class 'sun.misc.Cleaner', referenced from method io.netty.util.internal.PlatformDependent0.
06-26 17:28:20.727 8680-8680/com.myapplication E/dalvikvm﹕ Could not find class 'sun.misc.Cleaner', referenced from method io.netty.util.internal.PlatformDependent0.freeDirectBuffer

@normanmaurer
Copy link
Member

@darting can you try to use netty build from this branch:
https://github.com/netty/netty/tree/android_cleaner_fix

Please let me know if this works on android.

@normanmaurer normanmaurer added this to the 4.0.21.Final milestone Jun 26, 2014
@darting
Copy link
Author

darting commented Jun 27, 2014

How I can build the jar from this branch (https://github.com/netty/netty/tree/android_cleaner_fix)?
every time I use 'mvn clean package' in 'all' directory, maven will download the source codes from remote repository.

@normanmaurer
Copy link
Member

Do it from the root

Am 27.06.2014 um 05:40 schrieb darting notifications@github.com:

How I can build the jar from this branch (https://github.com/netty/netty/tree/android_cleaner_fix)?
every time I use 'mvn clean package' in 'all' directory, maven will download the source codes from remote repository.


Reply to this email directly or view it on GitHub.

@normanmaurer
Copy link
Member

@darting I also have uploaded a jar for you for easier testing: https://drive.google.com/file/d/0Bz2WFwV0VRukM1hlcTlSajlWUzQ/edit?usp=sharing

@darting
Copy link
Author

darting commented Jun 27, 2014

@normanmaurer

Hi, man, seems it can run on android now.
right now I need to write some function testing.
BTW: can I use it on production? or when the android version will be support from official ?

Thanks very much for your help.

@normanmaurer
Copy link
Member

@darting yay :) I will release a version with this fix today! Thanks for testing :)

normanmaurer pushed a commit that referenced this issue Jun 27, 2014
Motivation:

When a user tries to use netty on android it currently fails with "Could not find class 'sun.misc.Cleaner'"

Modification:

Encapsulate sun.misc.Cleaner usage in extra class to workaround this isssue.

Result:
Netty can be used on android again
normanmaurer pushed a commit that referenced this issue Jun 27, 2014
Motivation:

When a user tries to use netty on android it currently fails with "Could not find class 'sun.misc.Cleaner'"

Modification:

Encapsulate sun.misc.Cleaner usage in extra class to workaround this isssue.

Result:
Netty can be used on android again
normanmaurer pushed a commit that referenced this issue Jun 27, 2014
Motivation:

When a user tries to use netty on android it currently fails with "Could not find class 'sun.misc.Cleaner'"

Modification:

Encapsulate sun.misc.Cleaner usage in extra class to workaround this isssue.

Result:
Netty can be used on android again
pulllock pushed a commit to pulllock/netty that referenced this issue Oct 19, 2023
Motivation:

When a user tries to use netty on android it currently fails with "Could not find class 'sun.misc.Cleaner'"

Modification:

Encapsulate sun.misc.Cleaner usage in extra class to workaround this isssue.

Result:
Netty can be used on android again
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants