From: Adam B. <ab...@o2...> - 2011-09-07 21:41:26
|
Finally I reconfigured to use GIT. I have uninstalled Java and its updates and downloaded a new one. Same with Eclipse. I have removed previous workspace and started a new one. And it did download correctly, builds and runs fine. Now how to make a JAR? I tried to follow the Wiki but while building build.xml I got some errors regarding testing framework: Buildfile: C:\Users\Adam Badura\git\rails\build.xml build-subprojects: clean: [delete] Deleting directory C:\Users\Adam Badura\git\rails\classes init: [mkdir] Created dir: C:\Users\Adam Badura\git\rails\classes [copy] Copying 861 files to C:\Users\Adam Badura\git\rails\classes build-project: [echo] 18xx: C:\Users\Adam Badura\git\rails\build.xml [javac] C:\Users\Adam Badura\git\rails\build.xml:53: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 317 source files to C:\Users\Adam Badura\git\rails\classes [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5 [javac] C:\Users\Adam Badura\git\rails\test\TestGame.java:16: error: package junit.framework does not exist [javac] import junit.framework.TestCase; [javac] ^ [javac] C:\Users\Adam Badura\git\rails\test\TestGame.java:18: error: cannot find symbol [javac] public class TestGame extends TestCase { [javac] ^ [javac] symbol: class TestCase [javac] C:\Users\Adam Badura\git\rails\test\TestGameBuilder.java:16: error: package junit.framework does not exist [javac] import junit.framework.Test; [javac] ^ [javac] C:\Users\Adam Badura\git\rails\test\TestGameBuilder.java:17: error: package junit.framework does not exist [javac] import junit.framework.TestCase; [javac] ^ [javac] C:\Users\Adam Badura\git\rails\test\TestGameBuilder.java:18: error: package junit.framework does not exist [javac] import junit.framework.TestSuite; [javac] ^ [javac] C:\Users\Adam Badura\git\rails\test\TestGameBuilder.java:25: error: cannot find symbol [javac] public final class TestGameBuilder extends TestCase { [javac] ^ [javac] symbol: class TestCase [javac] C:\Users\Adam Badura\git\rails\test\TestGameBuilder.java:98: error: cannot find symbol [javac] private static TestSuite recursiveTestSuite(String rootPath, String dirPath, int level, boolean overrideReport){ [javac] ^ [javac] symbol: class TestSuite [javac] location: class TestGameBuilder [javac] C:\Users\Adam Badura\git\rails\test\TestGameBuilder.java:158: error: cannot find symbol [javac] public static Test suite() { [javac] ^ [javac] symbol: class Test [javac] location: class TestGameBuilder [javac] C:\Users\Adam Badura\git\rails\test\TestGame.java:55: error: cannot find symbol [javac] fail("Test report exceeeds expected report." + [javac] ^ [javac] symbol: method fail(String) [javac] location: class TestGame [javac] C:\Users\Adam Badura\git\rails\test\TestGame.java:60: error: cannot find symbol [javac] fail("Expected report exceeds test report." + [javac] ^ [javac] symbol: method fail(String) [javac] location: class TestGame [javac] C:\Users\Adam Badura\git\rails\test\TestGame.java:67: error: cannot find symbol [javac] assertEquals("Reports differ in line " + (line+1), [javac] ^ [javac] symbol: method assertEquals(String,String,String) [javac] location: class TestGame [javac] C:\Users\Adam Badura\git\rails\test\TestGame.java:75: error: cannot find symbol [javac] super.setUp(); [javac] ^ [javac] symbol: variable super [javac] location: class TestGame [javac] C:\Users\Adam Badura\git\rails\test\TestGame.java:123: error: cannot find symbol [javac] super.tearDown(); [javac] ^ [javac] symbol: variable super [javac] location: class TestGame [javac] C:\Users\Adam Badura\git\rails\test\TestGameBuilder.java:110: error: cannot find symbol [javac] TestSuite suite; [javac] ^ [javac] symbol: class TestSuite [javac] location: class TestGameBuilder [javac] C:\Users\Adam Badura\git\rails\test\TestGameBuilder.java:113: error: cannot find symbol [javac] suite = new TestSuite("Rails Tests"); [javac] ^ [javac] symbol: class TestSuite [javac] location: class TestGameBuilder [javac] C:\Users\Adam Badura\git\rails\test\TestGameBuilder.java:115: error: cannot find symbol [javac] suite = new TestSuite(directory.getName()); [javac] ^ [javac] symbol: class TestSuite [javac] location: class TestGameBuilder [javac] C:\Users\Adam Badura\git\rails\test\TestGameBuilder.java:130: error: cannot find symbol [javac] TestSuite newSuite = recursiveTestSuite(rootPath, nextDirPath, level+1, overrideReport); [javac] ^ [javac] symbol: class TestSuite [javac] location: class TestGameBuilder [javac] C:\Users\Adam Badura\git\rails\test\TestGameBuilder.java:166: error: cannot find symbol [javac] TestSuite suite = null; [javac] ^ [javac] symbol: class TestSuite [javac] location: class TestGameBuilder [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 18 errors [javac] 1 warning BUILD FAILED C:\Users\Adam Badura\git\rails\build.xml:53: Compile failed; see the compiler error output for details. Total time: 10 seconds Also the bash script given on the Wiki page is of little use to a Windows user... |