I'm doing an Android project and I have a .bin format file which I put it right at the root of my Java project (not in any folder). I tried to retrieve it using FileInputStream such as below:
InputStream file = new FileInputStream("filename.bin");
But it couldn't read the file.
Where should I put my bin file? or is there something else that I need to take note of?
[Edit]The error:
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/ref/FinalReference
[Edit] Solution: Found the solution from here >> Eclipse error: NoClassDefFoundError: java/lang/ref/FinalReference.
1. Find Running configurations -> java application
2. In the new configuration's Classpath tab, find "Android Library" under Bootstrap Entries and remove it.
3. Still in the Classpath tab, select Bootstrap Entries and click the Advanced button.
4. Choose Add Library and click OK.
5. Select JRE System Library and click Next.
6. Select Workspace Default JRE and click Finish.