关于使用Zxing的一些问题......
我编写以下代码来从图像中读取条形码:
public class BarCodeDecode
{
/**
* @param args
*/
public static void main(String[] args)
{
try
{
String tmpImgFile = "D:\\FormCode128.TIF";
Map<DecodeHintType,Object> tmpHintsMap = new EnumMap<DecodeHintType, Object>(DecodeHintType.class);
tmpHintsMap.put(DecodeHintType.TRY_HARDER, Boolean.TRUE);
tmpHintsMap.put(DecodeHintType.POSSIBLE_FORMATS, EnumSet.allOf(BarcodeFormat.class));
tmpHintsMap.put(DecodeHintType.PURE_BARCODE, Boolean.FALSE);
File tmpFile = new File(tmpImgFile);
String tmpRetString = BarCodeUtil.decode(tmpFile, tmpHintsMap);
//String tmpRetString = BarCodeUtil.decode(tmpFile, null);
System.out.println(tmpRetString);
}
catch (Exception tmpExpt)
{
System.out.println("main: " + "Excpt err! (" + tmpExpt.getMessage() + ")");
}
System.out.println("main: " + "Program end.");
}
}
public class BarCodeUtil
{
private static …Run Code Online (Sandbox Code Playgroud) 我导入了一个项目,并收到错误"目标运行时JBoss v4.2未定义".我添加了JBoss 4.2运行时库.但是,错误仍然存在.
在我的Java Build Path中,我已经添加了以下库.

我还想错过哪些其他图书馆?
我最近需要处理javascript.不幸的是,我是新手.
我遇到了以下代码,并不理解$ {count == 0}的含义.
function body_onload()
{
if(${count == 0})
{
document.getElementById("dispaly").style.display="none";
}
scanImageReportFrom.shopCodes.focus();
}
Run Code Online (Sandbox Code Playgroud)
谢谢.
最后我发现这可以解决我的问题.
当您从Eclipse中的标准输入读取时,该输入来自何处?
java ×2
code128 ×1
eclipse ×1
eclipse-juno ×1
input ×1
javascript ×1
jboss-4.2.x ×1
qr-code ×1
syntax ×1
system.in ×1
zxing ×1