File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Associate Certification (SCJA,OCAJ 5/6) and the fly likes javac -version?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Associate Certification (SCJA,OCAJ 5/6)
Bookmark "javac -version??" Watch "javac -version??" New topic
Author

javac -version??

paarul saxena
Greenhorn

Joined: Jun 18, 2008
Posts: 10
i have encountered javac -version as valid in few mocks and invalid on some..though its invalid on java compiler ..i have checked..
also..
does javax.swing support trees and tables...the answer is again ambigous
Anand Shrivastava
Ranch Hand

Joined: Jul 22, 2007
Posts: 125
javac -version is correct. It gives the compiler version of the JDK.
and Swings do support trees and tables.


Anand Shrivastava
SCJA
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

Well, javac -version works, and it sorta looks like it doesn't work.

Here's what I get when I do it locally:



So, it works, but it spits out usage information, because it wants you to know that javac is supposed to be used to compile your code. But, it does indeed work!

Check out the Java applets on this page. There are AWT and Swing Applets. If you look at the SwingSet, you'll see plenty of lists and trees!

Java Applets - Web Based Swing for the Sun Associcates Exam

-Cameron McKenzie
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javac -version??
 
Similar Threads
java 1.5
GUI Swing related
probably a stupid question..but
problem in enhanced for loop
Ant error running javac compiler