问题标签 [jad]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
854 浏览

deployment - 部署 OTA Blackberry App 时不支持的媒体类型

我有一个黑莓应用程序,我正在尝试部署 OTA(无线)。

我已将服务器上的 MIME 类型设置为:

当我通过 BlackBerry Browser 访问我的网络服务器上的 JAD 文件时,我收到了消息

然后提示下载 JAD。我该如何解决这个问题?

0 投票
1 回答
498 浏览

blackberry - jad 用于黑莓非 midlet 应用程序

我正在为黑莓编写一个常规应用程序。我想知道,对于纯原生黑莓应用程序(没有 j2me),有什么类似于 JAD 的吗?如果 JAD 适用于常规 BB 应用程序,请指导我使用 JAD。

0 投票
5 回答
7436 浏览

java - Is there any Java Decompiler that can correctly decompile calls to overloaded methods?

Consider this (IMHO simple) example:

Compile it with source/target level 1.1 without debug information (i.e. no local variable information should be present) and try to decompile it. I tried Jad, JD-GUI and Fernflower, and all of them got at least one of the call wrong (i. e. the program printed "Wrong!" at least once)

Is there really no java decompiler that can infer the right casts so that it will not call the wrong overload?

Edit: Target level 1.1 so that there is none of that Java6-specific fast-validation information present. That might give the decompiler a clue that s1 has been declared as Object and not as String. Decompilers should be able to decompile the code even without this information (not necessarily get the original variable type, but show the same behaviour), especially since lots of obfuscators strip it as well.

What decompilers got wrong:

  • They missed the cast to (Object) in the first call.
  • They inferred the type of s1 to be String, but forgot to add a cast to the call to doPrint (so that the String version is called instead of the Object version).
  • One crappy one (I have not even listed) even infers the type of s2 to be String, causing uncompilable code.

In any case, this code never calls the String overload, but the decompiled code did.

0 投票
1 回答
880 浏览

android - Android中的J2ME JAD文件模拟

当我的服务器将 apk 文件提供给用户时,我需要在此文件中放入一些值,对于 j2me 平台,我使用 JAD 文件,并将我的值放在那里:

MY_KEY: SomeKeyValue MY_KEY2: SomeKeyValue2

当 j2me 应用程序在设备上启动时,我可以通过 System.getProperty 访问这些值。

我怎样才能在android平台上做同样的事情?

0 投票
1 回答
1909 浏览

java - 编辑java类文件JAD

我需要在类文件中更改一个构造函数的访问修饰符...我如何使用 jad 进行操作...

谢谢大家...

拉杰...

0 投票
1 回答
410 浏览

manifest - 如何告诉手机在应用程序文件夹中安装midlet?

我想建议手机应该在哪里安装 j2me 应用程序。例如,在诺基亚手机上,它总是将它们安装在游戏文件夹中。有没有办法建议目标文件夹?在 .jad 文件中还是在 MANIFEST 文件中?

0 投票
0 回答
443 浏览

java-me - 如何在 J2ME 中隐藏诺基亚手机上的 midlet 图标?

我开发了一个 midlet,它应该只使用 Push Registry 来调用。用户不能手动启动应用程序。我通过检查是否未通过 Push Registry 调用 midlet 来实现这一点,然后立即退出 midlet。但是有没有办法从诺基亚设备的应用程序文件夹中隐藏应用程序?

sonyericsson似乎可以做到:How to hide midlet icon in sonyericsson

0 投票
3 回答
4278 浏览

java - 什么是比 jad 更准确​​的反编译器来让 Eclipse 摆脱 <-MISALIGNED ->?

我使用 jad 已经很多年了,其中大部分都带有 Jadclipse 插件来 Eclipse,这使得它非常有用。尤其是“对齐代码以进行调试”,它允许您查看堆栈跟踪中任何行的反编译代码。非常好。

不幸的是,我越来越多地看到 <- MISALIGNED -> 注释潜入,这很可能是因为 jad 期望类文件是有序的,而 Java 6 运行时库显然不是这种情况。因此,在写入文件时,一条指令说“这是第 100 行”,然后写入 99 个空行,如果下一条指令说“这是用于第 10 行”,那么 jad 不能倒带将该输出放在那里,而只是打印发表评论说这是在错误的地方。

这是 HttpURLConnection 的示例:

现在的问题是是否有另一个反编译器可以逐行生成更准确的输出。实际的反编译不需要非常好或任何东西,但我真的很喜欢它位于 Java Stack Trace 视图所期望的位置。如果它与 Jadclipse 配合得很好,那就更好了。

0 投票
0 回答
249 浏览

java - Java,如何制作不可编译的代码片段?

可能重复:
Java 中的“无法编译”的源代码

您可以使代码不可反编译,问题是如何?

我在 java microedition 中有一段代码无法被 jd 编译:

另一个例子?尝试反编译opera mini源代码,里面有一段无法反编译的代码(这里隐藏了opera mini的代理服务器)

你知道为了避免对java代码进行逆向工程而使代码不可反编译的规则是什么吗?

谢谢你读我

0 投票
4 回答
589 浏览

tdd - BDD/TDD 与 JAD?

我一直建议我的工作场所实施行为驱动开发,通过以场景格式编写高级规范,并且以一种可以想象为它编写测试的方式。

我知道根据可测试的规范工作往往会提高开发人员的生产力。我已经可以想到几个例子,我们自己的项目就是这种情况。

然而,很难证明这对企业的价值。

这是因为我们已经有一个联合应用程序开发 (JAD) 流程,在该流程中,开发人员、管理人员、用户体验和测试人员都聚集在一起就一组共同的需求达成一致。

所以,他们问,为什么开发人员要针对测试人员创建的测试用例工作?这些用于验证,并且基于 UX 团队创建的更高级别的规范,开发人员目前正在研究这些规范。

他们说,这对开发人员来说已经足够了,无需更改规范的编写方式。

他们似乎有道理。

如果您已经有一个测试团队,其测试用例与当前提供给开发人员的更高级别规范完全兼容,那么 BDD/TDD 的实际好处是什么?