Right sorry to repost in this topic. I deleted the system.class file and now system.exit(1) works. So i try to recreate my jar file and it fails with the following.
JAR creation failed. See details for additional information.
Exported with compile warnings:
Java System/src/AsdaSystem.java
File not found: L:\Mayur\SHU\Final Year\Project\Program\Java System\bin\System.class.
L:\Mayur\SHU\Final Year\Project\Program\Java System\bin\System.class (The system cannot find the file specified)
Exported with compile warnings: Java System/src/systemBeans/SystemBean.java
Resource is out of sync with the file system: '/Java System/src/AsdaSystem.ldb'.
For some reason it wants that System.class or it is referring to it. I have double checked/triple checked i havent used System anywhere in the app, i dont know what causing the Jar file creation to fail like this.