I am a beginner. I am trying to run a java JDBC program in Eclipse with tomcat server. But when I run the program a pop up "Java virtual machine launcher" window with "A java exception error has occurred" is coming up.I think the code compilation is fine.
So how should I fix this problem.When I surf through different websites, some are saying that I should re-install java again . Is it true. Please help me with the answers.
Thanks in advance
For me, I just delete my metaData folder and start eclipse with importing all the necessary project and library files.
Problem reason
This problem occurs when you are copying the whole eclipse workspace from one System to another system(with a different JVM or configuration). The .metadata
folder inside your project's workspace folder contains the information about the runtime of your project.
Solution
Close eclipse if it is open and just delete the .metadata
folder under your eclipse workspace. Start you eclipse again and you will see the .metadata
is freshly created based on your current JVM configurations.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With