Ok refreshing the workspace has solved the out of sync error. I am trying to create this jar file using the export wizard in eclipse. I managed to create it before using the same procedure but now that System.exit is working, i try to do the same and it doesnt work. I m doing following:
File - Export - Jar File. Then click next
From the src folder select the file and resources i want in jar file and tick the export generated class file resources. Then next
Then in handling problems tick both the boxes at top. click next
Then create a manifest and select main class then finish.
That worked before i deleted the System.class file, which had to be done to solve the initial problem. Error message now reads:
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