Q: You're going to have to be a little more detailed with what's happening, or specify that nothing else happens. I think, though, that if you try and run a program and it fails, your JVM is probably crashing on start.
A: Nothing happens, it is behaving exactly like there is a syntax error in the code except there isn't a syntax error, it is not running.
Q: Define "not running".
A: It will not compile.
So lets get this straight.
I suggest you ignore the issue with writing the core dump for now. (A dump won't tell you much anyway ... unless you are good at reading dumps. The thread stacktraces might give some hints though. They could be in the "hs_err_<...>" file ... is one is created.)
Instead try to identify what is causing the problem.
Start by compiling your program from the command line; e.g. using the javac command and setting the classpath etc to be equivalent to what it is when you are compiling in NetBeans. (If you have an Ant or Maven build recipe, run those from the command line ...)
If it works, then there is a compiler bug in the version of NetBeans you are using.
If it gives compilation errors, fix them and try again until your code compiles ... from the command line. Once you've got the fixed program to compile, try it in NetBeans again. If that works, the diagnosis is that there is a bug in NetBeans that is triggered by that particular error in your source code. But you've worked around it.
If you get compiler crashes from the command line, there is something in your code that is triggering compiler bugs on both platforms. This could be tricky. You'll need to progressively cut bits out of your code to try to identify the cause.
If you need more help, post the code that is causing the problems ... preferably after cutting out the bits that DON'T seem to matter.