Using VectorEnumerator Class

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #16
    Originally posted by r035198x
    Is there a cleaner one for the javac as well? I'd think the JDK version might be more important to know than the JRE in (some cases).
    *cough*

    Code:
    javac -version
    kind regards,

    Jos ;-)

    Comment

    • japuentem
      New Member
      • Jun 2007
      • 31

      #17
      Originally posted by JosAH
      *cough*

      Code:
      javac -version
      kind regards,

      Jos ;-)
      The version of java ara 1.6.0_01

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #18
        Originally posted by japuentem
        The version of java ara 1.6.0_01
        Well, then you can and should use the generic versions of your Vectors as I
        described in a previous reply.

        kind regards,

        Jos

        Comment

        • japuentem
          New Member
          • Jun 2007
          • 31

          #19
          Originally posted by JosAH
          Well, then you can and should use the generic versions of your Vectors as I
          described in a previous reply.

          kind regards,

          Jos
          ok, i'll do that and i will tell you the results

          Comment

          • r035198x
            MVP
            • Sep 2006
            • 13225

            #20
            Originally posted by JosAH
            *cough*

            Code:
            javac -version
            kind regards,

            Jos ;-)
            That gives similar output to the
            Code:
            java -showversion
            command.
            The
            Code:
            java -version
            command shows the JRE version info only and looks neat but the
            Code:
            java -showversion
            command shows the JRE version and the usage options of the java command. That
            Code:
            javac -version
            does a similar thing (shows usage options as well) I was wondering if there was one that just shows the javac version without throwing all those usage options at you.

            Comment

            • JosAH
              Recognized Expert MVP
              • Mar 2007
              • 11453

              #21
              Strange, this is what I get:

              Code:
              C:\Documents and Settings\Jos>java -version
              java version "1.6.0_01"
              Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
              Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)
              
              C:\Documents and Settings\Jos>javac -version
              javac 1.6.0
              kind regards,

              Jos

              Comment

              • r035198x
                MVP
                • Sep 2006
                • 13225

                #22
                I get



                java -version
                Code:
                 java version "1.5.0_08"
                Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)
                Java HotSpot(TM) Client VM (build 1.5.0_08-b03, mixed mode, sharing)
                javac -version
                Code:
                 javac 1.5.0_08
                javac: no source files
                Usage: javac <options> 
                where possible options include:
                  -g						 Generate all debugging info
                  -g:none					Generate no debugging info
                  -g:{lines,vars,source}	 Generate only some debugging info
                  -nowarn					Generate no warnings
                  -verbose				   Output messages about what the compiler is doing
                  -deprecation			   Output source locations where deprecated APIs are u
                sed
                  -classpath <path>		  Specify where to find user class files
                  -cp <path>				 Specify where to find user class files
                  -sourcepath <path>		 Specify where to find input source files
                  -bootclasspath <path>	  Override location of bootstrap class files
                  -extdirs <dirs>			Override location of installed extensions
                  -endorseddirs <dirs>	   Override location of endorsed standards path
                  -d <directory>			 Specify where to place generated class files
                  -encoding <encoding>	   Specify character encoding used by source files
                  -source <release>		  Provide source compatibility with specified release
                
                  -target <release>		  Generate class files for specific VM version
                  -version				   Version information
                  -help					  Print a synopsis of standard options
                  -X						 Print a synopsis of nonstandard options
                  -J<flag>				   Pass  directly to the runtime system

                Comment

                • r035198x
                  MVP
                  • Sep 2006
                  • 13225

                  #23
                  Originally posted by r035198x
                  I get



                  java -version
                  Code:
                   java version "1.5.0_08"
                  Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)
                  Java HotSpot(TM) Client VM (build 1.5.0_08-b03, mixed mode, sharing)
                  javac -version
                  Code:
                   javac 1.5.0_08
                  javac: no source files
                  Usage: javac <options> 
                  where possible options include:
                    -g						 Generate all debugging info
                    -g:none					Generate no debugging info
                    -g:{lines,vars,source}	 Generate only some debugging info
                    -nowarn					Generate no warnings
                    -verbose				   Output messages about what the compiler is doing
                    -deprecation			   Output source locations where deprecated APIs are u
                  sed
                    -classpath <path>		  Specify where to find user class files
                    -cp <path>				 Specify where to find user class files
                    -sourcepath <path>		 Specify where to find input source files
                    -bootclasspath <path>	  Override location of bootstrap class files
                    -extdirs <dirs>			Override location of installed extensions
                    -endorseddirs <dirs>	   Override location of endorsed standards path
                    -d <directory>			 Specify where to place generated class files
                    -encoding <encoding>	   Specify character encoding used by source files
                    -source <release>		  Provide source compatibility with specified release
                  
                    -target <release>		  Generate class files for specific VM version
                    -version				   Version information
                    -help					  Print a synopsis of standard options
                    -X						 Print a synopsis of nonstandard options
                    -J<flag>				   Pass  directly to the runtime system
                  Version or OS issue ?

                  Comment

                  • JosAH
                    Recognized Expert MVP
                    • Mar 2007
                    • 11453

                    #24
                    Originally posted by r035198x
                    Version or OS issue ?
                    I guess it's a version issue: my Linux Java 1.6 version just shows the version too.

                    kind regards,

                    Jos

                    Comment

                    • r035198x
                      MVP
                      • Sep 2006
                      • 13225

                      #25
                      Originally posted by JosAH
                      I guess it's a version issue: my Linux Java 1.6 version just shows the version too.

                      kind regards,

                      Jos
                      And my old XP machine with 1.5 also shows the same output as I got above.

                      Comment

                      Working...