Eclipse中使用javap

eclipse配置javap命令的方法 本篇文章主要介绍了如何为eclipse配置javap命令,在配置过程中会出现的小问题的解决方法,非常实用,需要的朋友可以参考下 立即下载

什么是javap?

百度百科:javap是jdk自带的一个工具,可以反编译,也可以查看java编译器生成的字节码,是分析代码的一个好工具。

主要用来查看编译器生成的字节码。这样能让我们更好的知道编译器对我们的代码做了什么。


Eclipse下的配置

1.eclipse中点击工具栏: Run > External Tools > External Tools Configuration
2.双击”程序”
3.修改配置

Name: javap(随意)
location: C:\Program Files\JAVA\jdk1.8.0_65\bin\javap.exe(自己的jdk目录)
Working Directory:${workspace_loc\${project_name} (不要改)
Arguments:

-c -verbose  -classpath  ${workspace_loc}/ ${project_name}/bin/${java_type_name}

4.点击Apply应用保存即可

使用:

在需要查看字节码的 .java文件直接点击javap的图标选择自己命名的javap即可
控制台 则会打印编译后的字节码


这里写图片描述

这里写图片描述

选项:
-help 帮助
-l 输出行和变量的表
-public 只输出public方法和域
-protected 只输出public和protected类和成员
-package 只输出包,public和protected类和成员,这是默认的
-p -private 输出所有类和成员
-s 输出内部类型签名
-c 输出分解后的代码,例如,类中每一个方法内,包含java字节码的指令,
-verbose 输出栈大小,方法参数的个数
-constants 输出静态final常量

cmd下使用javap

1.首先使用 javac 编译 test.java文件成为 test.class文件
2.然后使用 javap -c test 即可

这里写图片描述

浮点数加法器设计 一.设计内容及其要求 内容 根据浮点数的运算规则和IEEE754标准,实现浮点数的加法运算器。 要求: 浮点数格式:符号位1位,阶码8位,尾数23位 要求该实验能完整的体现浮点数的运算的五个步骤:对阶、尾数求和、规格化、舍入(要求使用对偶舍入)、溢出判断。 二.基本要素 浮点数 浮点数即实数,实数是所有有理数和无理数的集合。它之所以被称作浮点数,是因为小数点在数中的位置并不是固定的。一个浮点数值分为两部分存储:数值以及小数点在数值中的位置。 计算机中的浮点运算的计算结果一般是不确定的,一块芯片的浮点运算 阅读详情

相关推荐

解决Keil uVision许可证管理中Unknown Product错误

嵌入式开发中,IDE工具的许可证管理是确保开发环境正常运行的关键环节。Keil uVision作为ARM架构的主流开发工具,其许可证系统采用加密验证机制,通过产品版本识别实现授权控制。当出现Unknown Product错误时,通常源于版本兼容性问题或区域发行版差异,这直接影响开发工具链的可用性。特别是在维护历史项目或使用中国特供版时,开发者常会遇到此类问题。通过分析许可证类型、调整安装配置或建立虚拟化开发环境等工程实践方案,可以有效解决这类授权验证故障,保障嵌入式项目的持续集成与交付效率。

weixin_33743248的博客 371

eclipse使用javap工具

${workspace_loc}${project_name} -classpath bin -v ${java_type_name}

czp_374的博客 276

算法-基于MACD的Adaboost股价涨跌预测模型

MACD是一个指标,具体用法是MACD>0看涨,反之看跌,果真是这样的吗?由于所有的技术指标都基于对历史数据的统计,指标的滞后性也就难免,有时候MACD明明大于0,股价仍然跌,有时候macd小于0,股价仍然涨。 本文基于Adaboost算法提出了一种基于macd的线性阀值分类器作为若分类器,通过在限定的解空间内寻找使得错误率最小的阀值和偏置,这样做避免了训练若分类器的复杂性,经验证,这种方法有效。

mtaxot的博客 8036

eclipse的安装与配置

1、下载 eclipse 下载地址:https://www.eclipse.org/downloads/ 点击 【Download Package】 找到JavaEE IDE,点击【Windows x86_64】 点击【Select Another Mirror】,然后点击国内任意一个大学镜像下载即可! 下载成功后,将文件解压即可! 2、启动 eclipse 点击【eclipse.exe】快捷方式来启动eclipse; 3、配置 eclipse 3.1、显示和隐藏视图窗口 软件打开后默认是w

白豆五的博客 26万+

告别纯文本RAG:用Dify 1.11.0多模态知识库,5步搭建一个能“读图”的智能客服助手

本文详细介绍了如何利用Dify 1.11.0多模态知识库构建智能视觉客服助手,通过5个步骤实现图片内容理解与专业回复。从准备多模态素材到配置知识库节点,再到设计工作流逻辑和性能优化,帮助开发者快速搭建高效客服系统,显著提升用户体验和问题解决效率。

weixin_30832143的博客 460

python123题目——判断火车票座位B(异常)

类型:流程控制。

m0_62488776的博客 3577

Eclipse中使用javap反编译字节码

javap是jdk自带的一个工具,可以反编译,也可以查看java编译器生成的字节码,是分析代码的一个好工具。 主要用来查看编译器生成的字节码。这样能让我们更好的知道编译器对我们的代码做了什么。 eclipse下配置 eclipse中点击工具栏: Run > External Tools > External Tools Configuration 双击 Program 添加配置 Name: javap location: D:\java\bin\javap.exe(自己的javap.exe路径

梦里蓝天 567

078、镜头阴影校正:LSC算法原理与标定优化

文章摘要 镜头阴影校正(LSC)是手机影像系统中的关键技术,用于解决镜头渐晕效应导致的画面边缘暗角问题。本文详细分析了LSC算法的核心原理,包括非均匀网格划分、双线性插值等关键技术点,并揭示了标定流程中的常见陷阱(光源均匀性、灰卡反射特性、温度漂移)。文章还深入探讨了增益计算的工程实现细节,以及实际调优中的关键考量因素(色差校正、动态场景适应等)。作者结合15年经验,给出了包括验证方法、网格参数设计、产线标定等实用性建议,强调LSC算法应与光学设计协同优化,才能达到最佳效果。

sundong_81的博客 47

为eclipse配置javap命令

javap命令常用来对java类文件来进行反编译,主要用来对java进行分析的工具,在学习Thinking in Java时,由于需要对类文件反编译,以查看jvm到底对我们写的代码做了哪些优化和处理,比如我看的使用+=对字符串进行拼接时,jvm的处理方式。废话不多说,下面直接带上配置的教程: 点击菜单栏 Run --->  External tools ---> External tools C

Coder-qi's Blog 4584

cartographer ceres后端优化

这里引用一篇文章作用一:用户可以选择使用Problem::AddParameterBlock显式添加参数块;在显式添加的时候ceres会内部进行额外的正确性检查。当Problem::AddParameterBlock()不存在时,Problem::AddResidualBlock()会隐式添加参数块,因此不需要显式调用Problem::AddParameterBlock()函数。ps:类似构造函数,显式构造函数。

南北粉面馆 808

Eclipse 打开报 `An error has occurred. See the log null` 错误及解决方法

摘要:Eclipse启动时报错"An error has occurred. See the log null"通常是由于非正常关闭导致org.eclipse.osgi配置文件损坏所致。解决方法包括:1)以管理员身份启动(适用于权限问题);2)删除损坏的org.eclipse.osgi文件夹;3)最有效的方法是换目录重新安装Eclipse。建议规范使用开发工具、及时备份项目,避免非正常关闭操作,以维护稳定的开发环境。该问题虽小但提醒我们开发工具的日常维护同样重要。

博客 1170

eclipse配置javap命令教程

博主最近刷java题时,遇见很多匪夷所思的问题,常常被答案搞得糊里糊涂,相信很多新手也都遇到过类似的问题,比如下面这题:int i =0; i = i++; System.out.print(i);最后输出0,各家说法,千奇百怪。 这时候我们就需要一个权威的答案,最好就是从本质入手,我们看下这段代码核心的汇编命令: 0: iconst_0 1: istore_1 2: iload_1

披萨大叔的博客 1368

Triton server的部署、构建、backend插件机制代码梳理、模型加载、自定义C++backend流程

Triton inference server的部署、构建、backend机制代码详细梳理、模型加载过程、自定义C++backend流程.

C/C++、嵌入式开发、深度学习算法、模型部署与推理优化 479

【Eclipse】如何配置javap命令

Eclipse中javap.exe命令的配置及其使用: ① 点击Run External tools Configurations ② 点击Program 右键 New ③ Name:javap      Location:安装JDK的bin目录下的javap.exe的路径      working Directory:${workspace_loc}/${project_nam...

开发学习工作日志 1万+

jre9下载 jdk9

(Java SE Runtime Environment 9.0) 9.0u175 官方最新版 【x86|x64】

InTheHand.Net.Personal+BlueTooth4,蓝牙开发

项目中有蓝牙开发的必备dll,现在网上相关的文档博客不少,有的说的多有的说少,但是却很少有这两个dll,分享一下。

Eclipse Maven项目配置Javap

一、配置步骤: 1. 进入External Tool Cofigurations配置: 2. 配置输入内容如下: Name : javap Location: D:\Program Files (x86)\jdk1.8.0_111\bin\javap.exe Working Directory: ${workspace_loc}/${project_name} ...

换了马甲的小强的博客 310

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

Eclipse中配置javap命令

Run→External Tools→External Tools Configurations…进入如下图二所示的Program配置界面。也可以通过如下图一所示的工具栏按钮进入Program配置界面。 图一: 图二: 如上图二所示的“Program”处第一次打开时是空的,右键单击选择”new”。 配置如上图二右侧红框中的三处。Location为当前使用的jdk中javap.exe的位置; Wor

Rainnnbow 2428

jdk-8u144-linux-x64.tar.gz.

该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包

eclipse配置javap反汇编

菜单栏 Run ======> External Tools ==========> External Tools Configurations Program右键 ====> New Configuration 在配置框中输入以下内容: Name:javap Location:C:\Program Files\Java\jdk1.8.0_171\bin\javap.exe ...

xingze的博客 986

001-Eclipse、idea集成javap查看字节码、javap说明

一、概述   分析java语言特性的一个好帮手是使用javap工具查看java编译后的字节码,如何在eclipse中配置javap工具快速查看java字节码。 二、Eclipse集成javap查看字节码   代码工程用的maven结构。默认java编译后的class文件是放在: 工程目录/target/classes 下的   首先进入run -> External Too...

dilv4062的博客 275

Eclipse中使用javap运行配置详解

javap是sun提供的对class文件进行反编译的工具 1、配置Run---external tools---external tools configurations 选择Program 新建javap运行方式 设置location、workspace等选项 如下图: 需要注意的是workspace选择和argument配置 workding directory 设置为${workspac...

程序员之路-Stay Hungry. Stay Foolish. 59

Eclipse使用配置javap

1.如图进行配置 location:填写安装java JDK中bin文件夹里的javap.exe工具 注意Working Directory及Arguments中,在Windows环境下,要使用"\" Arguments即遵循javap命令的格式:javap -c -classpath workingspace\project_name\bin  type_name

woliuyunyicai的专栏 1035

eclipse下反编译工具javap

javap是一个反编译工具。在eclipse中这么设置:

zj8692286的专栏 1854

Eclipse javap设置,解释版

1. Location表示你安装的jdk中javap的位置(jre不包含javap),此处我用的全路径。2. Working Directory表示你需要javap用在哪个Eclipse项目中,这里填写${project_loc}就好(可以点击Variables...搜索到该变量),表示当你选择某个项目某个Class时自动将其project路径获取出来。3. Arguments:其中bin是跟着-...

SWhard的专栏 829

使用Eclipse集成javap查看类的字节码

使用Eclipse集成javap查看类的字节码 设置运行配置 集成javap 参数说明 Name: javap -c location: D:\eclipse-java-oxygen-R-win32-x86_64\JDK\bin\javap.exe Working Directory:${workspace_loc}${project_name} Arguments:-c -verbose -classpath workspaceloc/‘‘{workspace_loc}/` `workspacel​

长臂人猿的博客 484

Eclipse中配置使用javap 反编译工具

什么是javap? javap是jdk自带的反解析工具,在研究JVM原理的时候,经常需要对.class文件进行发编译操作,以查看.class文件中的内容,这时候就需要用到javap了,其实它不是严格意义上的反编译工具(反编译后能够得到源代码),它只是帮我们解析一下.class文件的结构,根据class字节码文件,反解析出当前类对应的code区(汇编指令)、本地变量表、异常表和代码行偏移量映射表、常量池等等信息。并不能够得到源代码。 Eclipse中配置javap Run -> External

wdquan19851029的专栏 1168
上一篇: Eclipse导入Maven项目报错:Dynamic Web Module 3.0 requires Java 1.6
下一篇: JAVA8之lambda表达式详解,及stream中的lambda使用
God_Ming
博客等级 码龄15年 131粉丝 141原创
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值