




已阅读5页,还剩6页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
在window菜单的preferences向导中,General下的Startup and Shuidown下,勾选Prompt workspace on startup,再重新启动eclipse,即可在启动之初重新选择workspace.显示代码行方法一 快捷键方式:按住 Ctrl + F10 选择 show Line Numbers方法二 手动操作:Window - Prefences - General - Editors - Text Editors - show line numbers使用eclipse怎样打开已有工程在开始使用Eclipse的时候,会发现一个问题,那就是如何打开一个现有的Eclipse工程,开始在菜单中找了好久也没找到。 其实,Eclipse生成的结果不像VC,Jcreator那样可以直接打开,若要打开非workspace文件夹下的其他已有工程,可以打开菜单file-importgeneralexisting project into space.在select root directory中选中要打开的文件夹即可。此时如果选择copy existing project into workspace就会同时将文件拷贝到workspace下。这里首先要保证要保证Eclipse两个文件.classpath和.project还在,不然无法导入,就是说Eclipse的import只认自己家的东西。如果要打开的工程与Eclipse的配置不同,在运行时会产生问题。解决方法是:打开菜单projectproperties修改。主要需要修改的是java build path项。Eclipse 3.1.x (默认用 类文件查看器) 打开项目里的 .class 类文件时, 出现类似 类文件编辑器 找不到源 不存在与类文件 *.class 相连的任何源文件 消息,则说明该项目的类路径没有配置. 若为 Tomcat 应用服务的 web 项目, 类路径(.class 类文件的目录结构)应类似为:webRoot/WEB-INF/classes 或 webApp/. 或 webContent/.等.配置项目的类路径, 可打开项目的属性(右键点击项目,弹出菜单中选择属性), 在 Java 构建路径 面板中, 选择 库 标签面板, 点击 添加类文件夹. 按钮选择 类路径文件夹(classes) 即可.添加 的 classes 文件夹, 也可手动将其添加,打开项目根目录下的 .classpath 项目类路径配置文件, 在 标签中 加入类似为: .1.一、下载: 下载插件: 下载jadclipse_3.3.0.jar版本,该版本支持eclipse3.2M5以上。 下载Jad反编译工具: ,在该页中找到适合自己操作系统平台的jad下载。下载后解压,然后将解压后的jad.exe文件复制到%JAVA_HOME%BIN目录下面(可以将jad.exe随便放到哪,只要记住路径就好,下面要用到)。 三、设置参数: 启动eclipse,打开:Window-Preferences-Java-JadClipse. 1、Path to decompiler,这里设置反编译工具jad的全路径名,比如:%JAVA_HOME%binjad.exe. 2、Directory for temporary files,这里设置临时文件路径。 至于Window-Preferences-Java-JadClipse目录下的Debug,Directives,Formatting,Misc目录中的参数设置,就不用管了,默认就OK。 四、安装完成后,eclipse自动将JadClipse Class File Viewer设置成class文件的缺省打开方式。如果没有默认,可以在Eclipse的Windows PerferenceGeneral-Editors-File Associations中修改“*.class”默认关联的编辑器为“JadClipse Class File Viewer”。设置完成后,双击*.class文件,eclipse将自动反编译。 注: 对于存在源代码的类,它不会强行反编译,也就是说它还是会用eclipse自带的Class File Viewer查看class文件。JD-Eclipse is a plug-in for the Eclipse platform. It allows you to display all the Java sources during your debugging process, even if you do not have them all.JD-Eclipse is free for non-commercial use. This means that JD-Eclipse shall not be included or embedded into commercial software products. Nevertheless, this project may be freely used for personal needs in a commercial or non-commercial environments.ScreenshotsClick here to view more screenshots.Supported PlatformsWindows 32/64-bitLinux 32/64-bitMac OSX 32/64-bit on x86 hardwareInstallationWindows Platform PrerequisitesThe native library, included into JD-Eclipse for Windows, has built with Microsoft Visual C+ 2008 Express Edition. Some runtime components of Visual C+ Libraries are required to run the decompiler. You can download and install them from the Microsoft Web site :Microsoft Visual C+ 2008 SP1 Redistributable Package (x86)Microsoft Visual C+ 2008 SP1 Redistributable Package (x64)Eclipse 3.4 InstructionsInstallation of Equinox/p2 plug-inFrom the Help menu in Eclipse, select Software Updates. to open an Software Updates and Add-ons pop-up window (shown below).Select the Available Software tab.Expand Ganymede tree node.Expand Uncategorized tree node.Check Equinox p2 Provisioning tree node (shown below), and click the Install. button.Click the Finish button.Installation of JD-Eclipse plug-inFrom the Help menu in Eclipse, select Software Updates. to open an Software Updates and Add-ons pop-up window.Select the Available Software tab.Add a new remote site to add JD-Eclipse plug-in:Click the Add Site. button to open a Add Site pop-up window.In the Location text box, type the URL for the JD-Eclipse update site: http:/java.decompiler.free.fr/jd-eclipse/update (shown below) and click OK.On the Software Updates and Add-ons window, check the JD-Eclipse Plug-in box (shown below), and click the Install. button.On the next screen, click the Finish button.On the next screen, check the Java Decompiler Eclipse Plug-in certificate box and click the OK button.Eclipse installs the JD-Eclipse plug-in. To finish the installation process, follow the prompts to shut down and re-start Eclipse.Eclipse 3.2, 3.3, 3.5 InstructionsFrom the Help menu in Eclipse, select Software Updates Find and Install. to open an Install/Update pop-up window (shown below).On the Install/Update pop-up window, choose the Search for new features to install option, and click the Next button.Add a new remote site to add JD-Eclipse plug-in:Click the New Remote Site. button to open a New Update Site pop-up window.On the New Update Site pop-up window, type JD-Eclipse Update Site in the site Name text box.In the URL text box, type the URL for the JD-Eclipse update site: http:/java.decompiler.free.fr/jd-eclipse/update (shown below) and click OK.Click the Finish button to switch to the Updates window.On the Updates window, check the JD-Eclipse Update Site box (shown below), and click the Finish button.On the next screen, check the JD-Eclipse Update Site box, and click the Next button.Choose the option to accept the terms of the license agreement, and click the Next button.Click the Finish button.Click the Install All button.Eclipse installs the JD-Eclipse plug-in. To finish the installation process, follow the prompts to shut down and re-start Eclipse.一、下载Jad /jad.html#download,在该页中找到适合自己操作系统平台的jad下载。下载后解压,然后将解压后的jad.exe文件复制到%JAVA_HOME%BIN目录下面(可以将jad.exe随便放到哪,只要记住路径就好,下面要用到)。 二、下载安装jadclipse 方法1、直接将jadclipse_3.3.0.jar复制到%ECLIPSE_HOME%plugins目录下。 方法2、使用link方式安装,建立E:eclipse3.3pluginsjadclipse3.3.0eclipseplugins的目录结构,将jadclipse_3.3.0.jar放到plugins目录下面(注:其中E:eclipse3.3plugins为你自己定义的一个专门放置插件的目录)。再在%ECLIPSE_HOME%links目录下面建立一个jadclipse3.3.0.link文件(该文件名随便取,保证后缀为。link就OK)。文件里面内容为:path=E:eclipse3.3pluginsjadclipse3.3.0.启动eclipse,打开Window-Preferences-Java-JadClipse,如果没有找到JadClipse,检查插件安装的版本是否与你安装的eclipse版本对应。 三、设置参数: 启动eclipse,打开:Window-Preferences-Java-JadClipse. 1、Path to decompiler,这里设置反编译工具jad的全路径名,比如:%JAVA_HOME%binjad.exe. 2、Directory for temporary files,这里设置临时文件路径。 至于Window-Preferences-Java-JadClipse目录下的Debug,Directives,Formatting,Misc目录中的参数设置,就不罗嗦。 四、安装完成后,eclipse自动将JadClipse Class File Viewer设置成class文件的缺省打开方式。如果没有默认,可以在Eclipse的Windows PerferenceGeneral-Editors-File Associations中修改“*.class”默认关联的编辑器为“JadClipse Class File Viewer”。设置完成后,双击*.class文件,eclipse将自动反编译。 注: 对于存在源代码的类,它不会强行反编译,也就是说它还是会用eclipse自带的Class File Viewer查看class文件。jad是java的反编译工具,是命令行执行,反编译出来的源文件可读性较高。可惜用起来不太方便。还好 找到eclipse下的插件,叫jadclipse,安装好之后,只要双击.class文件,就能直接看源文件,包括jar 包中的class文件,也可以直接反编译。 1.下载jad1.5.8g/jad.html#download下载后解压。解压缩后将jad.exe拷贝到JRE的bin目录下,如Javajre1.5.0_06bin 2.下载 jadclipse_3.3.jar /sourceforge/jadclipse/net.sf.jadclipse_3.3.0.jar将jadclipse_3.1.0.jar复制到D:Program Fileseclipsemyplugineclipseplugins目录下(用的是 link方式安装插件的)。 3.启动Eclipse后,在Windows-Perference-Java下面应该会多出一个JadClipse目录,相关的设置可 以在此修改 配置jadclipse:设置path to decompiler为jad.exe的全路径,如:F:Javajre1.5.0_06binjad.exe ,在Directory for temporary files中指定临时文件的路径,如:G:Javaeclipse-SDK-3.0-win32temp4、在Eclipse的Windows-Perference-General-Editors-File Associations中修改“*.class”默 认关联的编辑器为“JadClipse Class File Viewer”5、安装完成,双击class文件,Eclipse将自动反编译了。 good luck!Jodeclipse 是Jode的Eclipse插件,JadClipse是Jad的Eclipse插件,它们都是非常好的反编译插件。 Jode Eclipse Plugin 1.0.5 for Eclipse version 3.1 / 3.2 安装方法 (1)从如下地址下载: /projects/jodeeclipse 把下载下来的文件jodeplugin_1.0.5.zip直接解压到eclipse的plugins目录下。 (2)启动eclipse,help - Software Updates- Find and Install. - Search for new features to install,单击New Remote Site. 在URL栏输入 /eclipse/update然后下一步,就可以看到“jode decompiler plugin *.*”,选上安装就可以了。安装好后可以看到Window - Preferences.- Java - Jode Decompiler选项卡,okay,安装成功了。 配置:Window- Preferences. - General - Editors - File Associations找到*.class在Associated editors里面可以看到Jode class file viewer选中它再单击Default按钮. JadClipse Eclipse Plugin for Eclipse version 3.1 / 3.2/3.3一、下载: 下载插件: 下载jadclipse_3.1.0.jar版本,该版本支持eclipse3.1M63.2M2 下载jadclipse_3.2.0.jar版本,该版本支持eclipse3.2M3和eclipse3.2M4. 下载jadclipse_3.2.4.jar版本,该版本支持eclipse3.2M53.3M5 下载jadclipse_3.3.0.jar版本,该版本支持eclipse3.3M6以上版本 下载Jad反编译工具: /jad.html#download,在该页中找到适合自己操作系统平台的jad下载。下载后解压,然后将解压后的jad.exe文件复制到%JAVA_HOME%bin目录下面(可以将jad.exe放到任意位置,只要记住其存放路径就好,下面要用到)。 二、安装: Eclipse中的插件安装可以参考:Eclipse使用技巧(三)Eclipse中插件的安装 方法1、直接将jadclipse_x.x.x.jar(x.x.x.代表版本号)复制到%ECLIPSE_HOME%plugins目录下。 方法2、使用link方式安装,建立D:Mypluginsjadclipse3.2.4eclipseplugins的目录结构,将jadclipse_3.2.4.jar放到plugins目录下面(注:其中D:Myplugins为你自己定义的一个专门放置插件的目录)。再在%ECLIPSE_HOME%links目录下面建立一个jadclipse3.2.4.link文件(该文件名随便取)。文件里面内容为:path=D:/Myplugins/jadclipse3.2.4. 三、使用:启动eclipse,点击反编译的类文件,此时会激活jadclipse插件,在eclipse菜单中会多出一个jadclipse菜单,如下图所示:jadclipse插件一般地它会自动反编译相应的class文件,如果没有自动反编译,请点击jadclipse-Decompile如下图所示:jadclipse插件反编译常见问题及解决: (一)启动eclipse,打开Window-Preferences-Java-JadClipse,如果没有找到JadClipse,即JadClipse插件没有激活。 (1)检查插件安装的版本是否与你安装的eclipse版本对应 (2)使用 clean参数来启动eclipse (二)在使用JadClipse插件反编译class文件时出现如下类似错误: /*jadclipse*/ /* DECOMPILATION REPORT Decompiled from: E:Javajre1.5.0_12libextj3dutils.jar Total time: 63 ms Jad reported messages/errors: Exit status: 0 Caught exceptions: java.io.IOException: CreateProcess: E:Javajdk1.5.0_12 -p -t4 -lradix10 -radix10 KeyNavigator.class error=5 at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) at java.lang.ProcessBuilder.start(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at net.sf.jadclipse.JadDecompiler.decompile(JadDecompiler.java:160) at net.sf.jadclipse.JadDecompiler.decompileFromArchive(JadDecompiler.java:217) at net.sf.jadclipse.JadclipseSourceMapper.findSource(JadclipseSourceMapper.java:150) at net.sf.jadclipse.JadclipseSourceMapper.findSource(JadclipseSourceMapper.java:83) at net.sf.jadclipse.JadclipseClassFileEditor.doOpenBuffer(JadclipseClassFileEditor.java:87) at net.sf.jadclipse.JadclipseClassFileEditor.doSetInput(JadclipseClassFileEditor.java:45) at net.sf.jadclipse.JadclipseActionBarContributor.setActiveEditor(JadclipseActionBarContributor.java:87) at ernal.EditorActionBars.partChanged(EditorActionBars.java:335) at ernal.WorkbenchPage$3.run(WorkbenchPage.java:606) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:843) at ernal.WorkbenchPage.activatePart(WorkbenchPage.java:595) at ernal.WorkbenchPage.setActivePart(WorkbenchPage.java:3203) at ernal.WorkbenchPage.activate(WorkbenchPage.java:588) at ernal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2604) at ernal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2528) at ernal.WorkbenchPage.access$10(WorkbenchPage.java:2520) at ernal.WorkbenchPage$9.run(WorkbenchPage.java:2505) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) at ernal.WorkbenchPage.openEditor(WorkbenchPage.java:2500) at ernal.WorkbenchPage.openEditor(WorkbenchPage.java:2485) at ernal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:287) at ernal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:164) at ernal.ui.actions.OpenActionUtil.open(OpenActionUtil.java:49) at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:190) at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:174) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:267) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:243) at ernal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:306) at ernal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:653) at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:817) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:843) at ernal.JFaceUtil$1.run(JFaceUtil.java:44) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149) at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:815) at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1069) at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1168) at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:249) at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:243) at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:283) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968) at ernal.Workbench.runEventLoop(Workbench.java:1930) at ernal.Workbench.runUI(Workbench.java:1894) at ernal.Workbench.createAndRunWorkbench(Workbench.java:422) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at ernal.
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025福建漳州市漳浦县金瑞集团招聘20人考前自测高频考点模拟试题完整参考答案详解
- 2025黑龙江哈尔滨铁道职业技术学院辅导员招聘5人考前自测高频考点模拟试题参考答案详解
- 沧州市中医院肾功能支持技术准入考核
- 2025北京首都医科大学附属北京中医医院招聘22人(第二批)考前自测高频考点模拟试题参考答案详解
- 2025年延边大学急需紧缺教师岗位招聘(3号)(47人)模拟试卷附答案详解(考试直接用)
- 沧州市中医院疑难病例分析处理考核
- 2025年威海技师学院公开招聘工作人员(29名)考前自测高频考点模拟试题附答案详解(黄金题型)
- 2025国网中国电力科学研究院有限公司第二批高校毕业生录用人选的模拟试卷及完整答案详解
- 2025贵州铜仁市万山区事业单位引进高层次及急需紧缺人才12人模拟试卷及答案详解(典优)
- 2025江西南昌市劳动保障事务代理中心招聘劳务外包人员1人模拟试卷及答案详解(考点梳理)
- 宠物乐园方案
- 自备车补贴申请表
- 注塑成型技术培训之工艺理解课件
- 信息论与编码(第4版)完整全套课件
- 广西佑太药业有限责任公司医药中间体项目环评报告书
- 汽修厂安全风险分级管控清单
- 海绵城市公园改造施工组织设计
- 上体自编教材-体育运动概论-模拟
- 05625《心理治疗》案例分析
- GB/T 2679.7-2005纸板戳穿强度的测定
- GB/T 25840-2010规定电气设备部件(特别是接线端子)允许温升的导则
评论
0/150
提交评论