Jbuilder 每日提示 (转)

本文提供了JBuilder中的实用技巧,包括如何使用两步法打包WebStart应用、如何配置不同的调试信息选项、如何快速定位执行点等。此外还介绍了如何通过文件标签菜单进行调试和构建操作,并指导用户如何在帮助查看器中查找文档。
Jbuilder 每日提示 (转)[@more@]

JBuilder Tip Of DayXML:namespace prefix = o ns = "urn:schemas-microsoft-com:Office:office" />

每日提示

1、Package an application for web Start in two steps:

两步打包一个Web Start应用程序

First  , creat a JAR for your application files using the Archive Builder(Wizards |Archive Builder).

首先,利用文档建筑器(Wizards |Archive Builder)为你的应用程序文件创建一个JAR

Second , run the Web Start Launcher wizard to create a sample home page and a .jnlp file.

然后,运行Web Start Launcher wizard来创建一个实例主页和一个.jnlp文件

When you make the homepage available in a web server ,users who have Web Start installed can launch the application with a single click on the link in the homepage.

当你把这个主页放到一个服务器上时,安装了Web Start用户只需单击主页上的链接就可以启动该应用程序

2、Compile with debug information

调试信息的编译:

Control your debug information .Choose from these debug options on the Build page of Progect Properties(Project|Project Properties):

控制你的调试信息。从工程属性(Project|Project Properties)建造页的以下调试选项里选择

*source , Line , and Variable Information

源程序,所在行,和变量信息

*Source And Line Only

仅源程序和所在行

*Source Only

仅源程序

*None

没有

Rebuild your project for these changes to take effect . In JBuilder Personal ,

重新构造你的工程这些改动会起作用。在JBuilder Personal中,

only two options are available: Source,Line,and Variable Information and Source And Line Only.

只有两个选项时可用的:Source, Line, and Variable Information和 Source And Line Only.

3、Find the execution point

寻找中断点

To find the current execution point ,choose Run|Show Execution Point or click the Show Current Frame icon on the debugger toolbar.

想要找到当前的中断点,选择Run|Show Execution Point 或者点击在调试工具条上的Show Current Frame图标

4、File tab menu

文件标签菜单

You can run, debug ,make, and rebuild directly from the file tab menu in the content pane.

你可以从内容面板的文件标签菜单直接的运行,调试,构造,和重建造

Right-click the file tab to choose any of these menu items .

右键单击文件标签来选择其中的菜单项。

The source file must have a public static main() method for Run and Debug to appear on the menu.

要使运行和调试出现在菜单上,原程序必须有一个公共的静态的main()方法。

5、Find documentation in the Help Viewer

在帮助浏览器中查找文件

There are several ways to find documentation in the Help Viewer:

以下有几种从帮助浏览器中查找文件的途径:

*Contents: displays an expandable Table of Contents for all books.

内容:显示一个关于所有书的可放大的表格

*Index: displays the index entries for all books.

索引:显示所有书的索引

*Find: allows you to enter search words for all books.

查找:允许你输入要查找的字符,在所有书中查找


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10752043/viewspace-998876/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10752043/viewspace-998876/

基于模拟退火的计算器 在线运行 访问run.bcjh.xyz。 先展示下效果 https://pan.quark.cn/s/cc95c98c3760 参见此仓。 使用方法(本地安装包) 前往Releases · hjenryin/BCJH-Metropolis下载最新 ,解压后输入游戏内校验码即可使用。 配置厨具 已在2.0.0弃用。 直接使用白菜菊花代码,保留高级厨具,新手池厨具可变。 更改迭代次数 如有需要,可以更改 中39行的数字来设置迭代次数。 本地编译 如果在windows平台,需要使用MSBuild编译,并将 改为ANSI编码。 如有条件,强烈建议这种本地运行(运行可加速、可多次重复)。 在 下运行 ,是游戏中的白菜菊花校验码。 编译、运行: - 在根目录新建 文件夹并 至build - - 使用 (linux)(windows) 运行。 最后在命令行就可以得到输出结果了! (注意顺序)(得到厨师-技法,表示对应新手池厨具) 注:linux下不支持多任务选择 云端编译已在2.0.0弃用。 局限性 已知的问题: - 无法得到最优解! 只能得到一个比较好的解,有助于开阔思路。 - 无法选择菜品数量(默认拉满)。 可能有一定门槛。 (这可能有助于防止这类辅助工具的滥用导致分数膨胀? )(你问我为什么不用其他语言写? python一个晚上就写好了,结果因为有涉及json读写很多类型没法推断,jit用不了,算这个太慢了,所以就用c++写了) 工作原理 采用两层模拟退火来最大化总能量。 第一层为三个厨师,其能量用第二层模拟退火来估计。 也就是说,这套方法理论上也能算厨神(只要能够在非常快的时间内,算出一个厨神面板的得分),但是加上厨神的食材限制工作量有点大……以后再说吧。 (...
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值