http://rubenlaguna.com/wp/2008/02/22/attach-source-code-to-a-netbeans-library-wrapper-module/

Attach Source Code to a Netbeans Library Wrapper Module

Feb 22nd, 2008

I’m new in NetBeans and today I’ve been struggling a couple of hours with the simple task of attaching the source code for an external JAR (NetBean Library Wrapper Module).

I’ve been trying to find in google how to do it without success until I reached this post in the netbeans-users mailing list.

Then I realized that I should been looking into the NetBeans Help first. The entry at Help → Help contents → Java Applications → Debugging Applications → Attaching Source Code to a JAR File explains how to do it.

first go to Tools→Libraries to open the Library Manager. Then click on New Library. Give it a name and select the jar. +But you should be careful when adding the Library, though. You must point to the JAR file INSIDE your module library wrapper (that’s <module library wrapper folder>/release/modules/ext/) NOT to the original location of the JAR. (As pointed out in the Help → Help contents → Netbeans Modules → Getting started → Module and Rich-Client Application Tasks: Quick Reference → Attach source code to libraries for debugging.)

Then you should add the library’s source folder in the Source tab of the Library in the Library Manager (you can point to the Javadoc as well).

NOTE: If you plan to attached the sources to the jar because you would like to stepping into the library’s code while debugging, or set a breakpoint in the jar, then you should make sure that the sources are marked for debugging. What?!? Yes, I know. This sounds weird but you have to do it. Start the debugging session in Netbeans open the Sources window (Window→Debugging→Sources) and locate the sources folder in the table, check the box “Use for debugging”.

Attach source code to a Netbeans Library Wrapper Module的更多相关文章

  1. How to build the Robotics Library from source code on Windows

    The Robotics Library is an open source C++ library for robot kinematics, motion planning and control ...

  2. 3 Ways of JDK Source Code Attachment in Eclipse---reference

    You wanna look at a JVM class while you are coding and you cannot. Here is the solution. First of al ...

  3. Tips for newbie to read source code

    This post is first posted on my WeChat public account: GeekArtT Reading source code is always one bi ...

  4. XML.ObjTree -- XML source code from/to JavaScript object like E4X

    转载于:http://www.kawa.net/works/js/xml/objtree-try-e.html // ========================================= ...

  5. Indenting source code

    Artistic Style 1.15.3 A Free , Fast and Small Automatic Formatterfor C , C++ , C# , Java Source Code ...

  6. Artistic Style 3.1 A Free, Fast, and Small Automatic Formatter for C, C++, C++/CLI, Objective‑C, C#, and Java Source Code

    Artistic Style - Index http://astyle.sourceforge.net/ Artistic Style 3.1 A Free, Fast, and Small Aut ...

  7. How to compile and install Snort from source code on Ubuntu

    http://www.tuicool.com/articles/v6j2Ab Snort is by far the most popular open-source network intrusio ...

  8. Tree - Decision Tree with sklearn source code

    After talking about Information theory, now let's come to one of its application - Decision Tree! No ...

  9. Website's Game source code

    A Darkroom by doublespeakgames <!DOCTYPE html> <html itemscope itemtype="https://schem ...

随机推荐

  1. Android实现图片裁切

    介绍 在应用开发中,如果涉及到个人信息,头像一般是不可避免的,类似这种情况,我们就需要用到图片裁切的功能,实现头像裁切,然后上传给服务器. 一般裁切的做法就是图层叠加选取框,然后根据坐标,计算裁切区域 ...

  2. Toast报错 android.content.res.Resources$NotFoundException

    Toast.makeText(getActivity(), String.valueOf(position), Toast.LENGTH_SHORT)                         ...

  3. bower常用命令

    bower install loadash --save bower uninstall loadash --save bower init bower install loadash#2.2.1 b ...

  4. 漫游Kafka实现篇之消息和日志

    消息格式 消息由一个固定长度的头部和可变长度的字节数组组成.头部包含了一个版本号和CRC32校验码. /** * 具有N个字节的消息的格式如下 * * 如果版本号是0 * * 1. 1个字节的 &qu ...

  5. HDFS 整体把握

    对于HDFS这样一个分布式文件系统,它的目的是为了实现在多台廉价X86服务器上实现大文件存储.     HDFS 是仿造GFS 设计出来的. 如图所示, 这种实现方案是一种采取有一个中心节点, 多个数 ...

  6. linux vim 配置文件(高亮+自动缩进+行号+折叠+优化)

    点评:将一下代码copy到 用户目录下 新建文件为 .vimrc保存即可生效 如果想所有用户生效 请修改 /etc/vimrc (建议先cp一份)"===================== ...

  7. 【Java】从域名得到ip

    package sdfg; import java.net.InetAddress; //import java.net.UnknownHostException; import java.io.*; ...

  8. 【英语】Bingo口语笔记(5) - 英式和美式英语的发音区别

  9. vm虚拟机挂载usb

    首先得保证能在VM里看到usb设备,如图

  10. Hadoop1.1.2伪分布式安装笔记

    一.设置Linux的静态IP 修改桌面图标修改,或者修改配置文件修改 1.先执行ifconfig,得到网络设备的名称eth0 2.编辑/etc/sysconfig/network-scripts/if ...