android-sdk-linux_86/platforms/android-4/tools/dx: 第 77 行: exec: java: 未找到
我在netbeans6.8上配置了Android平台并创建了一个android项目,得到编译时错误: android-sdk-linux_86/platforms/android-4/tools/dx: line 77: exec: java: not find
请问有什么解决办法吗?
我正在寻找实现特定扩展点的扩展,并使用以下可接受的方法来执行此操作:
IExtensionRegistry extensionRegistry = Platform.getExtensionRegistry(); if(extensionRegistry == null){return TEMPLATES; }
IConfigurationElement [] config = extensionRegistry.getConfigurationElementsFor("com.ibm.im.launchpoint.templates.template");
然后我想获得定义包的版本.我会使用以下API,但不推荐使用PluginVersionIdentifier的API:
for(IConfigurationElement e:config){BlueprintTemplate template = new BlueprintTemplate();
IExtension declaringExtension = e.getDeclaringExtension(); PluginVersionIdentifier versionIdentifier = declaringExtension.getDeclaringPluginDescriptor().getVersionIdentifier();
我在新的API中找不到替代方案 - 即从IConfigurationElement,我如何获得bundle的版本ID描述符.显然,从Bundle我可以使用Bundle.getHeaders()获取版本,获取Bundle-Version值 - 但我如何获得Bundle?Platform.getBundle(bundleId)是不够的,因为我可能安装了同一个bundle的多个版本,我需要知道我是谁.目前我有鸡肉和鸡蛋的情况,我唯一的解决方案是上面弃用的API.
如何使用Spring JDBC temple查询double?
例如:
public double getAverageScore() {
return jdbctemplate.queryFor???("select avg(score) from test");
}
Run Code Online (Sandbox Code Playgroud)
有queryForInt和queryForLong,但没有queryForDouble
我试图使用正则表达式替换存储在另一个文件中的变量.我试过的代码是:
r = re.compile(r"self\.uid\s*=\s*('\w{12})'")
for line in fileinput.input(['file.py'], inplace=True):
print line.replace(r.match(line), sys.argv[1]),
Run Code Online (Sandbox Code Playgroud)
文件中变量的格式为:
self.uid = '027FC8EBC2D1'
Run Code Online (Sandbox Code Playgroud)
我试图传递这种格式的参数,并使用正则表达式来验证sys.argv[1]格式是否正确,并找到存储在此文件中的变量,并将其替换为新变量.
谁能帮忙.谢谢您的帮助.
有人有任何将Tiles集成到Grails(而不是SiteMesh)的经验吗?
我发现了一些这样的文章:http://devdevdev.wordpress.com/2009/01/并且至少在一年前我了解到没有办法在Grails中使用Tiles.也许上次改变了什么?有没有人试过呢?
PS.或者可能存在另一个grails插件,允许我使用Composite View设计模式?
我正在使用DSP来控制无传感器无刷直流电机,DSP在一块板上,它有一个并行端口和一个jtag连接(它是一个eZdspTMS320F2812).PC应用程序和DSP运行时最好的通信方式是什么?理想情况下,我想要一个带有启动,停止,加速,减速等按钮的GUI程序......但我以前从未做过类似的事情.哪种端口和方法最容易使用?谢谢
microcontroller pc signal-processing communication interface
我在这里看到了旧问题中接下来的两种方法,但我不清楚它们之间的区别是什么:
{'date_time_field__range': (datetime.datetime.combine(date, datetime.time.min),
datetime.datetime.combine(date, datetime.time.max))}
Run Code Online (Sandbox Code Playgroud)
和
YourModel.objects.filter(datetime_published__year='2008',
datetime_published__month='03',
datetime_published__day='27')
Run Code Online (Sandbox Code Playgroud) 我正面临一个关于一个模块的问题让我清楚了解相同的流程.
我有一个定制的UITableviewCell.
当我收到一些新信息时,我发布了一条通知
[[NSNotificationCenter defaultCenter] postNotificationName:KGotSomething object:nil userInfo:message];
Run Code Online (Sandbox Code Playgroud)
鉴于我在维护表格,我正在启动一个自定义单元格
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
cell= [[CustomCell alloc] initWithFrame: reuseIdentifier:identifier document:doc];
return cell;
}
Run Code Online (Sandbox Code Playgroud)
现在在customcell.mm
- (id)initWithFrame:(CGRect)frame reuseIdentifier:(NSString *)reuseIdentifier
{
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(GotSomething:)
name:KGotSomething
object:nil];
}
Run Code Online (Sandbox Code Playgroud)
并在dealloc
- (void)dealloc
{
[[NSNotificationCenter defaultCenter] removeObserver:self
name:KGotSomething
object:nil];
}
Run Code Online (Sandbox Code Playgroud)
现在我的应用程序由于此通知而崩溃,并且永远不会调用dealloc.
你们可以帮助我,如何让这个工作或者我在这里做错什么......
谢谢,
萨加尔
如何使用Zend_Framework显示AJAX分页数据?
paginationControl(),ajaxLink()和ajaxContext()助手?使用Visual Studio 2010,在调试期间,当我使用立即命令时,它经常发生,每天更多次,如:
?命名变量
我收到以下错误:
'NamedVariable'未声明.由于其保护级别,它可能无法访问.
在这种情况下,其他调试功能似乎也没有了,但我可以设置断点,步入,跳过等.
解决方案是停止调试,清理并重建项目,然后重试.
我正在开发一个VB.NET Windows窗体应用程序,但它也发生在VB.NET WPF项目中.我从未在VS 2008中遇到过这种行为.
这是一个已知的错误还是可能是我的环境/安装问题?你有任何想法如何解决这个小问题但烦人的问题?