• Register
0 votes

Problem :

My code works perfectly on my friend's laptop But throws below error on my laptop.

“Error: a jni error has occurred, please check your installation and try again”

I have tried running the code on a Eclipse Juno using Java 7. I have also tested it and also ran a lot of java programs on the laptop all works well. This is a only program which gives above error. This is related to my final year project and I need it to work on my laptop at any case, I will be very grateful to anyone who solves it.

7 5 2
3,870 points

1 Answer

0 votes

Solution :

Answer: Please right-click on a class that contains a main method. Click on the "Run As". Click on a "Java Application". A keyboard shortcut is: Shift+Alt+X J (while holding Shift and Alt, press the X; then release Shift and Alt and press the J).

Detailed Explanation: I am not 100% sure why above problem happens. It may be because of the use of a different jdk. I faced a same error. A solution was easier than I imagined. I was used to run my code using the Ctrl + F11. But when I ran it as the java application (the way I described in the "Answer"), my problem was resolved.

Hope it fixes your problem too!

9 7 4
38,600 points

Related questions

0 votes
1 answer 50 views
Problem : I am trying to retrieve the phone number from my Firebase database, but no matter how I enter it into my database it returns an error on my device as follows: "Message sent to invalid destination. Please check your number and try again. Msg 2127" The ... { // UIApplication.shared.openURL(url as URL) UIApplication.shared.open(urlph as URL, options: [:], completionHandler: nil) } } }
asked Dec 9, 2019 alecxe 7.5k points
1 vote
1 answer 78 views
Problem : I am very new to Programming. I am trying to learn Android Programming with the help of tutorials. I have installed Android Studio (1.2RC0) on my machine. My newly installed Android Studio (1.2 RC0) always shows below error to me: Error running ... Please fix your project and try again.   I am unable to understand above Android error. Please guide me in fixing above Android error.
asked May 16 Martin K 6.6k points
0 votes
1 answer 90 views
Problem : I am having a box with 8gb of ram, so I don't think the total memory is the issue. This application is running properly on boxes with 6gb or less ram. What I am trying to do is to reserve 3GB of space using -Xmx3G command under "VM ... : Error occurred during initialization of VM; Could not reserve enough space for object heap using -Xmx3G Why am I getting such error any clue?
asked Nov 26, 2019 alecxe 7.5k points
0 votes
1 answer 13 views
Problem: I am right now using the react-google-invisible-recaptcha. However it is not working for me during the page load it shows the following message: "Cannot contact reCAPTCHA. Check your connection and try again." Please Note: I have the broadband internet connection which is very fast. Please let me know how can I use the invisible-reCAPTCHA and overcome the existing problem.
asked Jul 23 Raphael Pacheco 4.9k points