如何在powershell查看.jar文件的java编译版本

整体过程

总的流程如下:

1. 获取.jar文件的绝对地址,即$JarPath

$JarPath = 

2. 选择.jar文件任意一个类,即$ClassName

$ClassName = 

3. 使用以下命令找到major字段跟着数字,即

javap -verbose -cp $JarPath $ClassName | Select-String "major"

$JarPath容易得出,但$ClassName又怎样获取?

这就需要用到命令

jar -tf $JarPath

下面我以本地的两个库mujava.jar和openjava.jar为例子

例子一

首先查看openjava.jar包含的所有类名

jar -tf "C:\Libraries\mujava\openjava.jar"

结果如下

META-INF/
META-INF/MANIFEST.MF
jp/
jp/ac/
jp/ac/tsukuba/
jp/ac/tsukuba/openjava/
openjava/
openjava/mop/
openjava/mop/edit/
openjava/ojc/
openjava/ptree/
openjava/ptree/util/
openjava/syntax/
openjava/test/
openjava/test/stringPlay/
openjava/tools/
openjava/tools/parser/
jp/ac/tsukuba/openjava/NullCompiler.class
jp/ac/tsukuba/openjava/OldJavaCompiler.class
jp/ac/tsukuba/openjava/SunJavaCompiler.class
jp/ac/tsukuba/openjava/SunLibCompiler.class
openjava/mop/AmbiguousClassesException.class
openjava/mop/AnonymousClassEnvironment.class
openjava/mop/CannotAlterException.class
openjava/mop/CannotExecuteException.class
openjava/mop/CannotInspectException.class
openjava/mop/ClassEnvironment.class
openjava/mop/ClosedEnvironment.class
openjava/mop/Environment.class
openjava/mop/FileEnvironment.class
openjava/mop/GlobalEnvironment.class
openjava/mop/MOPException.class
openjava/mop/MetaInfo.class
openjava/mop/Metaclass.class
openjava/mop/NoSuchMemberException.class
openjava/mop/OJClass.class
openjava/mop/OJClassArray.class
openjava/mop/OJClassByteCode.class
openjava/mop/OJClassImp.class
openjava/mop/OJClassNotFoundException.class
openjava/mop/OJClassNull.class
openjava/mop/OJClassSourceCode.class
openjava/mop/OJConstructor.class
openjava/mop/OJConstructorByteCode.class
openjava/mop/OJConstructorImp.class
openjava/mop/OJConstructorSourceCode.class
openjava/mop/OJEnumConstant.class
openjava/mop/OJEnumConstantByteCode.class
openjava/mop/OJEnumConstantImp.class
openjava/mop/OJEnumConstantSourceCode.class
openjava/mop/OJField.class
openjava/mop/OJFieldByteCode.class
openjava/mop/OJFieldImp.class
openjava/mop/OJFieldSourceCode.class
openjava/mop/OJMember.class
openjava/mop/OJMethod.class
openjava/mop/OJMethodByteCode.class
openjava/mop/OJMethodImp.class
openjava/mop/OJMethodSourceCode.class
openjava/mop/OJModifier.class
openjava/mop/OJPrimitive.class
openjava/mop/OJSystem.class
openjava/mop/Signature.class
openjava/mop/Toolbox.class
openjava/mop/edit/OJEditableClass.class
openjava/ojc/CommandArguments.class
openjava/ojc/Compiler.class
openjava/ojc/JavaCompiler.class
openjava/ojc/Main.class
openjava/ojc/TranslatorThread.class
openjava/ptree/AllocationExpression.class
openjava/ptree/ArrayAccess.class
openjava/ptree/ArrayAllocationExpression.class
openjava/ptree/ArrayInitializer.class
openjava/ptree/AssertStatement.class
openjava/ptree/AssignmentExpression.class
openjava/ptree/BinaryExpression.class
openjava/ptree/Block.class
openjava/ptree/BreakStatement.class
openjava/ptree/CaseGroup.class
openjava/ptree/CaseGroupList.class
openjava/ptree/CaseLabel.class
openjava/ptree/CaseLabelList.class
openjava/ptree/CastExpression.class
openjava/ptree/CatchBlock.class
openjava/ptree/CatchList.class
openjava/ptree/ClassDeclaration.class
openjava/ptree/ClassDeclarationList.class
openjava/ptree/ClassLiteral.class
openjava/ptree/CompilationUnit.class
openjava/ptree/ConditionalExpression.class
openjava/ptree/ConstructorDeclaration.class
openjava/ptree/ConstructorInvocation.class
openjava/ptree/ContinueStatement.class
openjava/ptree/DoWhileStatement.class
openjava/ptree/EmptyStatement.class
openjava/ptree/EnumConstant.class
openjava/ptree/EnumConstantList.class
openjava/ptree/EnumDeclaration.class
openjava/ptree/Expression.class
openjava/ptree/ExpressionList.class
openjava/ptree/ExpressionObject.class
openjava/ptree/ExpressionStatement.class
openjava/ptree/FieldAccess.class
openjava/ptree/FieldDeclaration.class
openjava/ptree/ForStatement.class
openjava/ptree/IfStatement.class
openjava/ptree/InstanceofExpression.class
openjava/ptree/LabeledStatement.class
openjava/ptree/Leaf.class
openjava/ptree/List.class
openjava/ptree/Literal.class
openjava/ptree/MemberDeclaration.class
openjava/ptree/MemberDeclarationList.class
openjava/ptree/MemberInitializer.class
openjava/ptree/MethodCall.class
openjava/ptree/MethodDeclaration.class
openjava/ptree/ModifierList.class
openjava/ptree/NonLeaf.class
openjava/ptree/ObjectList.class
openjava/ptree/Parameter.class
openjava/ptree/ParameterList.class
openjava/ptree/ParseTree.class
openjava/ptree/ParseTreeException.class
openjava/ptree/ParseTreeObject.class
openjava/ptree/ReturnStatement.class
openjava/ptree/SelfAccess.class
openjava/ptree/Statement.class
openjava/ptree/StatementList.class
openjava/ptree/SwitchStatement.class
openjava/ptree/SynchronizedStatement.class
openjava/ptree/ThrowStatement.class
openjava/ptree/TryStatement.class
openjava/ptree/TypeName.class
openjava/ptree/TypeParameter.class
openjava/ptree/TypeParameterList.class
openjava/ptree/UnaryExpression.class
openjava/ptree/Variable.class
openjava/ptree/VariableDeclaration.class
openjava/ptree/VariableDeclarator.class
openjava/ptree/VariableInitializer.class
openjava/ptree/WhileStatement.class
openjava/ptree/util/ClassLiteralReplacer.class
openjava/ptree/util/EvaluationShuttle.class
openjava/ptree/util/ExpansionApplier.class
openjava/ptree/util/MemberAccessCorrector.class
openjava/ptree/util/ParseTreeVisitor.class
openjava/ptree/util/PartialParser.class
openjava/ptree/util/ScopeHandler.class
openjava/ptree/util/SourceCodeWriter.class
openjava/ptree/util/TypeNameQualifier.class
openjava/ptree/util/VariableBinder.class
openjava/syntax/AbstractSyntaxRule.class
openjava/syntax/BlockRule.class
openjava/syntax/CompositeRule.class
openjava/syntax/DefaultListRule.class
openjava/syntax/ExpressionListRule.class
openjava/syntax/ExpressionRule.class
openjava/syntax/IdentifierRule.class
openjava/syntax/IterationRule.class
openjava/syntax/JavaSyntaxRules.class
openjava/syntax/NameRule.class
openjava/syntax/PrepPhraseRule.class
openjava/syntax/RestorableTokenSource.class
openjava/syntax/SelectionRule.class
openjava/syntax/SeparatedListRule.class
openjava/syntax/StatementRule.class
openjava/syntax/SyntaxException.class
openjava/syntax/SyntaxRule.class
openjava/syntax/TokenID.class
openjava/syntax/TokenRule.class
openjava/syntax/TokenSource.class
openjava/syntax/TypeNameRule.class
openjava/test/Box$InnerBox.class
openjava/test/Box.class
openjava/test/Box1$InnerBox.class
openjava/test/Box1.class
openjava/test/Crosslexic$1.class
openjava/test/Crosslexic$2.class
openjava/test/Crosslexic$myListCellRenderer.class
openjava/test/Crosslexic$repaintlist.class
openjava/test/Crosslexic.class
openjava/test/Dictionary.class
openjava/test/Edge.class
openjava/test/ExprParserTokenTypes.class
openjava/test/Flower$1OriginalState.class
openjava/test/Flower.class
openjava/test/Graph.class
openjava/test/GraphBase.class
openjava/test/InvalidGraphException.class
openjava/test/InvalidOperatorException.class
openjava/test/Node.class
openjava/test/ParserTest.class
openjava/test/Path.class
openjava/test/Planet$1$class1$haha.class
openjava/test/Planet$1$class1.class
openjava/test/Planet$1.class
openjava/test/Planet.class
openjava/test/RequestForEnhancement.class
openjava/test/Search.class
openjava/test/TruthTable.class
openjava/test/VendingMachine$Planet$SecondSeason.class
openjava/test/VendingMachine$Planet.class
openjava/test/VendingMachine$Season.class
openjava/test/VendingMachine$haha.class
openjava/test/VendingMachine.class
openjava/test/VendingMachine1.class
openjava/test/stringPlay/Application.class
openjava/test/stringPlay/StringTools.class
openjava/test/stringPlay/stringPlay.class
openjava/tools/DebugOut.class
openjava/tools/WriterStack.class
openjava/tools/parser/ASCII_UCodeESC_CharStream.class
openjava/tools/parser/CustomTokenManager.class
openjava/tools/parser/IntAndObj.class
openjava/tools/parser/JavaCharStream.class
openjava/tools/parser/JavaParserConstants.class
openjava/tools/parser/MyToken.class
openjava/tools/parser/ParseException.class
openjava/tools/parser/Parser$1.class
openjava/tools/parser/Parser$JJCalls.class
openjava/tools/parser/Parser$LookaheadSuccess.class
openjava/tools/parser/Parser.class
openjava/tools/parser/ParserConstants.class
openjava/tools/parser/ParserTokenManager.class
openjava/tools/parser/Token.class
openjava/tools/parser/TokenIDPublisher.class
openjava/tools/parser/TokenMgrError.class
openjava/tools/parser/TokenSourceAdapter.class

选中其中的一个类查看编译字段

javap -verbose -cp "C:\Libraries\mujava\openjava.jar" "openjava.mop.OJClass" | Select-String "major"

结果如下

major version: 50

可见这个类编译版本是java SE 6

例子二

首先查看mujava.jar包含的所有类名

jar -tf "C:\Libraries\mujava\mujava.jar"

结果如下

META-INF/MANIFEST.MF
.classpath
doc/.DS_Store
doc/fig/AORBresult.jpg
doc/fig/absolutepath.png
doc/fig/debugmode.png
doc/fig/genmutes.png
doc/fig/markeq.png
doc/fig/percent.png
doc/fig/run1.png
doc/fig/session.jpg
doc/fig/testnew.png
doc/fig/testset.png
doc/muJavaDoc3.aux
doc/muJavaDoc3.log
doc/muJavaDoc3.pdf
doc/muJavaDoc3.synctex.gz
doc/muJavaDoc3.tex
.DS_Store
README.md
.project
com/beust/jcommander/MissingCommandException.class
com/beust/jcommander/ParameterDescription.class
com/beust/jcommander/FuzzyMap$IKey.class
com/beust/jcommander/FuzzyMap.class
com/beust/jcommander/Parameterized.class
com/beust/jcommander/IParameterValidator.class
com/beust/jcommander/IVariableArity.class
com/beust/jcommander/Parameter.class
com/beust/jcommander/ResourceBundle.class
com/beust/jcommander/ParametersDelegate.class
com/beust/jcommander/Strings.class
com/beust/jcommander/IStringConverter.class
com/beust/jcommander/JCommander$1.class
com/beust/jcommander/JCommander$DefaultVariableArity.class
com/beust/jcommander/JCommander$ProgramName.class
com/beust/jcommander/JCommander.class
com/beust/jcommander/StringKey.class
com/beust/jcommander/IDefaultProvider.class
com/beust/jcommander/IParameterValidator2.class
com/beust/jcommander/ParameterException.class
com/beust/jcommander/DynamicParameter.class
com/beust/jcommander/IStringConverterFactory.class
com/beust/jcommander/Parameters.class
com/beust/jcommander/IValueValidator.class
com/beust/jcommander/WrappedParameter.class
com/beust/jcommander/converters/CommaParameterSplitter.class
com/beust/jcommander/converters/BaseConverter.class
com/beust/jcommander/converters/IParameterSplitter.class
com/beust/jcommander/converters/LongConverter.class
com/beust/jcommander/converters/FloatConverter.class
com/beust/jcommander/converters/DoubleConverter.class
com/beust/jcommander/converters/ISO8601DateConverter.class
com/beust/jcommander/converters/BooleanConverter.class
com/beust/jcommander/converters/IntegerConverter.class
com/beust/jcommander/converters/BigDecimalConverter.class
com/beust/jcommander/converters/NoConverter.class
com/beust/jcommander/converters/StringConverter.class
com/beust/jcommander/converters/FileConverter.class
com/beust/jcommander/defaultprovider/PropertyFileDefaultProvider.class
com/beust/jcommander/internal/Sets.class
com/beust/jcommander/internal/DefaultConsole.class
com/beust/jcommander/internal/JDK6Console.class
com/beust/jcommander/internal/Console.class
com/beust/jcommander/internal/Maps.class
com/beust/jcommander/internal/Lists.class
com/beust/jcommander/internal/DefaultConverterFactory.class
com/beust/jcommander/internal/Nullable.class
com/beust/jcommander/validators/PositiveInteger.class
com/beust/jcommander/validators/NoValidator.class
com/beust/jcommander/validators/NoValueValidator.class
mujava/TestExecuterCLISingleThread.class
mujava/TraditionalMutantsGeneratorCLI.class
mujava/MutantsGenerator.class
mujava/OpenJavaException.class
mujava/compileTestcase.class
mujava/makeMuJavaStructure.class
mujava/MutationSystem.class
mujava/AllMutantsGenerator.class
mujava/ClassMutantsGenerator.class
mujava/TestExecuter$1.class
mujava/TestExecuter.class
mujava/TestExecuterCLI$1.class
mujava/TestExecuterCLI$2.class
mujava/TestExecuterCLI$3.class
mujava/TestExecuterCLI.class
mujava/TraditionalMutantsGenerator.class
mujava/ExceptionMutantsGenerator.class
mujava/.DS_Store
mujava/cli/runmutesCom.class
mujava/cli/testnew.class
mujava/cli/doRandomGivenPercentMutants.class
mujava/cli/testnewCom.class
mujava/cli/markequiv.class
mujava/cli/runmutes.class
mujava/cli/markequivCom.class
mujava/cli/doRandomGivenMutationOperator.class
mujava/cli/Util.class
mujava/cli/Pair.class
mujava/cli/genmutes.class
mujava/cli/script.class
mujava/cli/genmutesCom.class
mujava/cmd/MutantsGenerator.class
mujava/cmd/TestRunner.class
mujava/gui/ClassMutantsViewerPanel$1.class
mujava/gui/ClassMutantsViewerPanel$2.class
mujava/gui/ClassMutantsViewerPanel.class
mujava/gui/GenMutantsMain$1.class
mujava/gui/GenMutantsMain.class
mujava/gui/CMOTableModel.class
mujava/gui/FileTableModel.class
mujava/gui/MOTableModel.class
mujava/gui/MutantsGenPanel$1.class
mujava/gui/MutantsGenPanel$2.class
mujava/gui/MutantsGenPanel$3.class
mujava/gui/MutantsGenPanel$4.class
mujava/gui/MutantsGenPanel$5.class
mujava/gui/MutantsGenPanel$6.class
mujava/gui/MutantsGenPanel$7.class
mujava/gui/MutantsGenPanel$8.class
mujava/gui/MutantsGenPanel.class
mujava/gui/TMOTableModel.class
mujava/gui/MutantsViewerPanel$1.class
mujava/gui/MutantsViewerPanel$2.class
mujava/gui/MutantsViewerPanel.class
mujava/gui/RunTestMain$1.class
mujava/gui/RunTestMain.class
mujava/gui/TraditionalMutantsViewerPanel$1.class
mujava/gui/TraditionalMutantsViewerPanel$2.class
mujava/gui/TraditionalMutantsViewerPanel$3.class
mujava/gui/TraditionalMutantsViewerPanel.class
mujava/gui/ResultTableModel.class
mujava/gui/RunTestPanel$1.class
mujava/gui/RunTestPanel$2.class
mujava/gui/RunTestPanel$3.class
mujava/gui/RunTestPanel$4.class
mujava/gui/RunTestPanel$5.class
mujava/gui/RunTestPanel.class
mujava/gui/ClassMutantsViewerPanel.java~1~
mujava/gui/GenEMutantsMain.java~1~
mujava/gui/GenEMutantsMain.java~2~
mujava/gui/MutantsGenPanel.java~1~
mujava/gui/RunTestMain.java~1~
mujava/gui/RunTestMain.java~2~
mujava/gui/RunTestPanel.java~1~
mujava/gui/RunTestPanel.java~2~
mujava/gui/TraditionalMutantsViewerPanel.java~1~
mujava/gui/util/SummaryTableModel.class
mujava/gui/util/CMSummaryTableModel.class
mujava/gui/util/TMSummaryTableModel.class
mujava/gui/util/EMSummaryTableModel.class
mujava/op/IOR_Equivalent.class
mujava/op/UOI_Writer.class
mujava/op/OAN.class
mujava/op/ROR_Writer.class
mujava/op/JTI.class
mujava/op/IHD.class
mujava/op/PCD_Writer.class
mujava/op/OMD_Writer.class
mujava/op/PRV_Writer.class
mujava/op/IOR.class
mujava/op/IOP_Helper.class
mujava/op/ISK_JTD_Writer.class
mujava/op/EOA_Writer.class
mujava/op/PNC.class
mujava/op/EAM.class
mujava/op/EMM_Writer.class
mujava/op/PCC.class
mujava/op/LCR.class
mujava/op/AOR_Writer.class
mujava/op/JID.class
mujava/op/OverloadingHelper.class
mujava/op/ParameterTypeInfo.class
mujava/op/PMD.class
mujava/op/IOR_Writer.class
mujava/op/JTI_Writer.class
mujava/op/JID_Writer.class
mujava/op/JSI.class
mujava/op/EOC_Writer.class
mujava/op/IOP_Writer.class
mujava/op/IPC.class
mujava/op/PCD.class
mujava/op/ABS_Writer.class
mujava/op/ABS.class
mujava/op/PPD.class
mujava/op/PPD_Writer.class
mujava/op/EOC.class
mujava/op/UOI.class
mujava/op/JSD_Writer.class
mujava/op/JDC.class
mujava/op/ABS_AOR_LCR_ROR_UOI.class
mujava/op/PCI_Writer.class
mujava/op/AMC.class
mujava/op/IHD_IHI_EqAnalyzer.class
mujava/op/PNC_Writer.class
mujava/op/IHI.class
mujava/op/IOD.class
mujava/op/IOD_Writer.class
mujava/op/PMD_Writer.class
mujava/op/BindInfo.class
mujava/op/PRV.class
mujava/op/ISD.class
mujava/op/IHI_Writer.class
mujava/op/AMC_Writer.class
mujava/op/JSD.class
mujava/op/EAM_Writer.class
mujava/op/IHD_Writer.class
mujava/op/OMR_Writer.class
mujava/op/PCI.class
mujava/op/JSI_Writer.class
mujava/op/ISI_Writer.class
mujava/op/PCC_Writer.class
mujava/op/IPC_Writer.class
mujava/op/EOA.class
mujava/op/OMD.class
mujava/op/JDC_Writer.class
mujava/op/EMM.class
mujava/op/OAN_Writer.class
mujava/op/JTD.class
mujava/op/LCR_Writer.class
mujava/op/IOP.class
mujava/op/OMR.class
mujava/op/.DS_Store
mujava/op/AMC_Writer.java~1~
mujava/op/EAM_Writer.java~1~
mujava/op/EMM_Writer.java~1~
mujava/op/EOA_Writer.java~1~
mujava/op/EOC_Writer.java~1~
mujava/op/IHD_Writer.java~1~
mujava/op/IHI.java2
mujava/op/IHI.java~1~
mujava/op/IHI.java~2~
mujava/op/IHI_Writer.java~1~
mujava/op/IOD_Writer.java~1~
mujava/op/IOD_Writer.java~2~
mujava/op/IOP_Writer.java~1~
mujava/op/IOR.java~1~
mujava/op/IOR_Writer.java~1~
mujava/op/IPC_Writer.java~1~
mujava/op/ISK.java~1~
mujava/op/ISK_JTD_Writer.java~1~
mujava/op/JDC_Writer.java~1~
mujava/op/JDC_Writer.jbx
mujava/op/JID_Writer.java~1~
mujava/op/JID_Writer.java~2~
mujava/op/JSC.java~1~
mujava/op/JSC_Writer.java~1~
mujava/op/JSD_Writer.java~1~
mujava/op/OAN_Writer.java~1~
mujava/op/OMD_Writer.java~1~
mujava/op/OMR_Writer.java~1~
mujava/op/PCI.java~1~
mujava/op/PMD_Writer.java~1~
mujava/op/PNC_Writer.java~1~
mujava/op/PNC_Writer.jbx
mujava/op/PPD_Writer.java~1~
mujava/op/PRV_Writer.java~1~
mujava/op/basic/SDL_Writer.class
mujava/op/basic/VDL.class
mujava/op/basic/CreateDirForEachMethod.class
mujava/op/basic/LOD_Writer.class
mujava/op/basic/ODL.class
mujava/op/basic/AODS_Writer.class
mujava/op/basic/ODL_Writer.class
mujava/op/basic/COD_Writer.class
mujava/op/basic/AOIU.class
mujava/op/basic/CDL.class
mujava/op/basic/SOR.class
mujava/op/basic/LOI_Writer.class
mujava/op/basic/AORS.class
mujava/op/basic/AOIS_Writer.class
mujava/op/basic/ROR_Writer.class
mujava/op/basic/Arithmetic_OP.class
mujava/op/basic/AOIS.class
mujava/op/basic/ASRS.class
mujava/op/basic/COR.class
mujava/op/basic/AODS.class
mujava/op/basic/LOI.class
mujava/op/basic/COI_Writer.class
mujava/op/basic/VDL_Writer.class
mujava/op/basic/ASRS_Writer.class
mujava/op/basic/AODU.class
mujava/op/basic/AORU_Writer.class
mujava/op/basic/AORS_Writer.class
mujava/op/basic/COR_Writer.class
mujava/op/basic/LOD.class
mujava/op/basic/COD.class
mujava/op/basic/AORB.class
mujava/op/basic/AOIU_Writer.class
mujava/op/basic/AORB_Writer.class
mujava/op/basic/MethodLevelMutator.class
mujava/op/basic/CDL_Writer.class
mujava/op/basic/ROR.class
mujava/op/basic/SOR_Writer.class
mujava/op/basic/COI.class
mujava/op/basic/LOR.class
mujava/op/basic/LOR_Writer.class
mujava/op/basic/AORU.class
mujava/op/basic/AODU_Writer.class
mujava/op/basic/SDL.class
mujava/op/basic/AOR.java~1~
mujava/op/exception/ExceptionAnalyzer.class
mujava/op/exception/EHC_Writer.class
mujava/op/exception/ETD.class
mujava/op/exception/EHD_Writer.class
mujava/op/exception/EFD_Writer.class
mujava/op/exception/EHI.class
mujava/op/exception/ETD_Writer.class
mujava/op/exception/EHD.class
mujava/op/exception/ETC_Writer.class
mujava/op/exception/ETC.class
mujava/op/exception/EHC.class
mujava/op/exception/EHI_Writer.class
mujava/op/exception/EFD.class
mujava/op/util/StatementParser.class
mujava/op/util/TraditionalMutantCodeWriter.class
mujava/op/util/MutantCodeWriter.class
mujava/op/util/CodeChangeLog.class
mujava/op/util/ScopeHandlingMutantCodeWriter.class
mujava/op/util/PolymorphicMutator.class
mujava/op/util/LineNumerAnalyzer.class
mujava/op/util/Mutator.class
mujava/op/util/DeclAnalyzer.class
mujava/op/util/TypeCastMutator.class
mujava/openjava/extension/ScopeHandler.class
mujava/openjava/extension/ExtendedClosedEnvironment.class
mujava/openjava/extension/VariableBinder.class
mujava/openjava/extension/EvaluationShuttle.class
mujava/test/NoMutantException.class
mujava/test/OriginalLoader.class
mujava/test/NoMutantDirException.class
mujava/test/TestResultCLI.class
mujava/test/JMutationLoader.class
mujava/test/TestResult.class
mujava/util/InheritanceINFO.class
mujava/util/MutantDirFilter.class
mujava/util/ExtensionFilter.class
mujava/util/Debug.class
mujava/util/DirFileFilter.class

然后选中其中的一个类查看其编译版本

javap -verbose -cp "C:\Libraries\mujava\mujava.jar" "com.beust.jcommander.JCommander" | Select-String "major"

结果如下

major version: 52

可见这个类编译版本是java SE 8

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/598045.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

【解决openGauss无法使用gs_check等服务器端命令问题】

【解决openGauss无法使用gs_check等服务器端命令问题】 一、问题描述二、问题原因三、解决方法 一、问题描述 [ommopengauss03 ~]$ gs_check -i CheckCPU Parsing the check items config file successfully [GAUSS-53026]: ERROR: Execute SSH command on host 192.168.56.19…

给出一句话来描述想要的图片,就能从图库中搜出来符合要求的

介绍 地址:https://github.com/mazzzystar/Queryable The open-source code of Queryable, an iOS app, leverages the OpenAIs CLIP model to conduct offline searches in the Photos album. Unlike the category-based search model built into the iOS Photos…

项目使用PowerJob

新一代的定时任务框架——PowerJob 简介 PowerJob是基于java开发的企业级的分布式任务调度平台,与xxl-job一样,基于web页面实现任务调度配置与记录,使用简单,上手快速,其主要功能特性如下: 使用简单&…

如何在 Windows 上从电脑硬盘恢复照片

如今,随着相机设备的普及,您可以轻松地一次拍摄一堆照片,将它们传输到硬盘上,然后再拍摄更多照片。但是,如果您的所有照片意外丢失在驱动器中怎么办?你能恢复它们吗? 在本指南中,我…

答案解析——C语言—第3次作业—算术操作符与关系操作符

本次作业链接如下: C语言—第3次作业—算术操作符与关系操作符 1.在C语言中,表达式 7 / 2 的结果是多少? - A) 3.5 - B) 3 - C) 4 - D) 编译错误 答案:B) 3 解析: 在C语言中,当两个整数进行除法运算时&…

EasyRecovery2024永久免费版电脑数据恢复软件

EasyRecovery是一款操作安全、价格便宜、用户自主操作的非破坏性的只读应用程序,它不会往源驱上写任何东西,也不会对源驱做任何改变。它支持从各种各样的存储介质恢复删除或者丢失的文件,其支持的媒体介质包括:硬盘驱动器、光驱、…

postgresql可视化导入csv文件

不需要在命令行copy了,只需简单点几下 1.在数据库下建一个schema 右击选中数据库-new schema 2.双击你创建的schema,出现tables 3.右击tables,选择import wizard 4.选择你想导入的文件格式,之后一直next 5.选择你的文件所在位置…

C语言实用第三方库Melon开箱即用之多线程模型

在之前的文章中(开发利器——C 语言必备实用第三方库),笔者介绍了一款Linux/UNIX下C语言库Melon的基本功能,并给出了一个简单的多进程开箱即用的例子。 本文将给大家介绍Melon中多线程的使用方法。 在Melon中有三种多线程模式&a…

Redis 之父锐评 LLM 编程:全知全能 Stupid|一周IT资讯

阿里通义千问上线“科目三”,刘皇叔、奥特曼、马斯克通通没逃过 在刚到的2024年,阿里通义千问 APP 上线图片生成舞蹈功能,用户只需输入一张图片,就能生成爆款舞蹈图片。 不管是“科目三”,还是鬼步舞、兔子舞&#x…

(18)Linux 实现简易版shell

前言:做一个 "会创建,会终止,会等待,会程序替换" 的简易 shell 。 1、显示提示符和获取用户输入 shell 本质就是个死循环,我们不关心获取这些属性的接口,如果要实现 shell: 1&…

015:JS之正则表达式,web乱码和路径问题总结,MVC架构模式

一 JS的正则表达式 1 正则表达式简介 正则表达式是描述字符模式的对象。正则表达式用于对字符串模式匹配及检索替换,是对字符串执行模式匹配的强大工具。 语法 var pattnew RegExp(pattern,modifiers);//正则的格式模版,修饰符或者更简单的方式:var pa…

权威测评首家通过!亚信安慧AntDB通过中国信通院数据库迁移工具专项测试

近日,亚信安慧数据库数据同步平台在中国信通院第17批“可信数据库”数据库迁移工具专项测试中,完全符合《数据库迁移工具能力要求》,成为首家通过标准测试的产品。这一成果标志着湖南亚信安慧科技有限公司(简称“亚信安慧”&#…

工智能基础知识总结--为什么使用LSTM+CRF进行序列标注

为什么使用LSTM+CRF进行序列标注 直接使用LSTM进行序列标注时只考虑了输入序列的信息,即单词信息,没有考虑输出信息,即标签信息,这样无法对标签信息进行建模,所以在LSTM的基础上引入一个标签转移矩阵对标签间的转移关系进行建模。这一点和传统CRF很像,CRF中存在两类特征函…

Pandas透视表及应用

Pandas 透视表概述 数据透视表(Pivot Table)是一种交互式的表,可以进行某些计算,如求和与计数等。所进行的计算与数据跟数据透视表中的排列有关。 之所以称为数据透视表,是因为可以动态地改变它们的版面布置&#xf…

Git保姆级安装教程

Git保姆级安装教程 一、去哪下载二、安装2.1 具体安装步骤2.2 设置全局用户签名 一、去哪下载 1、官网(有最新版本):https://git-for-windows.github.io/ 2、本人学习时安装的版本,链接:https://pan.baidu.com/s/1uAo…

机器学习-贝叶斯网络

贝叶斯分类器 贝叶斯网络是通过假设数据的先验分布,利用贝叶斯公式计算后验概率,将样本根据概率进行分类。 常用贝叶斯网络:1.朴素贝叶斯分类器;2.半朴素贝叶斯分类器;3.贝叶斯网;4.EM算法 朴素贝叶斯分…

Spark内核解析-数据存储5(六)

1、Spark的数据存储 Spark计算速度远胜于Hadoop的原因之一就在于中间结果是缓存在内存而不是直接写入到disk,本文尝试分析Spark中存储子系统的构成,并以数据写入和数据读取为例,讲述清楚存储子系统中各部件的交互关系。 1.1存储子系统概览 …

LabVIEW开发分布式光纤油气管道泄漏检测及预警系统

LabVIEW开发分布式光纤油气管道泄漏检测及预警系统 随着油气工业的发展,管道泄漏成为一个严峻的安全问题。本文介绍了一种基于LabVIEW的分布式光纤油气管道泄漏检测及预警系统的设计思路和组成结构。系统包括硬件和软件两部分,其中硬件部分详细阐述了分…

Android.bp 常用模块类型

1 jar 用于编译 Java 代码并生成 .jar 文件。一般情况下,Android.bp 文件中会定义多个 jar 模块,每个 jar 模块对应着一个 Java 库 java_library {name: "mylibrary",srcs: ["src/**/*.java"],manifest: "AndroidManifest.xm…