Ulf Zibis | 24 Mar 23:40 2009
Picon
Picon

Setup OpenJDK Netbeans project - Please help!

Hi all,

my first post on this list.

I've opened the JConsole project from JDK7 b51 sources and ran into some 
errors. See attachment.

Can you give me some hints?

When I set .openjdk\build.properties to:
    bootstrap.jdk=C:/Programme/Java/jdk1.7.0
the compile warning disappears, but the error annotations in editor remain.

Thanks in advance,

-Ulf

Ulf Zibis | 24 Mar 23:55 2009
Picon
Picon

Setup OpenJDK Netbeans project - Mercurial - Please help!

Hi All,

I've downloaded the b51 snapshot sources. I see some .hg* files, but can't get connected to the 
OpenJDK repository

How to make this a working Mercurial Working Copy?

Please see my problem in the attachment.

I thought, the hg support from NetBeans didn't work, because the local .hg repository wasn't 
existent, so I created it by "Create Repository". After this, I think, I should commit the WC files 
into it, but I hesitate, because I don't want to have an additional 250 MB copy of the whole jdk on 
my harddisk. I have to be economic with diskspace (60 GB). I would be happy, if there would be a 
way, only to push the parts in the repository which I'm working on (sun.nio.cs). Do you have some 
hint, how to solve this problem? Does it work, if I only commit the folder, which I'm working on?
I also did a clone of http://hg.openjdk.java.net/jdk7/jdk7 which created folder "jdk". This clone 
only contained some few make files, so I don't know what to do with it.

Alan said, I should use fclone. I don't see how to invoke fclone from NetBeans. Also I don't find 
any information about fclone on http://www.selenic.com/mercurial/wiki/index.cgi/Mercurial.

Additionally I've installed TortoiseHG.

Thanks in advance,

Ulf

Ulf Zibis | 25 Mar 00:01 2009
Picon
Picon

Re: Setup OpenJDK Netbeans project - Please help!

Am 23.03.2009 15:10, Alan Bateman schrieb:
> Ulf Zibis wrote:
>> :
>> Thanks Alan.
>> I hesitated to post to nb-projects-dev@..., because 
>> there was no traffic since August 2008. But I'll give it a try.
>>
>> The error annotations in NetBeans for JConsole project, I guess, are 
>> result of a NB bug, because the build runs without error.
> AFAIK, there are two compilers in NetBeans. A "standard" javac that is 
> used for the full builds and a patched version that runs while you 
> edit. If I understand your screenshot then your issue is with the 
> latter. Someone more familiar with the environment may know how to 
> configure it and  I'm sure someone on nb-projects-dev will be able to 
> help.
>
>>
>> The hg support from NetBeans didn't work, because the local .hg 
>> repository wasn't existent, so I created it by "Create Repository". 
>> After this, I think, I should commit the WC into it, but I hesitate, 
>> because I don't want to have an additional 250 MB copy of the whole 
>> jdk on my harddisk. I have to be economic with diskspace. I would be 
>> happy, if there would be a way, only to push the parts in the 
>> repository which I'm working on. Do you have some hint, how to solve 
>> this problem? Does it work, if I only commit the folder, which I'm 
>> working on?
>> I also did a clone of http://hg.openjdk.java.net/jdk7/jdk7. This 
>> clone only contained some few make files, so I don't know what to do 
>> with it.
> OpenJDK uses the forest extension so to get all the repositories you 
(Continue reading)

Kelly O'Hair | 25 Mar 19:16 2009
Picon

Re: Setup OpenJDK Netbeans project - Mercurial - Please help!


If you are going to use Mercurial I would highly advise reading the
Mercurial Book at http://hgbook.red-bean.com/hgbook.html
at least the first few chapters. It's nothing like SVN.

OpenJDK is a forest of repositories. A small top repository
and up to 6 sub repositories.
You can work with a partial forest, e.g. the top repository
and just one of the sub repositories, like 'jdk' or 'langtools'.
It depends on what you are trying to do.

But there is no concept of a partial repository or being able to
just work with and commit to a subset of the larger jdk repository,
Mercurial just doesn't have that feature and most people have learned
to live without it, with little pain. I myself prefer that Mercurial
NOT have this ability, it creates too many variations and risks.

If you haven't got enough room for a jdk repository (0.5Gb?), you probably
shouldn't be working on it with that machine.

The forest extension (fclone) is talked about here:
    http://www.selenic.com/mercurial/wiki/index.cgi/ForestExtension

Also see:
    http://openjdk.java.net/guide/repositories.html#installConfig

NetBeans may not work horribly well with a forest (or a nested
repository situation), but my NetBeans experience is just on one
repository at a time.

(Continue reading)

Kelly O'Hair | 25 Mar 20:34 2009
Picon

Re: Setup OpenJDK Netbeans project - Please help!


Ulf Zibis wrote:
> Am 23.03.2009 15:10, Alan Bateman schrieb:
>> Ulf Zibis wrote:
>>> :
>>> Thanks Alan.
>>> I hesitated to post to nb-projects-dev@..., because 
>>> there was no traffic since August 2008. But I'll give it a try.
>>>
>>> The error annotations in NetBeans for JConsole project, I guess, are 
>>> result of a NB bug, because the build runs without error.
>> AFAIK, there are two compilers in NetBeans. A "standard" javac that is 
>> used for the full builds and a patched version that runs while you 
>> edit. If I understand your screenshot then your issue is with the 
>> latter. Someone more familiar with the environment may know how to 
>> configure it and  I'm sure someone on nb-projects-dev will be able to 
>> help.
>>
>>>
>>> The hg support from NetBeans didn't work, because the local .hg 
>>> repository wasn't existent, so I created it by "Create Repository". 
>>> After this, I think, I should commit the WC into it, but I hesitate, 
>>> because I don't want to have an additional 250 MB copy of the whole 
>>> jdk on my harddisk. I have to be economic with diskspace. I would be 
>>> happy, if there would be a way, only to push the parts in the 
>>> repository which I'm working on. Do you have some hint, how to solve 
>>> this problem? Does it work, if I only commit the folder, which I'm 
>>> working on?
>>> I also did a clone of http://hg.openjdk.java.net/jdk7/jdk7. This 
>>> clone only contained some few make files, so I don't know what to do 
(Continue reading)

Ulf Zibis | 25 Mar 22:33 2009
Picon
Picon

Re: Setup OpenJDK Netbeans project - Mercurial - Please help!

Hi Kelly,

thanks for your answer.

-- Thanks to Alan, finding somebody for answer.

Look my working set in the attachment, downloaded from http://download.java.net/openjdk/jdk7/ (build b51).
- .hgtags contains entries up to jdk7-b50
I additionally have downloaded tip.tar.bz2 from http://hg.openjdk.java.net/jdk7/tl/jdk/
- .hgtags additionally contains entry for jdk7-b51
So, what should I do next?

Should I create local repository ".hg", and commit my working set to it, maybe first deleting corba etc. folders?
... or should I better extract my working set from tip.tar.bz2

On http://openjdk.java.net/guide/repositories.html#installConfig I read, I should install the Forest Extension.

On http://www.selenic.com/mercurial/wiki/index.cgi/ForestExtension I read:
    Download site: public development repository. (There's a newer version that should work against post-1.0 releases.)
I've downloaded the "newer version", which simply contains hgforest-crew-872a57531db6.out. What should I do with that, so I have "installed" it?
See my Mercurial install dir in attachment. (TortoiseHG is said to contain command line Mercurial 1.2.1)

On http://hg.akoha.org/hgforest/ I see, that there is a fix for Fix for Mercurial 1.2, but I don't know if it's included in "newer version".

Thanks in advance for additional help.

-Ulf



Am 25.03.2009 19:16, Kelly O'Hair schrieb:

If you are going to use Mercurial I would highly advise reading the
Mercurial Book at http://hgbook.red-bean.com/hgbook.html
at least the first few chapters. It's nothing like SVN.

OpenJDK is a forest of repositories. A small top repository
and up to 6 sub repositories.
You can work with a partial forest, e.g. the top repository
and just one of the sub repositories, like 'jdk' or 'langtools'.
It depends on what you are trying to do.

But there is no concept of a partial repository or being able to
just work with and commit to a subset of the larger jdk repository,
Mercurial just doesn't have that feature and most people have learned
to live without it, with little pain. I myself prefer that Mercurial
NOT have this ability, it creates too many variations and risks.

If you haven't got enough room for a jdk repository (0.5Gb?), you probably
shouldn't be working on it with that machine.

The forest extension (fclone) is talked about here:
   http://www.selenic.com/mercurial/wiki/index.cgi/ForestExtension

Also see:
   http://openjdk.java.net/guide/repositories.html#installConfig

NetBeans may not work horribly well with a forest (or a nested
repository situation), but my NetBeans experience is just on one
repository at a time.

-kto

Ulf Zibis wrote:
Hi All,

I've downloaded the b51 snapshot sources. I see some .hg* files, but can't get connected to the OpenJDK repository

How to make this a working Mercurial Working Copy?

Please see my problem in the attachment.

I thought, the hg support from NetBeans didn't work, because the local .hg repository wasn't existent, so I created it by "Create Repository". After this, I think, I should commit the WC files into it, but I hesitate, because I don't want to have an additional 250 MB copy of the whole jdk on my harddisk. I have to be economic with diskspace (60 GB). I would be happy, if there would be a way, only to push the parts in the repository which I'm working on (sun.nio.cs). Do you have some hint, how to solve this problem? Does it work, if I only commit the folder, which I'm working on?
I also did a clone of http://hg.openjdk.java.net/jdk7/jdk7 which created folder "jdk". This clone only contained some few make files, so I don't know what to do with it.

Alan said, I should use fclone. I don't see how to invoke fclone from NetBeans. Also I don't find any information about fclone on http://www.selenic.com/mercurial/wiki/index.cgi/Mercurial.

Additionally I've installed TortoiseHG.


Thanks in advance,

Ulf



------------------------------------------------------------------------



Ulf Zibis | 26 Mar 10:42 2009
Picon
Picon

Re: Setup OpenJDK Netbeans project - Mercurial - Please help!

Correction ...

Am 25.03.2009 22:33, Ulf Zibis schrieb:
Look my working set in the attachment, downloaded from http://download.java.net/openjdk/jdk7/ (build b51).
- .hgtags contains entries up to jdk7-b50
I additionally have downloaded tip.tar.bz2 from http://hg.openjdk.java.net/jdk7/tl/jdk/
- .hgtags additionally contains entry for jdk7-b51

Becoming more familiar, I see that I've been under the misapprehension, that I could just unpack the downloaded archive from http://hg.openjdk.java.net/jdk7/tl/jdk/ to have a local clone of that repository. I was in hope to save network traffic with a highly compressed archive in contrast to get the clone "file by file".


But my questions about the Forest Extension remain:


On http://openjdk.java.net/guide/repositories.html#installConfig I read, I should install the Forest Extension.

On http://www.selenic.com/mercurial/wiki/index.cgi/ForestExtension I read:
    Download site: public development repository. (There's a newer version that should work against post-1.0 releases.)
I've downloaded the "newer version", which simply contains hgforest-crew-872a57531db6.out. What should I do with that, so I have "installed" it?
See my Mercurial install dir in attachment. (TortoiseHG is said to contain command line Mercurial 1.2.1)

On http://hg.akoha.org/hgforest/ I see, that there is a fix for Fix for Mercurial 1.2, but I don't know if it's included in "newer version".

Thanks in advance for additional help.

-Ulf


Kelly O'Hair | 26 Mar 22:16 2009
Picon

Re: Setup OpenJDK Netbeans project - Mercurial - Please help!


I use the newer (bitbucket) forest.py with Mercurial 1.2 on my Mac and it
seems to work fine.

I do this:
    mkdir ${HOME}/hgws
    cd ${HOME}/hgws
    hg clone http://bitbucket.org/pmezard/hgforest-crew hgforest

Then add these lines to your ~/.hgrc file:
    [extensions]
    forest = ${HOME}/hgws/hgforest/forest.py

You may need to expand the ${HOME} to the real location in the ~/.hgrc file.

-kto

Ulf Zibis wrote:
> Correction ...
> 
> Am 25.03.2009 22:33, Ulf Zibis schrieb:
>> Look my working set in the attachment, downloaded from 
>> http://download.java.net/openjdk/jdk7/ (build b51).
>> - .hgtags contains entries up to jdk7-b50
>> I additionally have downloaded tip.tar.bz2 from 
>> http://hg.openjdk.java.net/jdk7/tl/jdk/
>> - .hgtags additionally contains entry for jdk7-b51
> 
> Becoming more familiar, I see that I've been under the misapprehension, 
> that I could just unpack the downloaded archive from 
> http://hg.openjdk.java.net/jdk7/tl/jdk/ to have a local clone of that 
> repository. I was in hope to save network traffic with a highly 
> compressed archive in contrast to get the clone "file by file".
> 
> 
> But my questions about the Forest Extension remain:
> 
>>
>> On http://openjdk.java.net/guide/repositories.html#installConfig I 
>> read, I should install the Forest Extension.
>>
>> On http://www.selenic.com/mercurial/wiki/index.cgi/ForestExtension I read:
>>     Download site: public development repository 
>> <http://hg.akoha.org/hgforest/>. (There's a newer version 
>> <http://www.bitbucket.org/pmezard/hgforest-crew/overview/> that should 
>> work against post-1.0 releases.)
>> I've downloaded the "newer version", which simply contains 
>> hgforest-crew-872a57531db6.out. What should I do with that, so I have 
>> "installed" it?
>> See my Mercurial install dir in attachment. (TortoiseHG is said to 
>> contain command line Mercurial 1.2.1)
>>
>> On http://hg.akoha.org/hgforest/ I see, that there is a fix for Fix 
>> for Mercurial 1.2, but I don't know if it's included in "newer version".
>>
>> Thanks in advance for additional help.
>>
>> -Ulf
>>
>>

Ulf Zibis | 26 Mar 22:32 2009
Picon
Picon

Re: Setup OpenJDK Netbeans project - Mercurial - Please help!

Hi Kelly,

thanks for the link.

I guess, you mean C:\Programme\TortoiseHg\hgforest\forest.py in my 
Windows case. Am I right ?
Or do you mean C:\Programme\TortoiseHg\hgws\hgforest\forest.py in my case ?
Maybe C:\Programme\TortoiseHg\extentions\forest.py would be also good 
idea, to be open for other extensions, and to avoid overwhelming the hg 
installdir. What do you think?

-Ulf

Am 26.03.2009 22:16, Kelly O'Hair schrieb:
>
> I use the newer (bitbucket) forest.py with Mercurial 1.2 on my Mac and it
> seems to work fine.
>
> I do this:
>    mkdir ${HOME}/hgws
>    cd ${HOME}/hgws
>    hg clone http://bitbucket.org/pmezard/hgforest-crew hgforest
>
> Then add these lines to your ~/.hgrc file:
>    [extensions]
>    forest = ${HOME}/hgws/hgforest/forest.py
>
> You may need to expand the ${HOME} to the real location in the ~/.hgrc 
> file.
>
> -kto
>
>
> Ulf Zibis wrote:
>> Correction ...
>>
>> Am 25.03.2009 22:33, Ulf Zibis schrieb:
>>> Look my working set in the attachment, downloaded from 
>>> http://download.java.net/openjdk/jdk7/ (build b51).
>>> - .hgtags contains entries up to jdk7-b50
>>> I additionally have downloaded tip.tar.bz2 from 
>>> http://hg.openjdk.java.net/jdk7/tl/jdk/
>>> - .hgtags additionally contains entry for jdk7-b51
>>
>> Becoming more familiar, I see that I've been under the 
>> misapprehension, that I could just unpack the downloaded archive from 
>> http://hg.openjdk.java.net/jdk7/tl/jdk/ to have a local clone of that 
>> repository. I was in hope to save network traffic with a highly 
>> compressed archive in contrast to get the clone "file by file".
>>
>>
>> But my questions about the Forest Extension remain:
>>
>>>
>>> On http://openjdk.java.net/guide/repositories.html#installConfig I 
>>> read, I should install the Forest Extension.
>>>
>>> On http://www.selenic.com/mercurial/wiki/index.cgi/ForestExtension I 
>>> read:
>>>     Download site: public development repository 
>>> <http://hg.akoha.org/hgforest/>. (There's a newer version 
>>> <http://www.bitbucket.org/pmezard/hgforest-crew/overview/> that 
>>> should work against post-1.0 releases.)
>>> I've downloaded the "newer version", which simply contains 
>>> hgforest-crew-872a57531db6.out. What should I do with that, so I 
>>> have "installed" it?
>>> See my Mercurial install dir in attachment. (TortoiseHG is said to 
>>> contain command line Mercurial 1.2.1)
>>>
>>> On http://hg.akoha.org/hgforest/ I see, that there is a fix for Fix 
>>> for Mercurial 1.2, but I don't know if it's included in "newer 
>>> version".
>>>
>>> Thanks in advance for additional help.
>>>
>>> -Ulf
>>>
>>>
>
>

Ulf Zibis | 27 Mar 10:00 2009
Picon
Picon

Re: Setup OpenJDK Netbeans project - Mercurial - Please help!

Hi all,

I've problems to find location of/for ~/.hgrc file. I don't find it 
anywhere.

What you mean by ${HOME} on (german) Windows?
- installdir: C:\Programme\TortoiseHg\
- user settings: C:\Dokumente und 
Einstellungen\user\Anwendungsdaten\TortoiseHg\

hg showconfig results:

C:\Dokumente und Einstellungen\user\Anwendungsdaten\TortoiseHg>hg showconfig
extdiff.cmd.vdiff=C:\\Programme\\TortoiseHg\\kdiff3
extensions.extdiff=
merge-tools.beyondcompare3.args=$local $other $base $output /ro 
/lefttitle=local
 /centerfile=base /righttitle=other /automerge /reviewconflicts /solo
merge-tools.beyondcompare3.gui=True
merge-tools.beyondcompare3.priority=-2
merge-tools.beyondcompare3.regkey=Software\\Scooter Software\\Beyond 
Compare 3
merge-tools.beyondcompare3.regname=ExePath
merge-tools.diffmerge.args=--nosplash --merge --title1=base 
--title2=local --tit
le3=other $base $local $other
merge-tools.diffmerge.checkchanged=True
merge-tools.diffmerge.gui=True
merge-tools.diffmerge.priority=-7
merge-tools.kdiff3.args=-L1 base --L2 local --L3 other $base $local 
$other -o $o
utput
merge-tools.kdiff3.fixeol=True
merge-tools.kdiff3.gui=True
merge-tools.kdiff3.priority=-1
merge-tools.kdiff3.regappend=\\kdiff3.exe
merge-tools.kdiff3.regkey=Software\\KDiff3
merge-tools.p4merge.args=$base $local $other $output
merge-tools.p4merge.gui=True
merge-tools.p4merge.priority=-8
merge-tools.p4merge.regappend=\\p4merge.exe
merge-tools.p4merge.regkey=Software\\Perforce\\Environment
merge-tools.p4merge.regname=P4INSTROOT
merge-tools.tortoisemerge.args=/base:$output /mine:$local /theirs:$other 
/merged
:$output
merge-tools.tortoisemerge.gui=True
merge-tools.tortoisemerge.priority=-9
merge-tools.tortoisemerge.regkey=Software\\TortoiseSVN
merge-tools.winmergeu.args=/e /ub /dl other /dr local $other $local $output
merge-tools.winmergeu.fixeol=True
merge-tools.winmergeu.gui=True
merge-tools.winmergeu.priority=-10
merge-tools.winmergeu.regkey=Software\\Thingamahoochie\\WinMerge\\
merge-tools.winmergeu.regname=Executable
ui.editor=notepad
ui.ssh="C:\\Programme\\TortoiseHg\\TortoisePlink.exe" -ssh -2
ui.username=UlfZibis

Please give me some more hints.

-Ulf

Am 26.03.2009 23:34, Kelly O'Hair schrieb:
>
> I have no idea about TortoiseHg. I get the forest.py extension
> directly from bitbucket.org so I know I have the latest one.
> What gets shipped in TortoiseHg should work but I have no idea
> what version it is.
> The forest.py is just a text file, you can diff the one you have
> with the bitbucket.org one to see if it differs at all.
>
> Watch out for TortoiseHg, it seems to enable many more hg extensions
> than most people need by default. It should work fine, but I don't
> like having lots of hg extensions I don't need enabled.
>
> Run 'hg showconfig' to see what extensions you have enabled.
>
> -kto
>
> Ulf Zibis wrote:
>> Hi Kelly,
>>
>> thanks for the link.
>>
>> I guess, you mean C:\Programme\TortoiseHg\hgforest\forest.py in my 
>> Windows case. Am I right ?
>> Or do you mean C:\Programme\TortoiseHg\hgws\hgforest\forest.py in my 
>> case ?
>> Maybe C:\Programme\TortoiseHg\extentions\forest.py would be also good 
>> idea, to be open for other extensions, and to avoid overwhelming the 
>> hg installdir. What do you think?
>>
>> -Ulf
>>
>>
>>
>> Am 26.03.2009 22:16, Kelly O'Hair schrieb:
>>>
>>> I use the newer (bitbucket) forest.py with Mercurial 1.2 on my Mac 
>>> and it
>>> seems to work fine.
>>>
>>> I do this:
>>>    mkdir ${HOME}/hgws
>>>    cd ${HOME}/hgws
>>>    hg clone http://bitbucket.org/pmezard/hgforest-crew hgforest
>>>
>>> Then add these lines to your ~/.hgrc file:
>>>    [extensions]
>>>    forest = ${HOME}/hgws/hgforest/forest.py
>>>
>>> You may need to expand the ${HOME} to the real location in the 
>>> ~/.hgrc file.
>>>
>>> -kto
>>>
>>>
>


Gmane