Summary: | class file has wrong version 48.0, should be 47.0 | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | MH <mhilpert> |
Component: | Ant | Assignee: | Darin Swanson <Darin_Swanson> |
Status: | RESOLVED DUPLICATE | QA Contact: | |
Severity: | critical | ||
Priority: | P3 | CC: | carl.blake |
Version: | 2.0.1 | Keywords: | core |
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows NT | ||
Whiteboard: |
Description
MH
2002-10-28 08:37:43 EST
Ant in Eclipse works within the same VM that Eclipse was launched on. What VM are you using to launch Eclipse? It appears that you have launched Ecilpse on a 1.3.* vm and are attempting to compile using a 1.4 library. I also started Eclsipe with eclipse.exe -vm D:\Programme\j2sdk1.4.1_01\bin\java.exe but it produces the same error ... I can reproduce your problem if I launch eclipse on a 1.3.* vm and then set the javac bootclasspath to use the 1.4.* rt.jar. If I launch eclipse on a 1.4.* vm with the bootclasspath set to use the 1.4.* rt.jar I compile cleanly. Are you setting a bootclasspath? If so does it work if you do not add the rt.jar? Intend to close this bug report if no further input from bug reporter. how do i set a bootclasspath? the problem is, that i have several projects that need different JDKs (1.3 and 1.4), so i can't set the JDK globally, I need to set it on a project basis. I thought this would be done within the project classpath/libs ... As stated before the current Ant support in eclipse works within the same VM that eclipse was launched in. You cannot selective set the JDK level for a project that Ant will use. You can specify the target ("1.3" or "1.4") for your javac task...this is looking more and more like a duplicate of bug 24129. hm, then it would be locigal to remove the ant properties in preferences and move it to project properties. the ant for this project would then use the classpath of this project or (even better) would have its own classpath/path setting for this project. :-) |