相关疑难解决方法(0)

你怎么能加速Eclipse?

如何更快地使用Eclipse体验?

例如:我禁用了我不需要的所有插件(Mylyn,Subclipse,...).

我没有为Mercurial使用插件,而是将TortoiseHG配置为外部工具.

eclipse performance

1258
推荐指数
28
解决办法
59万
查看次数

Eclipse中运行的是什么版本的Java?

我如何知道Eclipse中运行的Java版本?

有没有办法编写代码来查找?

"Package Explorer"中的"JRE系统库[JavaSE-1.6]"是正确的版本吗?

java eclipse version

37
推荐指数
4
解决办法
9万
查看次数

在Querydsl中生成Qclasses时,Maven构建和JDK的Eclipse问题

当我在下面添加此代码pom.xml以支持Querydsl时

<plugin>
  <groupId>com.mysema.maven</groupId>
  <artifactId>apt-maven-plugin</artifactId>
  <version>1.0.6</version>
  <executions>
    <execution> 
      <goals>
        <goal>process</goal>
      </goals>
      <configuration>
        <outputDirectory>target/generated-sources/java</outputDirectory>
        <processor>com.mysema.query.apt.jpa.JPAAnnotationProcessor</processor>
      </configuration>
    </execution>
  </executions>
</plugin>
Run Code Online (Sandbox Code Playgroud)

使用Eclipse构建时出现此错误.我认为它与classpath和JDK jar有关系

You need to run build with JDK or have tools.jar on the classpath.
If this occures during eclipse build make sure you run eclipse under  JDK as well 
(com.mysema.maven:apt-maven-plugin:1.0.6:process:default:generate-sources)
Run Code Online (Sandbox Code Playgroud)

.classpath:

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <classpathentry kind="src" output="target/classes" path="src">
        <attributes>
            <attribute name="optional" value="true"/>
            <attribute name="maven.pomderived" value="true"/>
        </attributes>
    </classpathentry>
    <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v8.0">
        <attributes>
            <attribute name="owner.project.facets" value="jst.web"/>
        </attributes> …
Run Code Online (Sandbox Code Playgroud)

java eclipse maven querydsl

24
推荐指数
2
解决办法
3万
查看次数

使用带有eclipse和m2e的maven-jaxb-plugin时,ErrorListener丢失

我已经为插件设置了一个项目" org.jvnet.jaxb2.maven2:maven-jaxb2-plugin".它可以工作,但我不喜欢Eclipse编辑器中为"pom.xml"显示的错误消息.消息指出:

Execution default of goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.13.1:generate failed: A required class was missing while executing org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.13.1:generate: com/sun/xml/bind/api/ErrorListener
Run Code Online (Sandbox Code Playgroud)

pom和整个项目被标记为错误.

这是我的pom.xml:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>de.gombers.lernen.jaxb</groupId>
    <artifactId>PlayWithJAXB</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.1</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>2.9.1</version>
                <configuration>
                    <show>private</show>
                    <nohelp>true</nohelp>
                </configuration>
            </plugin>


            <plugin>
                <groupId>org.jvnet.jaxb2.maven2</groupId>
                <artifactId>maven-jaxb2-plugin</artifactId>
                <version>0.13.1</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <extension>true</extension>
                    <useDependenciesAsEpisodes>true</useDependenciesAsEpisodes>
                    <outputDirectory>target/generated-sources/jaxb</outputDirectory>
                    <packageName>de.gombers.lernen.jaxb.generated</packageName>
                    <schemaDirectory>src/main/resources</schemaDirectory>
                    <schemaFiles>Employee.xsd</schemaFiles>
                </configuration>
            </plugin>

        </plugins>


    </build>

    <dependencies>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
            <version>3.4</version>
        </dependency> …
Run Code Online (Sandbox Code Playgroud)

java eclipse jaxb maven spring-boot

15
推荐指数
3
解决办法
2万
查看次数

如何更改Eclipse IDE的启动JVM?

我在Mac上运行Eclipse Oxygen(1A),并且在“安装详细信息”中可以看到,IDE本身(用于实际启动JVM)当前使用的JVM是Oracle的1.8.0_131JVM。我还安装了其他一些JVM,包括最新版本,1.8.0_161并且我想切换到最新版本。

只是要清楚一点:我不是要设置在编译和/或启动特定项目的代码时使用的执行环境。我正在尝试更改启动Eclipse本身时使用的JVM。

到目前为止,我已经确保Eclipse知道我已更新的JRE,并且确实是默认的“ Installed JRE”,但是重新启动Eclipse最终会使用相同的旧JVM(1.8.0_131)。

有没有办法告诉Eclipse我想使用更新的JVM,而不直接编辑Eclipse启动脚本?(我假设我愿意的话可以这样做,但我不想这样做。)

java eclipse macos jvm eclipse-oxygen

1
推荐指数
2
解决办法
1851
查看次数

必须提供Java Runtime Environment或Java开发工具包才能运行eclipse

可能重复:
Eclipse - 没有Java(JRE)/(JDK)......没有虚拟机

我安装了Android SDK并且它提到我也应该下载eclipse,但是当我下载并尝试运行eclipse.exe时,我收到一条消息,指出"必须有Java Runtime Environment或Java开发工具包才能运行日食....".我确实有JDK,这是Android SDK安装的唯一方式.有什么建议?

java eclipse android

0
推荐指数
1
解决办法
2万
查看次数