From lists at pbw.id.au Fri Jul 6 19:36:45 2007 From: lists at pbw.id.au (Peter B. West) Date: Sat, 07 Jul 2007 12:36:45 +1000 Subject: Getting Started with OpenJDK in NetBeans IDE? Message-ID: <468EFC3D.6010509@pbw.id.au> Dave, I've reposted your reply to the nbusers message I posted. I was using NB 5.5.1. The page at http://nb-openjdk.netbeans.org/get-and-build.html doesn't mention that. It links to NB6M9 (not M10), but if you already have NB installed you're not going to follow that link. I've now installed M10, and the projects are visible. I wrote and tested (in another package space) an implementation of RFE 6410729 Add BitSet.previousClearBit, previousSetBit and posted the results in the JDK-collaboration/dev forum on 2007-05-06, but have had no responses. I think I must be missing something in the procedure for handling these things. Advice on this would be appreciated. I seem to have lost the description of setting up personal NetBeans projects within JDK7. I recall a discussion of cloning and modifying one of the existing projects when setting up a Java-only project, and the example used was Collections. That's exactly what I need; in fact, a subset of Collections. Can you point me in the right direction for doing this? Thanks Peter > Hi folks, > > Your emails to nbusers have been forwarded to me. I worked on the NetBeans projects for OpenJDK, and hope to help resolve your issues. But I need more information. > > First, the best place for these questions is to > nb-projects-dev at openjdk.java.net > > On to the issues: > > Peter, are you using NetBeans 6? I ask because when I use NetBeans 5.5 to open a project (jarzip) I see the "???" instead of the name. NetBeans 6 is *required*. If you are using NetBeans 6 and see the problem, can you tell me exactly what steps you are doing to cause the problem? > > Sang, I'm not clear on your issue: you say "having the same problem" but then say "For NetBeans 6, at least I don't see this problem", so I'm a little confused. Then you say "having a problem to build." Could you be more specific as to the nature of the "problem to build"? > > Thanks, > Dave > -- Peter B. West Folio From David.Bristor at Sun.COM Mon Jul 9 09:31:05 2007 From: David.Bristor at Sun.COM (Dave Bristor) Date: Mon, 09 Jul 2007 09:31:05 -0700 Subject: Getting Started with OpenJDK in NetBeans IDE? In-Reply-To: <468EFC3D.6010509@pbw.id.au> References: <468EFC3D.6010509@pbw.id.au> Message-ID: <469262C9.8020403@sun.com> Hi Peter, Peter B. West wrote: > Dave, > > I've reposted your reply to the nbusers message I posted. > > I was using NB 5.5.1. The page at > http://nb-openjdk.netbeans.org/get-and-build.html > doesn't mention that. It links to NB6M9 (not M10), but if you already > have NB installed you're not going to follow that link. I'll see about having the get-and-build page updated to explicitly mention that NB6 is required. > I've now installed M10, and the projects are visible. > > I wrote and tested (in another package space) an implementation of RFE > 6410729 Add BitSet.previousClearBit, previousSetBit and posted the > results in the JDK-collaboration/dev forum on 2007-05-06, but have had > no responses. I think I must be missing something in the procedure for > handling these things. Advice on this would be appreciated. The "contribute" page at http://openjdk.java.net/contribute/ should steer you in the right direction. core-libs-dev at openjdk.java.net might be the right list. > I seem to have lost the description of setting up personal NetBeans > projects within JDK7. I recall a discussion of cloning and modifying one > of the existing projects when setting up a Java-only project, and the > example used was Collections. That's exactly what I need; in fact, a > subset of Collections. Can you point me in the right direction for doing > this? See j2se/make/netbeans/README in the openjdk source bundle. Thanks, Dave > > Thanks > Peter > > >>Hi folks, >> >>Your emails to nbusers have been forwarded to me. I worked on the > > NetBeans projects for OpenJDK, and hope to help resolve your issues. > But I need more information. > >>First, the best place for these questions is to >> nb-projects-dev at openjdk.java.net >> >>On to the issues: >> >>Peter, are you using NetBeans 6? I ask because when I use NetBeans > > 5.5 to open a project (jarzip) I see the "???" instead of the name. > NetBeans 6 is *required*. If you are using NetBeans 6 and see the > problem, can you tell me exactly what steps you are doing to cause the > problem? > >>Sang, I'm not clear on your issue: you say "having the same problem" > > but then say "For NetBeans 6, at least I don't see this problem", so I'm > a little confused. Then you say "having a problem to build." Could you > be more specific as to the nature of the "problem to build"? > >>Thanks, >> Dave >> From jesse.glick at sun.com Mon Jul 9 12:07:46 2007 From: jesse.glick at sun.com (Jesse Glick) Date: Mon, 09 Jul 2007 15:07:46 -0400 Subject: Patch for javac project definition Message-ID: <46928782.1010206@sun.com> It seems that the javac project, as least as currently visible in the dev.java.net SVN repo, is lacking the run and debug targets that would let you try running the compiler on a sample file from within NetBeans 6. So I wrote up a quick patch for this (attached). If you "Run" the project, it will try to compile its own Main.java by default; you can pick a different command line, or define one for many runs: ---%<--- j2se/make/netbeans/compiler/nbproject/private/build.properties run.javac.opts=-some -options -here -and /one/File.java ---%<--- "Debug" works the same but of course you can set breakpoints etc. Have fun, -Jesse -- jesse.glick at sun.com netbeans.org ant.apache.org hudson.dev.java.net http://google.com/search?q=e%5E%28pi*i%29%2B1 -------------- next part -------------- A non-text attachment was scrubbed... Name: javac-project.diff Type: text/x-diff Size: 3035 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/nb-projects-dev/attachments/20070709/dd90bb05/attachment.bin From David.Bristor at Sun.COM Mon Jul 9 15:03:02 2007 From: David.Bristor at Sun.COM (Dave Bristor) Date: Mon, 09 Jul 2007 15:03:02 -0700 Subject: Patch for javac project definition In-Reply-To: <46928782.1010206@sun.com> References: <46928782.1010206@sun.com> Message-ID: <4692B096.3090506@sun.com> Thanks Jesse, I'll make changes in the project for an upcoming OpenJDK build: bug id is 6578429. Jesse Glick wrote: > It seems that the javac project, as least as currently visible in the dev.java.net SVN repo, is lacking the run and debug targets that would let you try running the compiler on a sample file from within NetBeans 6. So I wrote up a quick patch for this (attached). If you "Run" the project, it will try to compile its own Main.java by default; you can pick a different command line, or define one for many runs: > > ---%<--- j2se/make/netbeans/compiler/nbproject/private/build.properties > run.javac.opts=-some -options -here -and /one/File.java Since j2se/make/netbeans/common/shared.xml already has "javac.options" I'll likely change the name of that to "javac.run.options". As an aside, note that you could also set that property in one of the properties files mentioned in j2se/make/netbeans/README. Thanks! Dave > ---%<--- > > "Debug" works the same but of course you can set breakpoints etc. > > Have fun, > -Jesse > > > ------------------------------------------------------------------------ > > Index: j2se/make/netbeans/compiler/nbproject/project.xml > =================================================================== > --- j2se/make/netbeans/compiler/nbproject/project.xml (revision 92) > +++ j2se/make/netbeans/compiler/nbproject/project.xml (working copy) > @@ -59,6 +59,12 @@ > > > &standard-bindings; > + > + run > + > + > + debug > + > > > > @@ -68,6 +74,9 @@ > > > &standard-actions; > + > + > + > > > > Index: j2se/make/netbeans/compiler/build.xml > =================================================================== > --- j2se/make/netbeans/compiler/build.xml (revision 92) > +++ j2se/make/netbeans/compiler/build.xml (working copy) > @@ -40,15 +40,14 @@ > > > > - > - > - > - > - > > > > + > + > + > + > > > @@ -91,7 +90,7 @@ > > > > - > + > > > > @@ -127,4 +126,15 @@ > > > > + > + > + > + > + > + > + > + > + > + > + > From jesse.glick at sun.com Mon Jul 9 15:40:45 2007 From: jesse.glick at sun.com (Jesse Glick) Date: Mon, 09 Jul 2007 18:40:45 -0400 Subject: Patch for javac project definition In-Reply-To: <4692B096.3090506@sun.com> References: <46928782.1010206@sun.com> <4692B096.3090506@sun.com> Message-ID: Dave Bristor wrote: >> ---%<--- j2se/make/netbeans/compiler/nbproject/private/build.properties >> run.javac.opts=-some -options -here -and /one/File.java > > Since j2se/make/netbeans/common/shared.xml already has "javac.options" > I'll likely change the name of that to "javac.run.options". Whatever you like, but note that the new property is not at all analogous to javac.options: any project uses javac.options to compile itself, whereas this property is a set of demo arguments to pass to the program - which just happens to be javac. Maybe a less confusing name would be "run.args" or similar. > As an aside, note that you could also set that property in one of the > properties files mentioned in j2se/make/netbeans/README. Sure, though I think the location I suggested is most sensible: the property only applies to the compiler project, it should not be versioned (shared with others), and it is transient (not valuable enough to worry about its being deleted if you get a fresh checkout of sources). -J. -- jesse.glick at sun.com netbeans.org ant.apache.org hudson.dev.java.net http://google.com/search?q=e%5E%28pi*i%29%2B1 From David.Bristor at Sun.COM Wed Jul 11 14:26:27 2007 From: David.Bristor at Sun.COM (Dave Bristor) Date: Wed, 11 Jul 2007 14:26:27 -0700 Subject: Patch for javac project definition In-Reply-To: References: <46928782.1010206@sun.com> <4692B096.3090506@sun.com> Message-ID: <46954B03.7070405@sun.com> Jesse Glick wrote: > Dave Bristor wrote: > >>> ---%<--- j2se/make/netbeans/compiler/nbproject/private/build.properties >>> run.javac.opts=-some -options -here -and /one/File.java >> >> >> Since j2se/make/netbeans/common/shared.xml already has "javac.options" >> I'll likely change the name of that to "javac.run.options". > > > Whatever you like, but note that the new property is not at all > analogous to javac.options: any project uses javac.options to compile > itself, whereas this property is a set of demo arguments to pass to the > program - which just happens to be javac. Maybe a less confusing name > would be "run.args" or similar. You're right, so I changed it to javac.run.args: keeps the javac-ness of it as a prefix (as with other javac-related options), and the notion that these are args for running the compiler. Could you review the webrev? http://javaweb.sfbay/java/jdk/ws/libs/rev/6578429/ Thanks, Dave > >> As an aside, note that you could also set that property in one of the >> properties files mentioned in j2se/make/netbeans/README. > > > Sure, though I think the location I suggested is most sensible: the > property only applies to the compiler project, it should not be > versioned (shared with others), and it is transient (not valuable enough > to worry about its being deleted if you get a fresh checkout of sources). > > -J. > From Anthony.Petrov at Sun.COM Thu Jul 12 01:00:17 2007 From: Anthony.Petrov at Sun.COM (Anthony Petrov) Date: Thu, 12 Jul 2007 12:00:17 +0400 Subject: build j2se project in netbeans 5.5.1 In-Reply-To: <13432ab00707120016m67d90a6asd862f44807fdd236@mail.gmail.com> References: <13432ab00707120016m67d90a6asd862f44807fdd236@mail.gmail.com> Message-ID: <4695DF91.8000306@sun.com> Hi Zhang, First of all, I believe that the nb-projects-dev@ mailing list is more appropriate for such questions. AFAIK the NetBeans projects are currently supported by the NetBeans 6 beta only. They might not work in the current stable versions of the NetBeans. Please install the latest beta version of the NetBeans 6 and try again. -- best regards, Anthony On 07/12/2007 11:16 AM zhang Jackie wrote: > hi,everyone > I hava downloaded the latest version openjdk, follow the instruction > of http://nb-openjdk.netbeans.org/get-and-build.html. (1)But all project > name is ???, even if it became ??? again after I changed it. > (1) when I build the j2se project , warnings such as follows always exists. > *Warning: falling back to building against /usr/local/jdk1.6.0 > Please define bootstrap.jdk=.../recent/jdk7/snapshot in > /home/jackie/.openjdk/build.properties or > /home/jackie/netbeansWorkSpace/openjdk/j2se/make/netbeans/j2se_J/nbproject/private/build.properties > > Entering directory `/home/jackie/netbeansWorkSpace/openjdk/j2se/make'* > (3) when build j2se, Bootstrap Settings are as follows: > *Bootstrap Settings: > BOOTDIR = /NO_BOOTDIR > ALT_BOOTDIR = > BOOT_VER = /bin/sh: /NO_BOOTDIR/bin/java: No such file or directory > [requires at least 1.5] > OUTPUTDIR = ./../build/linux-i586 > ALT_OUTPUTDIR = > ABS_OUTPUTDIR = > /home/jackie/netbeansWorkSpace/openjdk/j2se/build/linux-i586* > how can I change *BOOTDIR ?* > ** > ** > Do someone can fix my problems? thanks. > From Jonathan.Gibbons at Sun.COM Thu Jul 12 10:07:32 2007 From: Jonathan.Gibbons at Sun.COM (Jonathan Gibbons) Date: Thu, 12 Jul 2007 10:07:32 -0700 Subject: build j2se project in netbeans 5.5.1 In-Reply-To: <4695DF91.8000306@sun.com> References: <13432ab00707120016m67d90a6asd862f44807fdd236@mail.gmail.com> <4695DF91.8000306@sun.com> Message-ID: <2CC3B81C-B4A0-4C6A-96BA-938211B82360@sun.com> Zhang, As a general rule, to override the default value of a variable like BOOTDIR in the Makefiles, you should set the ALT_xxx environment variable before running make -- in this case, that would be ALT_BOOTDIR. -- Jon G. On Jul 12, 2007, at 1:00 AM, Anthony Petrov wrote: > Hi Zhang, > > First of all, I believe that the nb-projects-dev@ mailing list is > more appropriate for such questions. > > AFAIK the NetBeans projects are currently supported by the NetBeans > 6 beta only. They might not work in the current stable versions of > the NetBeans. Please install the latest beta version of the > NetBeans 6 and try again. > > -- > best regards, > Anthony > > > On 07/12/2007 11:16 AM zhang Jackie wrote: >> hi,everyone >> I hava downloaded the latest version openjdk, follow the >> instruction of http://nb-openjdk.netbeans.org/get-and-build.html. >> (1)But all project name is ???, even if it became ??? again after >> I changed it. >> (1) when I build the j2se project , warnings such as follows >> always exists. >> *Warning: falling back to building against /usr/local/jdk1.6.0 >> Please define bootstrap.jdk=.../recent/jdk7/snapshot in /home/ >> jackie/.openjdk/build.properties or /home/jackie/netbeansWorkSpace/ >> openjdk/j2se/make/netbeans/j2se_J/nbproject/private/ >> build.properties Entering directory `/home/jackie/ >> netbeansWorkSpace/openjdk/j2se/make'* >> (3) when build j2se, Bootstrap Settings are as follows: >> *Bootstrap Settings: >> BOOTDIR = /NO_BOOTDIR >> ALT_BOOTDIR = >> BOOT_VER = /bin/sh: /NO_BOOTDIR/bin/java: No such file or >> directory [requires at least 1.5] >> OUTPUTDIR = ./../build/linux-i586 >> ALT_OUTPUTDIR = >> ABS_OUTPUTDIR = /home/jackie/netbeansWorkSpace/openjdk/j2se/ >> build/linux-i586* >> how can I change *BOOTDIR ?* >> ** ** Do someone can fix my problems? thanks. >> From jesse.glick at sun.com Thu Jul 12 14:29:11 2007 From: jesse.glick at sun.com (Jesse Glick) Date: Thu, 12 Jul 2007 17:29:11 -0400 Subject: Patch for javac project definition In-Reply-To: <46954B03.7070405@sun.com> References: <46928782.1010206@sun.com> <4692B096.3090506@sun.com> <46954B03.7070405@sun.com> Message-ID: Dave Bristor wrote: > Could you review the webrev? > > http://javaweb.sfbay/java/jdk/ws/libs/rev/6578429/ Looks fine to me. By the way, the move of the is actually unrelated; I needed it in order to get the build to run at all. Possibly an Ant 1.6.5 vs. 1.7.0 incompatibility: where the fileset was defined it was referring to properties which would not be defined until later, which is not a good idea, and the semantics of this changed somehow in Ant 1.7.0. You guys really need to get a Crucible installation set up for the JDK! I'm sure the folks at Cenqua could be sweet-talked and/or paid to add a Mercurial backend. -J. -- jesse.glick at sun.com netbeans.org ant.apache.org hudson.dev.java.net http://google.com/search?q=e%5E%28pi*i%29%2B1 From lists at pbw.id.au Mon Jul 16 02:21:49 2007 From: lists at pbw.id.au (Peter B. West) Date: Mon, 16 Jul 2007 19:21:49 +1000 Subject: Getting Started with OpenJDK in NetBeans IDE? In-Reply-To: <469262C9.8020403@sun.com> References: <468EFC3D.6010509@pbw.id.au> <469262C9.8020403@sun.com> Message-ID: <469B38AD.7000505@pbw.id.au> Dave Bristor wrote: > Hi Peter, > > Peter B. West wrote: >> Dave, >> >> I've reposted your reply to the nbusers message I posted. >> >> I was using NB 5.5.1. The page at >> http://nb-openjdk.netbeans.org/get-and-build.html >> doesn't mention that. It links to NB6M9 (not M10), but if you already >> have NB installed you're not going to follow that link. > > I'll see about having the get-and-build page updated to explicitly > mention that NB6 is required. > >> I've now installed M10, and the projects are visible. >> >> I wrote and tested (in another package space) an implementation of RFE >> 6410729 Add BitSet.previousClearBit, previousSetBit and posted the >> results in the JDK-collaboration/dev forum on 2007-05-06, but have had >> no responses. I think I must be missing something in the procedure for >> handling these things. Advice on this would be appreciated. > > The "contribute" page at > http://openjdk.java.net/contribute/ > should steer you in the right direction. core-libs-dev at openjdk.java.net > might be the right list. > >> I seem to have lost the description of setting up personal NetBeans >> projects within JDK7. I recall a discussion of cloning and modifying one >> of the existing projects when setting up a Java-only project, and the >> example used was Collections. That's exactly what I need; in fact, a >> subset of Collections. Can you point me in the right direction for doing >> this? > > See > j2se/make/netbeans/README > in the openjdk source bundle. Dave, Thanks for the input. I have followed the instructions in j2se/make/netbeans/README an created a collections project. Note that the collections/build.properties file included: includes=\ java/util/, \ excludes=\ java/util/Calendar.java,\ java/util/jar/,\ java/util/logging/,\ java/util/prefs/,\ java/util/regex/,\ java/util/spi/,\ java/util/zip/,\ **/*-XLocales.java as per the README. However, the build failed, trying to compile *-XLocale.java files. I modified the "includes" to: includes=\ java/util/ (i.e. I removed the trailing ", \") and the build proceeded. Before getting to that point, and thinking I might need to do a prebuild of j2se, I tried that from a terminal. At the moment, that build is not working because, in spite of what the docs say, the build requires not only the openmotif header files, but the libs as well. The openmotif libs I have installed are too recent, so it looks as though I will have to build a set an install them in a non-standard place if I need to build the jdk. Haven't sorted that one out yet. Thanks -- Peter B. West Folio From lists at pbw.id.au Mon Jul 16 02:53:00 2007 From: lists at pbw.id.au (Peter B. West) Date: Mon, 16 Jul 2007 19:53:00 +1000 Subject: Testing partial builds with jtreg Message-ID: <469B3FFC.8010503@pbw.id.au> I'm trying to build and test a single file from Collections, namely BitSet.java. I've constructed what I think is a valid nbproject which builds the file and creates a jar with that file only. How do I run jtreg tests against it? Simply running the unchanged tests fails, so the tests are presumably not running against anything (including the bootstrap jdk) that includes the BitSet class. -- Peter B. West Folio From David.Bristor at Sun.COM Tue Jul 17 10:16:35 2007 From: David.Bristor at Sun.COM (Dave Bristor) Date: Tue, 17 Jul 2007 10:16:35 -0700 Subject: Getting Started with OpenJDK in NetBeans IDE? In-Reply-To: <469B38AD.7000505@pbw.id.au> References: <468EFC3D.6010509@pbw.id.au> <469262C9.8020403@sun.com> <469B38AD.7000505@pbw.id.au> Message-ID: <469CF973.2040708@sun.com> Peter B. West wrote: > Dave Bristor wrote: > >>Hi Peter, >> >>Peter B. West wrote: >> >>>Dave, >>> >>>I've reposted your reply to the nbusers message I posted. >>> >>>I was using NB 5.5.1. The page at >>>http://nb-openjdk.netbeans.org/get-and-build.html >>>doesn't mention that. It links to NB6M9 (not M10), but if you already >>>have NB installed you're not going to follow that link. >> >>I'll see about having the get-and-build page updated to explicitly >>mention that NB6 is required. >> >> >>>I've now installed M10, and the projects are visible. >>> >>>I wrote and tested (in another package space) an implementation of RFE >>>6410729 Add BitSet.previousClearBit, previousSetBit and posted the >>>results in the JDK-collaboration/dev forum on 2007-05-06, but have had >>>no responses. I think I must be missing something in the procedure for >>>handling these things. Advice on this would be appreciated. >> >>The "contribute" page at >> http://openjdk.java.net/contribute/ >>should steer you in the right direction. core-libs-dev at openjdk.java.net >>might be the right list. >> >> >>>I seem to have lost the description of setting up personal NetBeans >>>projects within JDK7. I recall a discussion of cloning and modifying one >>>of the existing projects when setting up a Java-only project, and the >>>example used was Collections. That's exactly what I need; in fact, a >>>subset of Collections. Can you point me in the right direction for doing >>>this? >> >>See >> j2se/make/netbeans/README >>in the openjdk source bundle. > > > Dave, > > Thanks for the input. I have followed the instructions in > j2se/make/netbeans/README an created a collections project. Note that > the collections/build.properties file included: > > > includes=\ > java/util/, \ > excludes=\ > java/util/Calendar.java,\ > java/util/jar/,\ > java/util/logging/,\ > java/util/prefs/,\ > java/util/regex/,\ > java/util/spi/,\ > java/util/zip/,\ > **/*-XLocales.java > > as per the README. However, the build failed, trying to compile > *-XLocale.java files. > > I modified the "includes" to: > > includes=\ > java/util/ > (i.e. I removed the trailing ", \") and the build proceeded. Thanks for pointing that out; I'll fix it. > Before getting to that point, and thinking I might need to do a prebuild > of j2se, I tried that from a terminal. At the moment, that build is not > working because, in spite of what the docs say, the build requires not > only the openmotif header files, but the libs as well. The openmotif > libs I have installed are too recent, so it looks as though I will have > to build a set an install them in a non-standard place if I need to > build the jdk. Haven't sorted that one out yet. The motif requirements are different for different OSs; cf the Ubuntu 6.06 v. 7.04 notes; in particular that the latter does have motif dependencies (though I'm not sure this will resolve your problem without knowing more about your build environment/platform). I just checked my kubuntu 6.10 box, and seem to have headers+libs; YMMV. Dave > > Thanks > From David.Bristor at Sun.COM Wed Jul 18 17:00:41 2007 From: David.Bristor at Sun.COM (Dave Bristor) Date: Wed, 18 Jul 2007 17:00:41 -0700 Subject: Testing partial builds with jtreg In-Reply-To: <469B3FFC.8010503@pbw.id.au> References: <469B3FFC.8010503@pbw.id.au> Message-ID: <469EA9A9.2040108@sun.com> Hi Peter, First, thanks again for pointing out the typo in make/netbeans/README as regards the Collections project. I just went through it, and found a couple other in the changed build.xml: * In the jar task, remove the indication of the manifest file. * In the jar task's fileset, what should be excluded is listed incorrectly as and it should be Now about running the test: I'm not certain what problems you're having. I'm able to run tests, e.g.: % ant -Djtreg.tests=java/util/LinkedList/Remove.java test This runs just that one test. Without the -D... it runs all tests on that project, which runs 60 tests. Right away I see an Error in CheckForComodification but looking at the test's source I see @ignore which means this is OK. The remaining tests pass. Running the tests from NetBeans gives the same results. Just taking a couple guesses here re your test: your new test should be in j2se/test/java/util/BitSet, be a public class, and have a public static void main(String[] args). Take a look at the other tests for examples. Thanks, Dave Peter B. West wrote: > I'm trying to build and test a single file from Collections, namely > BitSet.java. I've constructed what I think is a valid nbproject which > builds the file and creates a jar with that file only. > > How do I run jtreg tests against it? Simply running the unchanged tests > fails, so the tests are presumably not running against anything > (including the bootstrap jdk) that includes the BitSet class. > From lists at pbw.id.au Wed Jul 18 21:36:03 2007 From: lists at pbw.id.au (Peter B. West) Date: Thu, 19 Jul 2007 14:36:03 +1000 Subject: Testing partial builds with jtreg In-Reply-To: <469EA9A9.2040108@sun.com> References: <469B3FFC.8010503@pbw.id.au> <469EA9A9.2040108@sun.com> Message-ID: <469EEA33.8050003@pbw.id.au> Dave Bristor wrote: > Hi Peter, > > First, thanks again for pointing out the typo in make/netbeans/README as > regards the Collections project. I just went through it, and found a > couple other in the changed build.xml: > > * In the jar task, remove the indication of the manifest file. > * In the jar task's fileset, what should be excluded is listed > incorrectly as > > and it should be > > > Now about running the test: I'm not certain what problems you're > having. I'm able to run tests, e.g.: > > % ant -Djtreg.tests=java/util/LinkedList/Remove.java test > > This runs just that one test. Without the -D... it runs all tests on > that project, which runs 60 tests. Right away I see an Error in > CheckForComodification but looking at the test's source I see @ignore > which means this is OK. The remaining tests pass. Running the tests > from NetBeans gives the same results. > > Just taking a couple guesses here re your test: your new test should be > in j2se/test/java/util/BitSet, be a public class, and have a public > static void main(String[] args). Take a look at the other tests for > examples. Dave, I am just trying to run the existing tests on the existing code of the build15 drop. Running them from either NB or the command line gives the same result - failure or error, except for certain shell tests. For example, I can clean and build the JMX project from NB, but when I try to run the tests some early .sh tests pass, but anything involving java files fails or (occasionally) errors. This indicates that jtreg is finding the tests, but not finding the appropriate JDK. My .openjdk/build.properties contains: bootstrap.jdk=/usr/java/jdk1.7.0 jtreg.home = /home/pbw/src/jtreg make.options=\ ALT_BOOTDIR=/usr/java/jdk1.6.0 \ ALT_CLOSED_JDK_IMPORT_PATH=/usr/java/jdk1.7.0 \ ALT_JDK_IMPORT_PATH=/usr/java/jdk1.7.0 \ ALT_MOTIF_DIR=/home/pbw/src/openmotif The ALT_MOTIF_DIR is ineffective for building the JDK, as I mentioned earlier. -- Peter B. West Folio From lists at pbw.id.au Thu Jul 19 03:30:33 2007 From: lists at pbw.id.au (Peter B. West) Date: Thu, 19 Jul 2007 20:30:33 +1000 Subject: Getting Started with OpenJDK in NetBeans IDE? In-Reply-To: <469CF973.2040708@sun.com> References: <468EFC3D.6010509@pbw.id.au> <469262C9.8020403@sun.com> <469B38AD.7000505@pbw.id.au> <469CF973.2040708@sun.com> Message-ID: <469F3D49.50601@pbw.id.au> Dave Bristor wrote: > ... > >> Before getting to that point, and thinking I might need to do a prebuild >> of j2se, I tried that from a terminal. At the moment, that build is not >> working because, in spite of what the docs say, the build requires not >> only the openmotif header files, but the libs as well. The openmotif >> libs I have installed are too recent, so it looks as though I will have >> to build a set an install them in a non-standard place if I need to >> build the jdk. Haven't sorted that one out yet. > > The motif requirements are different for different OSs; cf the Ubuntu > 6.06 v. 7.04 notes; in particular that the latter does have motif > dependencies (though I'm not sure this will resolve your problem without > knowing more about your build environment/platform). I just checked my > kubuntu 6.10 box, and seem to have headers+libs; YMMV. > > Dave > Dave, The first problem with the openmotif libraries is that the link points to the hppa architecture's 2.1.30 package. Once I had corrected that, I tried the build again. Here's a snatch of the output. [exec] ../../../build/linux-i586/tmp/sun/sun.awt/motif21/obj/awt_motif21.o: In function `awt_motif_getIMStatusHeight': [exec] awt_motif21.c:(.text+0x426): undefined reference to `_XmImGetGeo' [exec] /home/pbw/src/openmotif/lib/libXm.a(DragC.o): In function `DragKey': [exec] DragC.c:(.text+0x2699): undefined reference to `__guard' [exec] DragC.c:(.text+0x2785): undefined reference to `__guard' [exec] DragC.c:(.text+0x279c): undefined reference to `__stack_smash_handler' [exec] /home/pbw/src/openmotif/lib/libXm.a(DragC.o): In function `InitiatorMainLoop': [exec] DragC.c:(.text+0x2d02): undefined reference to `__guard' [exec] DragC.c:(.text+0x2d2c): undefined reference to `__stack_smash_handler' [exec] DragC.c:(.text+0x2eaa): undefined reference to `__guard' It goes on and on like that. It looks as though it's trying to build motif 2.1, but not 2.1 as we know it, Jim. -- Peter B. West Folio From lists at pbw.id.au Thu Jul 19 03:57:16 2007 From: lists at pbw.id.au (Peter B. West) Date: Thu, 19 Jul 2007 20:57:16 +1000 Subject: Getting Started with OpenJDK in NetBeans IDE? In-Reply-To: <469F3D49.50601@pbw.id.au> References: <468EFC3D.6010509@pbw.id.au> <469262C9.8020403@sun.com> <469B38AD.7000505@pbw.id.au> <469CF973.2040708@sun.com> <469F3D49.50601@pbw.id.au> Message-ID: <469F438C.7070906@pbw.id.au> Dave, This is the wrong list for these general build questions. Where should I be? Peter B. West wrote: > Dave Bristor wrote: > ... >>> Before getting to that point, and thinking I might need to do a prebuild >>> of j2se, I tried that from a terminal. At the moment, that build is not >>> working because, in spite of what the docs say, the build requires not >>> only the openmotif header files, but the libs as well. The openmotif >>> libs I have installed are too recent, so it looks as though I will have >>> to build a set an install them in a non-standard place if I need to >>> build the jdk. Haven't sorted that one out yet. >> The motif requirements are different for different OSs; cf the Ubuntu >> 6.06 v. 7.04 notes; in particular that the latter does have motif >> dependencies (though I'm not sure this will resolve your problem without >> knowing more about your build environment/platform). I just checked my >> kubuntu 6.10 box, and seem to have headers+libs; YMMV. >> >> Dave >> > > Dave, > > The first problem with the openmotif libraries is that the link points > to the hppa architecture's 2.1.30 package. Once I had corrected that, I > tried the build again. Here's a snatch of the output. > > [exec] > ../../../build/linux-i586/tmp/sun/sun.awt/motif21/obj/awt_motif21.o: In > function `awt_motif_getIMStatusHeight': > [exec] awt_motif21.c:(.text+0x426): undefined reference to > `_XmImGetGeo' > [exec] /home/pbw/src/openmotif/lib/libXm.a(DragC.o): In function > `DragKey': > [exec] DragC.c:(.text+0x2699): undefined reference to `__guard' > [exec] DragC.c:(.text+0x2785): undefined reference to `__guard' > [exec] DragC.c:(.text+0x279c): undefined reference to > `__stack_smash_handler' > [exec] /home/pbw/src/openmotif/lib/libXm.a(DragC.o): In function > `InitiatorMainLoop': > [exec] DragC.c:(.text+0x2d02): undefined reference to `__guard' > [exec] DragC.c:(.text+0x2d2c): undefined reference to > `__stack_smash_handler' > [exec] DragC.c:(.text+0x2eaa): undefined reference to `__guard' > > It goes on and on like that. It looks as though it's trying to build > motif 2.1, but not 2.1 as we know it, Jim. > > > -- Peter B. West Folio From David.Bristor at Sun.COM Thu Jul 19 09:12:10 2007 From: David.Bristor at Sun.COM (Dave Bristor) Date: Thu, 19 Jul 2007 09:12:10 -0700 Subject: Getting Started with OpenJDK in NetBeans IDE? In-Reply-To: <469F438C.7070906@pbw.id.au> References: <468EFC3D.6010509@pbw.id.au> <469262C9.8020403@sun.com> <469B38AD.7000505@pbw.id.au> <469CF973.2040708@sun.com> <469F3D49.50601@pbw.id.au> <469F438C.7070906@pbw.id.au> Message-ID: <469F8D5A.9030801@sun.com> Peter B. West wrote: > Dave, > > This is the wrong list for these general build questions. Where should I be? build-dev at openjdk.java.net Dave > > > Peter B. West wrote: > >>Dave Bristor wrote: >>... >> >>>>Before getting to that point, and thinking I might need to do a prebuild >>>>of j2se, I tried that from a terminal. At the moment, that build is not >>>>working because, in spite of what the docs say, the build requires not >>>>only the openmotif header files, but the libs as well. The openmotif >>>>libs I have installed are too recent, so it looks as though I will have >>>>to build a set an install them in a non-standard place if I need to >>>>build the jdk. Haven't sorted that one out yet. >>> >>>The motif requirements are different for different OSs; cf the Ubuntu >>>6.06 v. 7.04 notes; in particular that the latter does have motif >>>dependencies (though I'm not sure this will resolve your problem without >>>knowing more about your build environment/platform). I just checked my >>>kubuntu 6.10 box, and seem to have headers+libs; YMMV. >>> >>> Dave >>> >> >>Dave, >> >>The first problem with the openmotif libraries is that the link points >>to the hppa architecture's 2.1.30 package. Once I had corrected that, I >>tried the build again. Here's a snatch of the output. >> >> [exec] >>../../../build/linux-i586/tmp/sun/sun.awt/motif21/obj/awt_motif21.o: In >>function `awt_motif_getIMStatusHeight': >> [exec] awt_motif21.c:(.text+0x426): undefined reference to >>`_XmImGetGeo' >> [exec] /home/pbw/src/openmotif/lib/libXm.a(DragC.o): In function >>`DragKey': >> [exec] DragC.c:(.text+0x2699): undefined reference to `__guard' >> [exec] DragC.c:(.text+0x2785): undefined reference to `__guard' >> [exec] DragC.c:(.text+0x279c): undefined reference to >>`__stack_smash_handler' >> [exec] /home/pbw/src/openmotif/lib/libXm.a(DragC.o): In function >>`InitiatorMainLoop': >> [exec] DragC.c:(.text+0x2d02): undefined reference to `__guard' >> [exec] DragC.c:(.text+0x2d2c): undefined reference to >>`__stack_smash_handler' >> [exec] DragC.c:(.text+0x2eaa): undefined reference to `__guard' >> >>It goes on and on like that. It looks as though it's trying to build >>motif 2.1, but not 2.1 as we know it, Jim. >> >> >> > > >