File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Java 1.4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java 1.4" Watch "Java 1.4" New topic

Java 1.4

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
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

Joined: Jul 24, 2002
Posts: 401
It's still javac and java
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
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.

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
I agree. Here's the link:
subject: Java 1.4
It's not a secret anymore!