File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes version text and JDK version Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "version text and JDK version" Watch "version text and JDK version" New topic

version text and JDK version

jesal dosa
Ranch Hand

Joined: Jun 25, 2007
Posts: 46
So close yet so far. I am just writing the version.txt file

The instructions state
indicating the exact version of JDK you used, and the host platform you worked on.

I have been using the Eclipse IDE and Ant to build the runme jar file. My confusion is that eclipse apparently uses its own Java compiler and i am not sure what the ANT javac option is using to build and compile the classes. I am running the ant build under a separate JRE called jdk1.6.0_13

I am testing the application under the latest the JRE

java version "1.6.0_13"
java(TM) SE Runtime Environment (build 1.6.0_13-b03)
java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)

I have been looking at some post on goggle and here but i cant seem to figure what i put in the version.txt

Do i put jdk1.6.0_13 or jre java version "1.6.0_13"

Some please help and hopefully I can finally submit this.
K. Tsang

Joined: Sep 13, 2007
Posts: 3135

You should put in both the JDK (javac) and JRE (java) versions. Also you should not rely on the IDE internal compiler/runtime. When you do your final testing... do the compilation/running in the command prompt to ensure it works with the installed java environment. Same goes for javadoc command. Of course the 2 really makes no difference.

K. Tsang JavaRanch SCJP5 SCJD OCPJP7 OCPWCD5 OCPBCD5 OCPWSD5 OCMJEA5 part 1 part 2/3
jesal dosa
Ranch Hand

Joined: Jun 25, 2007
Posts: 46
Thanks K. Tsang. I was playing with the eclipse settings and it was using the correct version for the ant javac call. Thanks I will add both the jre and jdk versions in the version.txt

mohamed sulibi
Ranch Hand

Joined: Sep 04, 2005
Posts: 169

i only write the following informations:

Exact version of JDK I used:


Host platform I worked on:

Microsoft Windows XP Service Pack 2

i think it is enough.


Best Regards.
Mohamed Sulibi
scjp , scjd in progress ( from 1/8/2007 till now may be next week).
I agree. Here's the link:
subject: version text and JDK version
jQuery in Action, 3rd edition