While installing portage master I was asked to download j2sdk-1.4_0_01-linux-i586.bin. At the sun website I only found version j2sdk-1.4_0_02-linux-i586.bin. I placed the file in the portage distfiles and changed the file name so that it would use the file. this may have caused the problem it may not have. What follows is the output when I tried to install portagemaster. machine root # emerge portagemaster Calculating dependencies ...done! >>> emerge app-admin/portagemaster-0.1.8 to / >>> md5 ;-) portagemaster-0.1.8.tar.bz2 >>> Unpacking source... >>> Unpacking portagemaster-0.1.8.tar.bz2 >>> Source unpacked. Buildfile: build.xml compile: [mkdir] Created dir: /var/tmp/portage/portagemaster-0.1.8/work/portagemaster/build [javac] Compiling 25 source files to /var/tmp/portage/portagemaster-0.1.8/work/portagemaster/build [javac] Found 1 semantic error compiling "/var/tmp/portage/portagemaster-0.1.8/work/portagemaster/src/gui/toolbars/MainToolBar.java": [javac] 83. setRollover(true); [javac] <---------------> [javac] *** Error: No method named "setRollover" was found in type "gui/toolbars/MainToolBar". [javac] Found 1 semantic error compiling "/var/tmp/portage/portagemaster-0.1.8/work/portagemaster/src/gui/components/DisplayStatusPane.java": [javac] 61. tabMain = new javax.swing.JTabbedPane(javax.swing.JTabbedPane.TOP, javax.swing.JTabbedPane.SCROLL_TAB_LAYOUT); [javac] <---------------> [javac] *** Error: No field named "SCROLL_TAB_LAYOUT" was found in type "javax/swing/JTabbedPane". [javac] Found 3 semantic errors compiling "/var/tmp/portage/portagemaster-0.1.8/work/portagemaster/src/logic/GeneralProperties.java": [javac] 83. ******** java.io.PrintWriter print = new java.io.PrintWriter(new java.io.FileWriter(new java.io.File("/root/.portagemaster/conf"),false)); [javac] <-------------------------------------------------------------------------> [javac] *** Error: No match was found for constructor "FileWriter(java.io.File, boolean)". [javac] 91. catch (java.io.FileNotFoundException e) { [javac] <-----------------------------> [javac] *** Error: This catch block is unreachable because there is no exception whose type is assignable to "java/io/FileNotFoundException" that can be thrown during execution of the body of the try block. ******** [javac] 103. catch (java.io.IOException e) { [javac] <-------------------> [javac] *** Error: This catch block is unreachable because there is no exception whose type is assignable to "java/io/IOException" that can be thrown during execution of the body of the try block. [javac] Found 1 semantic error compiling "/var/tmp/portage/portagemaster-0.1.8/work/portagemaster/src/gui/toolbars/AboutToolBar.java": [javac] 101. setRollover(true); [javac] <---------------> [javac] *** Error: No method named "setRollover" was found in type "gui/toolbars/AboutToolBar". BUILD FAILED file:/var/tmp/portage/portagemaster-0.1.8/work/portagemaster/build.xml:42: Compile failed; see the compiler error output for details. Total time: 3 seconds >>> Install portagemaster-0.1.8 into /var/tmp/portage/portagemaster-0.1.8/image/ category app-admin cp: cannot stat `packages/portagemaster-0.1.8.jar': No such file or directory chmod: failed to get attributes of `/var/tmp/portage/portagemaster-0.1.8/image//usr/share/portagemaster/lib//portagemaster-0.1.8.jar': No such file or directory >>> dobin: making src/portagemaster executable... strip: >>> Completed installing into /var/tmp/portage/portagemaster-0.1.8/image/ >>> Merging app-admin/portagemaster-0.1.8 to / --- /usr/ --- /usr/share/ >>> /usr/share/portagemaster/ >>> /usr/share/portagemaster/lib/ >>> /usr/share/portagemaster/package.env --- /usr/bin/ >>> /usr/bin/portagemaster >>> Regenerating /etc/ld.so.cache... >>> app-admin/portagemaster-0.1.8 merged. >>> Recording app-admin/portagemaster in "world" favorites file... * GNU info directory index is up-to-date. If someone could please see if the use of the 1.4_0_02 instad of 1.4_0_01 file caused the problem and if it did I would like to know where to find the older file.
Ok, I've downloaded j2sdk-1.4_0_02-linux-i586.bin and installed it, in order to reproduce the problem you have experienced ... and i have failed. portageMaster compiles nicely. My only suggestion would be that u should check environment variables ("java-config --jdk-home" should do), because that kind of errors (non-existing methods, fields) happen when u try to compile it against older JDK version. Regards Milos
works for me too