简体   繁体   中英

eclipse terminates programs without an error

Eclipse has begun terminating any program I try to run before it does anything. The only output is 4.12 printed to the console. It's not just one program with errors, I've tried running old programs that I know worked before but they all exit with 4.12 being printed out.

I tried downloading a new version of eclipse (Mars.1 Release (4.5.1)) but it hasn't really done anything. In the old version it was exiting everything with the code 4.11 so I've run out of ideas to get this to work again.

EDIT

I'm on a mac, using 64-bit. None of my programs run, I haven't just been leaving the main() empty.

I tried running from the command line and all my programs have changed type from .java to .class The error I got in the command line was

Class names, 'HelloWorld', are only accepted if annotation processing is explicitly requested

The program running was just hello world.

Try to run your programs via command line, outside of Eclipse, just to make sure it's not an IDE configuration. If still your programs fail, try to re-install your JRE/JDK.

if still the problem occurs - provide us with the exact command line errors.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM