问题:

首先,我有一个装有8gb ram的盒子,所以我怀疑总内存是问题所在。 此应用程序在6gb或更少的计算机上运行良好。

我正在尝试在Eclipse的“运行配置”中的“ VM参数”下使用-Xmx3G保留3GB的空间。

每当我尝试保留超过1500mb的内存时,都会出现以下错误:“ VM初始化期间发生错误; -Xmx3G无法为对象堆保留足够的空间”

这里发生了什么?

First of all, I have a box with 8gb of ram, so I doubt total memory is the issue.This application is running fine on machines with 6gb or less.I am trying to reserve 3GB of space using -Xmx3G under “VM Arguments” in Run Configurations in Eclipse.Every time I try to reserve more than 1500mb, I get this error: “Error occurred during initialization of VM;Could not reserve enough space for object heap” using -Xmx3GWhat is going on here?

问题:

我在日食日光灯中遇到此错误:

执行命令行时发生异常。 无法运行程序“ C:\\ Program Files(x86)\\ Java \\ jre6 \\ bin \\ javaw.exe”(在目录“ C:\\ Users \\ motiver \\ helios_workspace \\ TimeTracker”中):CreateProcess错误= 206,文件名或扩展名是太长

我进行了一些研究,但是在使用Google App Engine时,大多数问题与DataNucleus有关。 但是我没有使用与Google App Engine远程相关的任何东西。 我正在JBOSS 6上使用Servlet 3.0做一个小项目。我正在使用Hibernate 4.1.2 for ORM和RESTEasy公开Web服务。 我创建了一个具有main()方法的util文件,该方法基本上删除并重新创建了架构。 当我需要一个干净的数据库进行测试时,我运行main()方法。 它在Tomcat 7上运行良好,但是在我移至JBoss 6时停止了工作。

任何提示或解决方案将不胜感激。

I have this error in eclipse helios:Exception occurred executing command line.Cannot run program “C:\\Program Files (x86)\\Java\\jre6\\bin\\javaw.exe” (in directory “C:\\Users\\motiver\\helios_workspace\\TimeTracker”): CreateProcess error=206, The filename or extension is too longI researched a bit but most of the issues were related to DataNucleus when working on Google App Engine.But I am not using anything remotely related to Google App Engine.I am doing a small project with Servlet 3.0 on JBOSS 6. I am using Hibernate 4.1.2 for ORM and RESTEasy to expose a web service.I created a util file that has a main() method that basically drops and re-creates the schema.I run the main() methos when I need a clean database for testing purposes.It worked fine on Tomcat 7 but it stopped working when I moved to JBoss 6.Any hint or solution would be greatly appreciated.

问题:

我一直在尝试安装Maven Integration for Eclipse,但我收到了这些错误。

    Cannot complete the install because one or more required items could not be found.
  Software being installed: m2e - slf4j over logback logging (Optional) 1.4.0.20130601-0317 (org.eclipse.m2e.logback.feature.feature.group 1.4.0.20130601-0317)
  Missing requirement: Maven Integration for Eclipse 1.4.0.20130601-0317 (org.eclipse.m2e.core.ui 1.4.0.20130601-0317) requires 'bundle org.slf4j.api 1.6.2' but it could not be found
  Cannot satisfy dependency:
    From: m2e logback appender 1.4.0.20130601-0317 (org.eclipse.m2e.logback.appender 1.4.0.20130601-0317)
    To: bundle org.eclipse.m2e.core.ui [1.4.0,1.5.0)
  Cannot satisfy dependency:
    From: m2e - slf4j over logback logging (Optional) 1.4.0.20130601-0317 (org.eclipse.m2e.logback.feature.feature.group 1.4.0.20130601-0317)
    To: org.eclipse.m2e.logback.appender [1.4.0.20130601-0317]

我的过程一直是帮助>> EclipseMarketplace >>搜索“Maven Integration for Eclipse”>>安装(m2e)

请帮忙。

编辑

在遇到大量问题后,决定卸载Eclipse Indigo 3.6.2并安装Indigo 3.7(根据我目前工作的公司标准)。 采取这一行动后,所有安装问题(maven和其他)都得到了解决。

I’ve been attempting to install Maven Integration for Eclipse and I’ve received these errors.My process has been Help >> EclipseMarketplace >> Search “Maven Integration for Eclipse” >> Install (m2e)Please help.EditAfter running into a plethora of issues, the decision was made to uninstall Eclipse Indigo 3.6.2 and install Indigo 3.7 (as per the standards of the company I currently work at).After taking this course of action, all issues with installations (maven and otherwise) were resolved.

问题:

我尝试安装ADT时出现此错误:

An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,com.android.ide.eclipse.adt,16.0.1.v201112150204-238534
No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.adt,16.0.1.v201112150204-238534
No repository found containing: osgi.bundle,com.android.ide.eclipse.ddms,16.0.1.v201112150204-238534
No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.ddms,16.0.1.v201112150204-238534
No repository found containing: osgi.bundle,com.android.ide.eclipse.hierarchyviewer,16.0.1.v201112150204-238534
No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.hierarchyviewer,16.0.1.v201112150204-238534
No repository found containing: osgi.bundle,com.android.ide.eclipse.traceview,16.0.1.v201112150204-238534
No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.traceview,16.0.1.v201112150204-238534
No repository found containing: osgi.bundle,overlay.com.android.ide.eclipse.adt.overlay,16.0.1.v201112150204-238534

一个eclipse Java EE版本,我正在关注这个 平台是Windows。

This error comes when I try to install ADT:An eclipse Java EE version and I’m following This .Platform is Windows.

问题:

我是Android开发的新手,我想首先让Hello World应用程序运行。 我正在使用Eclipse IDE和Android 4.0.3版本15 SDK。 我从教程站点复制了所有内容,但是当我尝试在virtual device上运行应用程序时,我收到此错误:

[2012-02-01 11:31:23 - Android_test] Installation error: INSTALL_FAILED_OLDER_SDK
[2012-02-01 11:31:23 - Android_test] Please check logcat output for more details.
[2012-02-01 11:31:23 - Android_test] Launch canceled!

这是我在com.maze.app包中的类:package com.maze.app;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class HelloAndroid extends Activity{
  @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        TextView tv = new TextView(this);
        tv.setText("Hello, Android");
        setContentView(tv);

    }

}

AndroidManifest.xml :

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.maze.app"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk android:minSdkVersion="15" android:targetSdkVersion="@string/app_name"/>

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name" >
    <activity android:name="HelloAndroid" android:launchMode="standard" android:enabled="true"></activity>
</application>

以下是Virtual Device的配置:

Name: AndroidVD
CPU/ABI: ARM(armeabi-v7a)
Path: path\to\avd
Target: Android 4.0.3(API level 15)
Skin: WVGA800
hw.lcd.density: 240
hw.cpu.model: cortex-a8
vm.heapSize: 48
hw.ramSize:512

问题是什么?

编辑:应用程序没有在虚拟设备上运行:这是我在LogCat上获得的(一些行):

D/PackageManager(92): New package installed in /data/app/com.maze.app-2.apk
D/dalvikvm(92): GC_CONCURRENT freed 660K, 9% free 11935K/12999K, paused 18ms+72ms
I/ActivityManager(92): Force stopping package com.maze.app uid=10040
D/BackupManagerService(92): Received broadcast Intent { act=android.intent.action.PACKAGE_REPLACED dat=package:com.maze.app flg=0x10000010 (has extras) }
V/BackupManagerService(92): updatePackageParticipantsLocked: com.maze.app

I am new to Android development and I want first to get the Hello World application running.I am using Eclipse IDE and the Android 4.0.3 version 15 SDK.I copied everything from a tutorial site, but when I try to run the application on the virtual device I get this error:Here is my class in the com.maze.app package: package com.maze.app;and the AndroidManifest.xml :Here is the configuration of the Virtual Device :What is the problem?EDIT: The application is not running on the Virtual Device: Here is what I get on LogCat(some of the lines):