Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About version.txt

 
Zhixiong Pan
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes.
 
Petr Hejl
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would recommend to place output of "java -version" there.
 
Zhixiong Pan
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then, how to write pure ASCII into this file?
Thanks.
 
Mark Smyth
Ranch Hand
Posts: 288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Zhixiong Pan:
Then, how to write pure ASCII into this file?
Thanks.


Notepad will be just fine for this purpose.
 
Brian Kelly
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Mark Smyth
Ranch Hand
Posts: 288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not that they'll ever read it mind.



:roll:
 
Niels de Feijter
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I write the system properties java.version and os.name to the version.txt file using ant.
 
Zhixiong Pan
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, I tried to use java File I/O to realize this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic