1. I already completed the assignment. But I did not see any Manifest.MF in my instructions. Do we really need to create one? Is this a must to build MANIFEST.MF? Usually how do you run the program anyway somehow I dont really have any idea.
Throughout this exercise, you must use exclusively the Java 2 platform. You may develop your code using any implementation of the Java 2 platform, but the submission that you return must have been tested and shown to work under a production (not development) version of the Sun Microsystems' Java 2 platform and that platform must not have been superseded by a new production version for more than 18 months by the time you make your submission.
>>> Does this means I need to use JAva 2 Platform instead of JAVA SE 6/7? Please help.
>>> I do not understand that platform must not have been superseded by a new production version for more than 18 months by the time you make your submission. Does this means I cannot use NetBeans 7 and JAVA SE 7?
Andreas Junizar wrote:Do we really need to create one?
I'm not a manifest guru, but as per my knowledge, manifest is necessary to tell the application where to start (i.e. main class) along with other things like application's version etc.
Andreas Junizar wrote:Does this means I need to use JAva 2 Platform instead of JAVA SE 6/7? Please help.
It says Java 2 platform. This doesn't mean JDK 1.2.
Important : about Java SE 6/7 mentioned by you - your assignment and certification title clearly says for which Java version you are attempting. Currently, there's no OCMJD for JDK 7, so if you use JDK 7(and mentions it in your documentation, or your code fails to work on Java version as per your certification title), failure is guaranteed.
Andreas Junizar wrote:I do not understand that platform must not have been superseded by a new production version for more than 18 months by the time you make your submission. Does this means I cannot use NetBeans 7 and JAVA SE 7?
I've already mentioned about Java SE 7. What NetBeans has to do with anything? It is just an IDE. You can use whatever you like - NetBeans 7,6, Eclipse, JEdit, Notepad, vi editor and so on. Just make sure that your code should not contain any auto-generated code by IDE.
Now, about 18 months limit, its as simple as this - e.g. (I'm not using actual figures) say you are attempting OCMJD for JDK 6 and you are using 1.6.0_5, then you must make sure that time lag between release of 1.6.0_5 and latest JDK 6 release available at the time of your submission must not be more than 18 months.
Instead of worrying this thing, I would suggest to get latest release of applicable JDK and start working.
I hope this helps.
All the best.
Is it really mandatory to create Manifest.MF? Right now my jar file is called scjda-AANNNNNNN.jar ...
I do not see manifest.mf file in instruction so if I do not make one, it is not going to FAIL the assignment right. Please help
Andreas JunizarJunizar wrote:Ok , actually I already use the latest one of JDK. Which is JDK 1.7 so it would ok right.
There's nothing like JDK 1.7. Perhaps you mean JDK 7. Have you read my previous reply completely? I've clearly mentioned that
Anayonkar Shivalkar wrote:Currently, there's no OCMJD for JDK 7, so if you use JDK 7(and mentions it in your documentation, or your code fails to work on Java version as per your certification title), failure is guaranteed.
I don't know why you are not using JDK version as per your certification version.
Andreas Junizar wrote:Is it really mandatory to create Manifest.MF? Right now my jar file is called scjda-AANNNNNNN.jar
Well, have you tried running your jar? Does it work properly? As I've already mentioned, I've put manifest file in jar and it didn't create any issues. Bottom line is : jar must work when called via command line. Whether you want to put manifest is I guess your call.
I am using "Java Version 1.7". JDK uses JDK 7.
It is working when I run runme.jar
java -jar runme.jar alone
java -jar runme.jar server
java -jar runme.jar
It is running ok and perfect. So, do you think it is okay to send the assignment without any Manifest.MF since I already have runme.jar and run it into the command line like above.
Andreas Junizar wrote:It is working when I run runme.jar
I guess its fine then, but as I've already mentioned, I did put manifest file. So I don't know if you should take risk of not putting manifest (frankly, I do not know how application is going to identify main class without manifest).
Andreas Junizar wrote:I am using "Java Version 1.7". JDK uses JDK 7.
There's no OCMJD exam yet for JDK 7.
I'm asking for the last time : is there any specific reason for not using JDK version same as your certification title says? Why you are not using same JDK as mentioned in certification title? I've already explained it twice and don't know how I should put this in simpler words. Only thing I can say is : you are breaking a must requirement here.
He's clearly able to run the runme.jar so in this jar there certainly will be a MANIFEST.MF file otherwise the application could not get started (because it's unkwown which class has the main method)
Regarding using JDK 7: it's officially released in July 2011 and the only requirement about which JDK version you can use prevents you to use a JDK when another JDK is already released for more than 18 months, nothing said about using the latest JDK. So I'm convinced using JDK 7 would not result in automatic failure.
It's a poor decision by Oracle to have the JDK version in the title of the certification, because it will get more complicated and make people get confused (certainly during the period when the 18 months period will come to an end and the certification still says "Java SE6 Developer".
Just my 2 cents.
So, is it that user is allowed to use JDK 7 even if certification title says Java SE 6? I'm not sure about this.
I did my certification after Jul 2011 (i.e. JDK 7 was available then), but to be on safer side, I used latest production release of JDK 6.
Anyways, my apologies if I'm wrong.
Anayonkar Shivalkar wrote:So, is it that user is allowed to use JDK 7 even if certification title says Java SE 6?
I'm also not sure, because they added the "6" recently (before it was just "Java SE Developer"). This certification is not really related to a given version of JDK (as like OCPJP for example) and there is also not a must requirement which forbids use of a more recent JDK, so I guess it's not a problem.
So indeed if you want to be on the safe side: just use latest JDK 6 release and use that to develop and test the assignment. But from January 2013 JDK 7 will have officially been released for 18 months and so you can only use that JDK for the assignment