Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java 1.4

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been using Java 1.2 and 1.3. People told me that the way we compile (javac) and run (java) our Java programs is now different with Java 1.4. How do we compile and run Java programs with Java 1.4?
 
Dave Landers
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's still javac and java
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your collegues maybe thinking about using assertions with java 1.4. To compile with assertions enabled use
javac -source 1.4 and to run with assertions enabled use java -ea . There are other ways of enabling assertions at runtime, but I do not list them to keep things simple.
-Barry
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic