aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes About version.txt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "About version.txt" Watch "About version.txt" New topic
Author

About version.txt

Zhixiong Pan
Ranch Hand

Joined: Jan 25, 2006
Posts: 239
Hi ranchers,
This is a simple question. In case my Java_Home is like "C:\Program Files\Java\jdk1.5.0_09", should I type "jdk1.5.0_09" as the only content in version.txt? Thanks.


SCJP 1.4 SCJD
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
yes.


42
Petr Hejl
Ranch Hand

Joined: Feb 26, 2006
Posts: 68
I would recommend to place output of "java -version" there.
Zhixiong Pan
Ranch Hand

Joined: Jan 25, 2006
Posts: 239
Then, how to write pure ASCII into this file?
Thanks.
Mark Smyth
Ranch Hand

Joined: Feb 04, 2004
Posts: 288
Originally posted by Zhixiong Pan:
Then, how to write pure ASCII into this file?
Thanks.


Notepad will be just fine for this purpose.


SCJP<br />SCJD
Brian Kelly
Ranch Hand

Joined: Jan 04, 2007
Posts: 54
Originally posted by Zhixiong Pan:
Hi ranchers,
This is a simple question. In case my Java_Home is like "C:\Program Files\Java\jdk1.5.0_09", should I type "jdk1.5.0_09" as the only content in version.txt? Thanks.

You need the "host platform you worked on" as well...


SCJA, SCJP (1.4), SCJD
Mark Smyth
Ranch Hand

Joined: Feb 04, 2004
Posts: 288
Not that they'll ever read it mind.



:roll:
Niels de Feijter
Greenhorn

Joined: Aug 25, 2006
Posts: 5
I write the system properties java.version and os.name to the version.txt file using ant.
Zhixiong Pan
Ranch Hand

Joined: Jan 25, 2006
Posts: 239
Oh, I tried to use java File I/O to realize this.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: About version.txt