It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened,
visit the help center.
Closed 8 years ago.
I am working on porting a library over from C++ to Java. I want to know the first / initial steps to begin this port. I am not sure how will I test / debug? I could just start with the "main" file and begin rewriting code, but how and when do I test what I am doing? When I am done the COMPLETE port? How do I start about this, any help would be great.
Any cross platform / etc compiler would help? let me know the steps please
You can wrap the old library in JNI and call it from your unit test to ensure the ported code does exactly the same thing as the old code.
You can port piece-by-piece, bottom-up, and test each piece individually with junit or testng.