Newbie help

2023-05-12 Thread Peter Toye



Hello

I'm returning to NetBeans after a long bap, and have forgotten almost everything I know, so please be indulgent.

I'm trying to work out how to organise the workflow for developing a program - I suspect it's changed since I was last here. 

What I can't work out is how to separate the development from the release version of the project. I've got a working version which I want to use, but I want to extend it without losing sight of the original. I've been using Visual Studio for other projects, and they have a separate configurations for the dev and release versions and the executables go into different directories. Is there a way of doing this in NetBeans? As far as I can see, once I've started a debug session, the release version is overwritten.

I can't see any documentation on the Apache NetBeans website about the basics of developing programs - I expect I'm looking in the wrong place. Thanks in advance,Petermailto:netbe...@ptoye.comhttps://www.ptoye.com



-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: New 12.2 install, can't change netbeans.conf

2020-12-07 Thread Peter Toye
Dear Brenden,

Well, on  my machine (Windows 10 Home 64-bit) I don't have write access to the 
directory of the file, but Admin does.

I assume you've looked at the effective permissions part of the file properties 
to check.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, December 7, 2020, 5:41:57 PM, you wrote:



Sorry about that, I just asked about this on Superuser and I just forgot to 
include the details since I had just explained them. (Yall always check 
Superuser every time yall get an email, right? :-) )

Yes, I don't have permission.  The entire directory tree including all files is 
marked as "Read Only" and all the files are owned by "Administrators" (and no 
group set, group is "None").  The read-only bit seems to be the main problem, 
but I suspect that the file ownership will also figure in to there somewhere as 
well.  Trying to edit this as text file (Gvim) doesn't allow me to change the 
file even with :w!  And even if I run Explorer with Admin permissions it would 
let me change the read only status.  It runs and doesn't report an error, but 
the read only status remains.

At minimum this is really inconvenient.  At worst I guess I might have to wait 
for a fix and then re-install.

I think I'd be happier with a configuration file under my users directory, say 
in a .netbeans directory or something, that I owned and I could just change as 
needed.



On 12/7/2020 9:27 AM, Geertjan Wielenga wrote:

Failing how? Maybe you don’t have permissions on the file?
Gj

On Mon, 7 Dec 2020 at 18:21, Brenden Towey  wrote:

I have a brand new 12.2 installation under Windows 10, and so far I've 
spent a fair amount of time trying to make changes to nebeans.conf and 
failing.  Windows UAC doesn't seem to like your configuration file very 
much.  I'd like to see changes to the installer to specifically permit 
easier editing of that file, and maybe a review to identify other files 
that the user might reasonably need make changes to.

Corollary: does anyone know how to change netbeans.conf under windows 
10?  I'd appreciate the help.


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: New 12.2 install, can't change netbeans.conf

2020-12-07 Thread Peter Toye
Dear Brenden,

You have to run Wordpad (or whatever editor you're using) as an administrator. 
And don't forget to save a copy first!

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, December 7, 2020, 5:20:47 PM, you wrote:

> I have a brand new 12.2 installation under Windows 10, and so far I've spent 
> a fair amount of time trying to make changes to nebeans.conf and failing.  
> Windows UAC doesn't seem to like your configuration file very much.  I'd like 
> to see changes to the installer to specifically permit easier editing of that 
> file, and maybe a review to identify other files that the user might 
> reasonably need make changes to.

> Corollary: does anyone know how to change netbeans.conf under windows 10?  
> I'd appreciate the help.


> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org

> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: NB doesn't want to update

2020-11-03 Thread Peter Toye
Dear Neil,

Thanks. I'd assumed that the 'check for updates' would look for new versions.  
It looks like I have to get the latest (12.1 I think) version by hand.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Tuesday, November 3, 2020, 11:50:19 AM, you wrote:

> On Tue, 3 Nov 2020 at 11:46, Peter Toye  wrote:
>> But when I ask NB to check for updates it tells me that 'your IDE is up to 
>> date!' which is obviously not the case.
>>
>> Anyone any idea what's going on?

> Actually, expected behaviour - there are no updates for 11.1 there.
> That's different to saying that 11.2+ don't exist!

> There should have been a notice about 11.2 at some point, but it shows
> only once I think.

> It's come up before that the current behaviour for notifying of
> patches is confusing in terms of notifying of new releases.

> Best wishes,

> Neil

NB doesn't want to update

2020-11-03 Thread Peter Toye
I'm rejoining the NB community after a year of not doing any Java work.

Started up NB (version 11.1) and immediately got an 'unexpected exception' 
error, which I've reported to JIRA.

But when I ask NB to check for updates it tells me that 'your IDE is up to 
date!' which is obviously not the case.

Anyone any idea what's going on?

 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Re: GUI builder cannot find generated code

2019-10-31 Thread Peter Toye
Dear Neil,

Oh well. I've looked at some old NB8 projects and they have the comments.

I don't think it's the dependencies, though, as in my original project all I 
had to do was edit the Java file and it worked fine without touching the 
project properties, which had the same libraries as the cut-down example I 
posted with the exception of an additional private library.

I don't think I'd have edited the comments out with Wordpad myself, as there's 
no reason to. I use the NB editor when changing my programs. All very odd but 
at least solved by yourself so I can continue work. Thanks again.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Thursday, October 31, 2019, 5:05:02 PM, you wrote:

> On Thu, 31 Oct 2019 at 16:53, Peter Toye
>  wrote:
>> Thanks a million. That did the trick.

> Great!

>> I suspect that the conversion from NB 8 to 11 has some bugs in this area - 
>> it probably doesn't add the comments in properly. But now I don't have a 
>> working NB 8 so can't test it out.

> In general there isn't - I've done a lot of
> that update over the last
> couple of months - in fact, checked against some of mine to see
> exactly what was missing.  There is no comment to add in.  Something
> in your process has resulted in them being removed.  Not sure if
> broken dependencies could cause that problem?!

> Best wishes,

> Neil

> -
> To unsubscribe, e-mail:
> users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail:
> users-h...@netbeans.apache.org

> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: GUI builder cannot find generated code

2019-10-31 Thread Peter Toye
Dear Neil,

Thanks a million. That did the trick.

I had no idea what the GUI editor was looking for, and for some reason the NB 
editor suppresses the GEN-BEGIN/END comments, so it's not so easy to work out 
by looking at the text. I'd worked out the bit round the initcomponents method, 
but not the variables.

I suspect that the conversion from NB 8 to 11 has some bugs in this area - it 
probably doesn't add the comments in properly. But now I don't have a working 
NB 8 so can't test it out.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Thursday, October 31, 2019, 11:59:34 AM, you wrote:

> On Thu, 31 Oct 2019 at 11:46, Peter Toye
>  wrote:
>> You should get an error message saying the file is corrupt. If you don't, 
>> your system is different from mine.

> Yep!  Probably because it is.  Open the
> OuterPane.java file in a text
> editor outside NetBeans and make sure the comments around the
> variables section are

>   // Variables declaration - do not
> modify//GEN-BEGIN:variables
>   private javax.swing.ButtonGroup bgColours;
> 
>   // End of variables
> declaration//GEN-END:variables

> And in the project properties, remove all external libraries.

> Opens fine for me then.

> Best wishes,

> Neil

> -
> To unsubscribe, e-mail:
> users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail:
> users-h...@netbeans.apache.org

> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: GUI builder cannot find generated code

2019-10-31 Thread Peter Toye
Dear Geertjan,

Sorry for the delay - urgent project took up too much time.

I'm not sure what you mean by a "Stack trace" - there's no dump available as it 
didn't crash.

I've now put the example onto GitHub at https://github.com/ptoye/TestFormBug

Here's as small an example as I can manage.

Steps to reproduce:

Open TestFormBug in NB 11.1 (I'm on Windows - don't know if the OS is relevant).
If not already open, in package com.ptoye.testFormBug, open OuterPane.Java.
Click on "Design" tab
You should get an error message saying the file is corrupt. If you don't, your 
system is different from mine.


Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Wednesday, October 23, 2019, 3:33:49 PM, you wrote:


Unless we can reproduce it or get a stack trace, you?ll get no responses.

Gj

On Wed, 23 Oct 2019 at 16:09, Peter Toye  wrote:

More information on this. When I open the .java file in a text editor, the 
editor-fold lines have extra information

  // //GEN-BEGIN:initComponents
and
  } // //GEN-END:initComponents

But these don't appear when I look at the file in NetBeans. I've done the same 
for a very simple project which I started from scratch and the same happens.

Is the editor performing some sort of censorship on auto-generated comments? It 
doesn't make looking for problems any easier. Or is it a bug, in which case 
I'll report it?

But I still can't develop my project until I can sort this. I'm attaching the 
error that I get in case it helps.

Does anyone know exactly what the GUI editor is looking for, so that I can edit 
the file to satisfy it? Various attempts by me to try that have all failed.

-

Tuesday, October 22, 2019, 11:55:09 AM, you wrote:


Another issue moving from NB 8 to 11.1

I moved a Java with Ant project from NB version 8 to 11.1, and everything 
seemed fine until I decided to modify a form within the project. I got an error 
message saying that the GUI builder couldn't find the generated code. The 
message directed me to the wiki page 
http://wiki.netbeans.org/FormGuardedBlockError which describes the issue, but 
the generated code sections of my project seem OK - I reproduce them below. 
These are identical to code generated on a new project which of course doesn't 
give the error.

  // 
  private void initComponents() {
...
add(pnlButtons, java.awt.BorderLayout.NORTH);
??  } // 

  // Variables declaration - do not modify
  private javax.swing.ButtonGroup bgColours;
...
  private javax.swing.JRadioButton rbtTemp;
  // End of variables declaration
??

Any ideas on how I can recover from this, as the code looks fine?

 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Re: GUI builder cannot find generated code

2019-10-23 Thread Peter Toye
Dear Paul,

You can probably delete the swing library - the original program used it.

The project platform is JDK12 which is what I've got installed. You can 
probably downgrade it to 11 without problems, as I don 't use any Java features 
that aren't in version 8.

How is one to send an entire project without zipping? I'm on Windows and don't 
have tar.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Wednesday, October 23, 2019, 4:57:18 PM, you wrote:


I just did that and two issues popped up right away:
Problem: The project uses a class library called "swing-layout", but this class 
library was not found.
Solution: Click Resolve to open the Library Manager and create a new class 
library called "swing-layout".
The active project platform is an older version than it's required by project 
source/binary format.
I'm using NetBeans 11.1 with AdoptOpen JDK 11
So I don't even get as far as you.
FYI: I'm pretty sure Geertjan said no zips please. 
---

Cheers,

Slim

On 2019-10-23 11:32, Peter Toye wrote:

Dear Geertjan,

I'm not sure what you mean by a "Stack trace" - there's no dump available as it 
didn't crash..

Here's as small an example as I can manage.

Steps to reproduce:

Open TestFormBug in NB 11.1 (I'm on Windows - don't know if the OS is relevant).
If not already open, in package com.ptoye.testFormBug, open OuterPane.Java.
Click on "Design" tab
You should get an error message saying the file is corrupt. If you don't, your 
system is different from mine.


Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Wednesday, October 23, 2019, 3:33:49 PM, you wrote:

 
Unless we can reproduce it or get a stack trace, you’ll get no responses.

Gj

On Wed, 23 Oct 2019 at 16:09, Peter Toye  wrote:
 
More information on this. When I open the .java file in a text editor, the 
editor-fold lines have extra information

  // //GEN-BEGIN:initComponents
and
  } // //GEN-END:initComponents

But these don't appear when I look at the file in NetBeans. I've done the same 
for a very simple project which I started from scratch and the same happens.

Is the editor performing some sort of censorship on auto-generated comments? It 
doesn't make looking for problems any easier. Or is it a bug, in which case 
I'll report it?

But I still can't develop my project until I can sort this. I'm attaching the 
error that I get in case it helps.

Does anyone know exactly what the GUI editor is looking for, so that I can edit 
the file to satisfy it? Various attempts by me to try that have all failed.

-

Tuesday, October 22, 2019, 11:55:09 AM, you wrote:

 
Another issue moving from NB 8 to 11.1

I moved a Java with Ant project from NB version 8 to 11.1, and everything 
seemed fine until I decided to modify a form within the project. I got an error 
message saying that the GUI builder couldn't find the generated code. The 
message directed me to the wiki page 
http://wiki.netbeans.org/FormGuardedBlockError which describes the issue, but 
the generated code sections of my project seem OK - I reproduce them below. 
These are identical to code generated on a new project which of course doesn't 
give the error.

  // 
  private void initComponents() {
...
add(pnlButtons, java.awt.BorderLayout.NORTH);
??  } // 

  // Variables declaration - do not modify
  private javax.swing.ButtonGroup bgColours;
...
  private javax.swing.JRadioButton rbtTemp;
  // End of variables declaration
??

Any ideas on how I can recover from this, as the code looks fine?

 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Re: GUI builder cannot find generated code

2019-10-23 Thread Peter Toye
Dear Geertjan,

I'm not sure what you mean by a "Stack trace" - there's no dump available as it 
didn't crash..

Here's as small an example as I can manage.

Steps to reproduce:

Open TestFormBug in NB 11.1 (I'm on Windows - don't know if the OS is relevant).
If not already open, in package com.ptoye.testFormBug, open OuterPane.Java.
Click on "Design" tab
You should get an error message saying the file is corrupt. If you don't, your 
system is different from mine.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Wednesday, October 23, 2019, 3:33:49 PM, you wrote:


Unless we can reproduce it or get a stack trace, you’ll get no responses.

Gj

On Wed, 23 Oct 2019 at 16:09, Peter Toye  wrote:

More information on this. When I open the .java file in a text editor, the 
editor-fold lines have extra information

  // //GEN-BEGIN:initComponents
and
  } // //GEN-END:initComponents

But these don't appear when I look at the file in NetBeans. I've done the same 
for a very simple project which I started from scratch and the same happens.

Is the editor performing some sort of censorship on auto-generated comments? It 
doesn't make looking for problems any easier. Or is it a bug, in which case 
I'll report it?

But I still can't develop my project until I can sort this. I'm attaching the 
error that I get in case it helps.

Does anyone know exactly what the GUI editor is looking for, so that I can edit 
the file to satisfy it? Various attempts by me to try that have all failed.

-

Tuesday, October 22, 2019, 11:55:09 AM, you wrote:


Another issue moving from NB 8 to 11.1

I moved a Java with Ant project from NB version 8 to 11.1, and everything 
seemed fine until I decided to modify a form within the project. I got an error 
message saying that the GUI builder couldn't find the generated code. The 
message directed me to the wiki page 
http://wiki.netbeans.org/FormGuardedBlockError which describes the issue, but 
the generated code sections of my project seem OK - I reproduce them below. 
These are identical to code generated on a new project which of course doesn't 
give the error.

  // 
  private void initComponents() {
...
add(pnlButtons, java.awt.BorderLayout.NORTH);
??  } // 

  // Variables declaration - do not modify
  private javax.swing.ButtonGroup bgColours;
...
  private javax.swing.JRadioButton rbtTemp;
  // End of variables declaration
??

Any ideas on how I can recover from this, as the code looks fine?

 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com<>

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Re: GUI builder cannot find generated code

2019-10-23 Thread Peter Toye
More information on this. When I open the .java file in a text editor, the 
editor-fold lines have extra information

  // //GEN-BEGIN:initComponents
and
  } // //GEN-END:initComponents

But these don't appear when I look at the file in NetBeans. I've done the same 
for a very simple project which I started from scratch and the same happens.

Is the editor performing some sort of censorship on auto-generated comments? It 
doesn't make looking for problems any easier. Or is it a bug, in which case 
I'll report it?

But I still can't develop my project until I can sort this. I'm attaching the 
error that I get in case it helps. 

Does anyone know exactly what the GUI editor is looking for, so that I can edit 
the file to satisfy it? Various attempts by me to try that have all failed.

-
Tuesday, October 22, 2019, 11:55:09 AM, you wrote:


Another issue moving from NB 8 to 11.1

I moved a Java with Ant project from NB version 8 to 11.1, and everything 
seemed fine until I decided to modify a form within the project. I got an error 
message saying that the GUI builder couldn't find the generated code. The 
message directed me to the wiki page 
http://wiki.netbeans.org/FormGuardedBlockError which describes the issue, but 
the generated code sections of my project seem OK - I reproduce them below. 
These are identical to code generated on a new project which of course doesn't 
give the error.

  // 
  private void initComponents() {
...
add(pnlButtons, java.awt.BorderLayout.NORTH);
??  } // 

  // Variables declaration - do not modify
  private javax.swing.ButtonGroup bgColours;
...
  private javax.swing.JRadioButton rbtTemp;
  // End of variables declaration
??

Any ideas on how I can recover from this, as the code looks fine?

 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

GUI builder cannot find generated code

2019-10-22 Thread Peter Toye
Another issue moving from NB 8 to 11.1

I moved a Java with Ant project from NB version 8 to 11.1, and everything 
seemed fine until I decided to modify a form within the project. I got an error 
message saying that the GUI builder couldn't find the generated code. The 
message directed me to the wiki page 
http://wiki.netbeans.org/FormGuardedBlockError which describes the issue, but 
the generated code sections of my project seem OK - I reproduce them below. 
These are identical to code generated on a new project which of course doesn't 
give the error.

  // 
  private void initComponents() {
...
add(pnlButtons, java.awt.BorderLayout.NORTH);

  } // 

  // Variables declaration - do not modify
  private javax.swing.ButtonGroup bgColours;
...
  private javax.swing.JRadioButton rbtTemp;
  // End of variables declaration



Any ideas on how I can recover from this, as the code looks fine?

 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Re: Java project now needs classpaths to run it

2019-10-22 Thread Peter Toye
Dear Eric,

Thanks. I'm Windows-based so the details of *nix flavours rather pass me by.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, October 21, 2019, 9:02:34 PM, you wrote:


It's pretty common-place (at least in *nix) for commands to support both GNU 
style and POSIX style arguments with both alternatives for most things. 
From running "java --help", I learn that
--module will do the same as -m
and
-p is an alternative to --module-path


On 10/21/19 5:56 AM, Peter Toye wrote:

Re: Java project now needs classpaths to run it

Why the Java designer can't just stick to a single syntax is beyond me.


Re: Java project now needs classpaths to run it

2019-10-21 Thread Peter Toye
Dear Geertjan,

Much happier :-)>  . Many thanks. I owe you another beer Where are you 
based?

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, October 21, 2019, 4:15:08 PM, you wrote:


https://issues.apache.org/jira/browse/NETBEANS-3260

Hope the above investigation makes you happy. :-)

Gj

On Mon, Oct 21, 2019 at 4:07 PM Geertjan Wielenga  wrote:


It is copied and pasted from there.

Gj

On Mon, 21 Oct 2019 at 16:06, Peter Toye  wrote:

Dear Geertjan,

Fine. I agree. A shame that OpenJDK don't put this on the mailing list page you 
sent me.


Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, October 21, 2019, 2:53:18 PM, you wrote:


Who is “they”? Why are thousands of people able to write to that mailing list 
apparently without a problem.

https://mail.openjdk.java.net/mailman/listinfo/discuss

Go to the above and sign up, ignoring this topic on mailing lists now.

Gj


On Mon, 21 Oct 2019 at 15:48, Peter Toye  wrote:

Dear Geertjan,

I wasn't expecting you to, but I hope you can see my frustration. I mail 
OpenJDK at the address they give you, and get an auto-reject telling me to 
contact that same address. This is for information - just don't bother trying 
to contact OpenJDK.


Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, October 21, 2019, 12:56:31 PM, you wrote:





I don’t know who the ‘they’ are you’re referring to, but I’m sorry this is 
where I’m going to draw a line: I am not going to help you subscribe to a 
mailing list.

Gj

On Mon, 21 Oct 2019 at 13:54, Peter Toye  wrote:

Dear Geertjan,

Agreed - but the address they give is the one that's auto-rejected!


Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, October 21, 2019, 11:35:13 AM, you wrote:


You’ll need to subscribe to the mailing lists you want to write to.

Gj

On Mon, 21 Oct 2019 at 12:31, Peter Toye  wrote:

Dear Geertjan,

Thanks. I wrote to the mailing list address and got the following answer:

  You are not allowed to post to this mailing list, and your message has
  been automatically rejected.  If you think that your messages are
  being rejected in error, contact the mailing list owner at
  mailman-ow...@openjdk.java.net.
 
But that was the address that I mailed! A but recursive. Something wrong up at 
openJDK methinks. I've tried another address

I'll file an issue in JIRA.


Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Re: Java project now needs classpaths to run it

2019-10-21 Thread Peter Toye
Dear Geertjan,

Fine. I agree. A shame that OpenJDK don't put this on the mailing list page you 
sent me.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, October 21, 2019, 2:53:18 PM, you wrote:


Who is “they”? Why are thousands of people able to write to that mailing list 
apparently without a problem.

https://mail.openjdk.java.net/mailman/listinfo/discuss

Go to the above and sign up, ignoring this topic on mailing lists now.

Gj


On Mon, 21 Oct 2019 at 15:48, Peter Toye  wrote:

Dear Geertjan,

I wasn't expecting you to, but I hope you can see my frustration. I mail 
OpenJDK at the address they give you, and get an auto-reject telling me to 
contact that same address. This is for information - just don't bother trying 
to contact OpenJDK.


Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, October 21, 2019, 12:56:31 PM, you wrote:




I don’t know who the ‘they’ are you’re referring to, but I’m sorry this is 
where I’m going to draw a line: I am not going to help you subscribe to a 
mailing list.

Gj

On Mon, 21 Oct 2019 at 13:54, Peter Toye  wrote:

Dear Geertjan,

Agreed - but the address they give is the one that's auto-rejected!


Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, October 21, 2019, 11:35:13 AM, you wrote:


You’ll need to subscribe to the mailing lists you want to write to.

Gj

On Mon, 21 Oct 2019 at 12:31, Peter Toye  wrote:

Dear Geertjan,

Thanks. I wrote to the mailing list address and got the following answer:

  You are not allowed to post to this mailing list, and your message has
  been automatically rejected.  If you think that your messages are
  being rejected in error, contact the mailing list owner at
  mailman-ow...@openjdk.java.net.
 
But that was the address that I mailed! A but recursive. Something wrong up at 
openJDK methinks. I've tried another address

I'll file an issue in JIRA.


Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Re: Java project now needs classpaths to run it

2019-10-21 Thread Peter Toye
Dear Geertjan,

I wasn't expecting you to, but I hope you can see my frustration. I mail 
OpenJDK at the address they give you, and get an auto-reject telling me to 
contact that same address. This is for information - just don't bother trying 
to contact OpenJDK.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, October 21, 2019, 12:56:31 PM, you wrote:



I don’t know who the ‘they’ are you’re referring to, but I’m sorry this is 
where I’m going to draw a line: I am not going to help you subscribe to a 
mailing list.

Gj

On Mon, 21 Oct 2019 at 13:54, Peter Toye  wrote:

Dear Geertjan,

Agreed - but the address they give is the one that's auto-rejected!


Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, October 21, 2019, 11:35:13 AM, you wrote:


You’ll need to subscribe to the mailing lists you want to write to.

Gj

On Mon, 21 Oct 2019 at 12:31, Peter Toye  wrote:

Dear Geertjan,

Thanks. I wrote to the mailing list address and got the following answer:

  You are not allowed to post to this mailing list, and your message has
  been automatically rejected.  If you think that your messages are
  being rejected in error, contact the mailing list owner at
  mailman-ow...@openjdk.java.net.
 
But that was the address that I mailed! A but recursive. Something wrong up at 
openJDK methinks. I've tried another address

I'll file an issue in JIRA.


Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Re: Java project now needs classpaths to run it

2019-10-21 Thread Peter Toye
Dear Geertjan,

Agreed - but the address they give is the one that's auto-rejected!

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, October 21, 2019, 11:35:13 AM, you wrote:


You’ll need to subscribe to the mailing lists you want to write to.

Gj

On Mon, 21 Oct 2019 at 12:31, Peter Toye  wrote:

Dear Geertjan,

Thanks. I wrote to the mailing list address and got the following answer:

  You are not allowed to post to this mailing list, and your message has
  been automatically rejected.  If you think that your messages are
  being rejected in error, contact the mailing list owner at
  mailman-ow...@openjdk.java.net.
 
But that was the address that I mailed! A but recursive. Something wrong up at 
openJDK methinks. I've tried another address

I'll file an issue in JIRA.


Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Re: Java project now needs classpaths to run it

2019-10-21 Thread Peter Toye
Dear Geertjan,

Thanks. I wrote to the mailing list address and got the following answer:

  You are not allowed to post to this mailing list, and your message has
  been automatically rejected.  If you think that your messages are
  being rejected in error, contact the mailing list owner at
  mailman-ow...@openjdk.java.net.
  
But that was the address that I mailed! A but recursive. Something wrong up at 
openJDK methinks. I've tried another address

I'll file an issue in JIRA.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, October 21, 2019, 10:59:35 AM, you wrote:


File an issue with steps, and we can investigate and see where to fix that 
output.

If it still gives problems, can you say what those problems are, or how can we 
help?

Gj

On Mon, 21 Oct 2019 at 11:56, Peter Toye  wrote:

Dear Geertjan,

Thanks again. I'd found that page, and the code I produced was a copy of the 
code there. It seems that  a "-m" option is needed to indicate the main class.
It still gives problems, but I'll try your suggestion of trying to join the 
openJDK mailing list.

So the Ant script output now has three bugs:

No double quotes round the Java executable directory "Program Files"
"-module-path" should read "--module-path"
"-m" needed before the main class.


Why the Java designer can't just stick to a single syntax is beyond me.


Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, October 21, 2019, 9:07:54 AM, you wrote:


https://openjdk.java.net/projects/jigsaw/quick-start

That should help, it includes the java command line syntax you're looking for.

Gj

On Sun, Oct 20, 2019 at 11:21 PM Geertjan Wielenga  wrote:

To be honest, I'd love to help but I'm not going to spend any time guessing 
about your application, you're going to need to provide a way to access it, 
e.g., put it on GitHub, so that it can be downloaded, e.g., sorry, "import 
com.ptoye.astro.World", no idea what that is, and please do not try to explain 
-- just take your application and put it on GitHub or somewhere else (please 
not as a ZIP file) and then I'll be happy to help.

Indeed, yes, it would be very useful to everyone if you'd join the openjdk 
mailing lists and explain the problems you're having running java on the 
command line -- they need to know that otherwise they'll never hear from you 
and never make it work the way you'd like.

Gj



On Sun, Oct 20, 2019 at 8:10 PM Peter Toye  wrote:

Dear Geertjan,

OK, I've read up on modules and written my first Hello World program which 
compiles and runs fine using NetBeans. However, it doesn't run from a command 
line, even after I've removed the mistakes in the Ant-generated suggestion:

D:\>"C:\Program Files\Java\jdk-12.0.1/bin/java" --module-path 
D:\Peter\Netbeans\TestModules1\build\modules com.ptoye.greetings.Main
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
Error: Could not find or load main class com.ptoye.greetings.Main
Caused by: java.lang.ClassNotFoundException: com.ptoye.greetings.Main

The main class is:

package com.ptoye.greetings;
import com.ptoye.astro.World;
??public class Main {??
public static void main(String[] args) {
??System.out.format("Greetings %s!%n", World.name());
??}
??}??

Where does one go from here? I'm using the Oracle version of Java, Would 
OpenJDK make any difference? AFAICS  it's the same.

Thanks for the mailing list link. I looked at them but they all seem to be 
oriented towards people developing OpenJDK rather than users. There isn't a 
"support" or "help" link on the OpenJDK site.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, October 14, 2019, 10:18:27 AM, you wrote:







On Mon, Oct 14, 2019 at 11:16 AM Peter Toye  wrote:

Dear Geertjan,

I agree that the "java" command has nothing to do with Netbeans. I'll try to be 
more explicit:

I have a project which dates back to about 2006 and has a main class which I'll 
call A. This uses a separate class B which I developed separately. I included B 
as a library using A's project properties.

Using Netbeans 8 (and earlier) it was possible to run the project using a 
command line like
  java -jar A.jar
and the program ran. The Java version was 1.8. The path to the Java executable 
is in my PATH.

Earlier this year I wanted to develop it further, and decided to move to the 
latest version of NetBeans (11.1) and Java (12). Now the command line as given 
in the build output is
  C:\Program Files\Java\jdk-12.0.1/bin/java -cp directory\A.jar;directory\B.jar 
classpath.A

My main point is that I don't understand how or why this has changed. 


https://openjdk.java.net/projects/

Re: Java project now needs classpaths to run it

2019-10-21 Thread Peter Toye
Dear Geertjan,

Thanks again. I'd found that page, and the code I produced was a copy of the 
code there. It seems that  a "-m" option is needed to indicate the main class.
It still gives problems, but I'll try your suggestion of trying to join the 
openJDK mailing list.

So the Ant script output now has three bugs:

No double quotes round the Java executable directory "Program Files"
"-module-path" should read "--module-path"
"-m" needed before the main class.

Why the Java designer can't just stick to a single syntax is beyond me.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, October 21, 2019, 9:07:54 AM, you wrote:


https://openjdk.java.net/projects/jigsaw/quick-start

That should help, it includes the java command line syntax you're looking for.

Gj

On Sun, Oct 20, 2019 at 11:21 PM Geertjan Wielenga  wrote:

To be honest, I'd love to help but I'm not going to spend any time guessing 
about your application, you're going to need to provide a way to access it, 
e.g., put it on GitHub, so that it can be downloaded, e.g., sorry, "import 
com.ptoye.astro.World", no idea what that is, and please do not try to explain 
-- just take your application and put it on GitHub or somewhere else (please 
not as a ZIP file) and then I'll be happy to help.

Indeed, yes, it would be very useful to everyone if you'd join the openjdk 
mailing lists and explain the problems you're having running java on the 
command line -- they need to know that otherwise they'll never hear from you 
and never make it work the way you'd like.

Gj



On Sun, Oct 20, 2019 at 8:10 PM Peter Toye  wrote:

Dear Geertjan,

OK, I've read up on modules and written my first Hello World program which 
compiles and runs fine using NetBeans. However, it doesn't run from a command 
line, even after I've removed the mistakes in the Ant-generated suggestion:

D:\>"C:\Program Files\Java\jdk-12.0.1/bin/java" --module-path 
D:\Peter\Netbeans\TestModules1\build\modules com.ptoye.greetings.Main
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
Error: Could not find or load main class com.ptoye.greetings.Main
Caused by: java.lang.ClassNotFoundException: com.ptoye.greetings.Main

The main class is:

package com.ptoye.greetings;
import com.ptoye.astro.World;
??public class Main {??
public static void main(String[] args) {
??System.out.format("Greetings %s!%n", World.name());
??}
??}??

Where does one go from here? I'm using the Oracle version of Java, Would 
OpenJDK make any difference? AFAICS  it's the same.

Thanks for the mailing list link. I looked at them but they all seem to be 
oriented towards people developing OpenJDK rather than users. There isn't a 
"support" or "help" link on the OpenJDK site.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, October 14, 2019, 10:18:27 AM, you wrote:






On Mon, Oct 14, 2019 at 11:16 AM Peter Toye  wrote:

Dear Geertjan,

I agree that the "java" command has nothing to do with Netbeans. I'll try to be 
more explicit:

I have a project which dates back to about 2006 and has a main class which I'll 
call A. This uses a separate class B which I developed separately. I included B 
as a library using A's project properties.

Using Netbeans 8 (and earlier) it was possible to run the project using a 
command line like
  java -jar A.jar
and the program ran. The Java version was 1.8. The path to the Java executable 
is in my PATH.

Earlier this year I wanted to develop it further, and decided to move to the 
latest version of NetBeans (11.1) and Java (12). Now the command line as given 
in the build output is
  C:\Program Files\Java\jdk-12.0.1/bin/java -cp directory\A.jar;directory\B.jar 
classpath.A

My main point is that I don't understand how or why this has changed. 


https://openjdk.java.net/projects/jigsaw/

There is now a module system in Java, meaning that there is now a module path 
and a class path. That was not there in JDK 8 and is now there since then.

Can you join the Java mailing lists and discuss further there: 
https://mail.openjdk.java.net/mailman/listinfo

Gj

Re: Java project now needs classpaths to run it

2019-10-20 Thread Peter Toye
Dear Geertjan,

OK, I've read up on modules and written my first Hello World program which 
compiles and runs fine using NetBeans. However, it doesn't run from a command 
line, even after I've removed the mistakes in the Ant-generated suggestion:

D:\>"C:\Program Files\Java\jdk-12.0.1/bin/java" --module-path 
D:\Peter\Netbeans\TestModules1\build\modules com.ptoye.greetings.Main
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
Error: Could not find or load main class com.ptoye.greetings.Main
Caused by: java.lang.ClassNotFoundException: com.ptoye.greetings.Main

The main class is:

package com.ptoye.greetings;
import com.ptoye.astro.World;
??public class Main {??
public static void main(String[] args) {
??System.out.format("Greetings %s!%n", World.name());
??}
??}??

Where does one go from here? I'm using the Oracle version of Java, Would 
OpenJDK make any difference? AFAICS  it's the same.

Thanks for the mailing list link. I looked at them but they all seem to be 
oriented towards people developing OpenJDK rather than users. There isn't a 
"support" or "help" link on the OpenJDK site.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, October 14, 2019, 10:18:27 AM, you wrote:





On Mon, Oct 14, 2019 at 11:16 AM Peter Toye  wrote:

Dear Geertjan,

I agree that the "java" command has nothing to do with Netbeans. I'll try to be 
more explicit:

I have a project which dates back to about 2006 and has a main class which I'll 
call A. This uses a separate class B which I developed separately. I included B 
as a library using A's project properties.

Using Netbeans 8 (and earlier) it was possible to run the project using a 
command line like
  java -jar A.jar
and the program ran. The Java version was 1.8. The path to the Java executable 
is in my PATH.

Earlier this year I wanted to develop it further, and decided to move to the 
latest version of NetBeans (11.1) and Java (12). Now the command line as given 
in the build output is
  C:\Program Files\Java\jdk-12.0.1/bin/java -cp directory\A.jar;directory\B.jar 
classpath.A

My main point is that I don't understand how or why this has changed. 


https://openjdk.java.net/projects/jigsaw/

There is now a module system in Java, meaning that there is now a module path 
and a class path. That was not there in JDK 8 and is now there since then.

Can you join the Java mailing lists and discuss further there: 
https://mail.openjdk.java.net/mailman/listinfo

Gj

Re: Java project now needs classpaths to run it

2019-10-15 Thread Peter Toye
Dear Geertjan,

Thanks - I’ll try that. I don't think OpenJDK existed when I last looked at 
Java. Astonishing how you can get out-of-date so fast.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, October 14, 2019, 10:18:27 AM, you wrote:




On Mon, Oct 14, 2019 at 11:16 AM Peter Toye  wrote:

Dear Geertjan,

I agree that the "java" command has nothing to do with Netbeans. I'll try to be 
more explicit:

I have a project which dates back to about 2006 and has a main class which I'll 
call A. This uses a separate class B which I developed separately. I included B 
as a library using A's project properties.

Using Netbeans 8 (and earlier) it was possible to run the project using a 
command line like
  java -jar A.jar
and the program ran. The Java version was 1.8. The path to the Java executable 
is in my PATH.

Earlier this year I wanted to develop it further, and decided to move to the 
latest version of NetBeans (11.1) and Java (12). Now the command line as given 
in the build output is
  C:\Program Files\Java\jdk-12.0.1/bin/java -cp directory\A.jar;directory\B.jar 
classpath.A

My main point is that I don't understand how or why this has changed. 


https://openjdk.java.net/projects/jigsaw/

There is now a module system in Java, meaning that there is now a module path 
and a class path. That was not there in JDK 8 and is now there since then.

Can you join the Java mailing lists and discuss further there: 
https://mail.openjdk.java.net/mailman/listinfo

Gj

 

I agree that Oracle no longer have a JAVA_HOME environment variable to point to 
the java run-time executable and they don't put it in the PATH, which is a 
pain, but I can do that myself.

But as far as I can see, the "Libraries" sections of "project properties" are 
identical for the NB8 and NB11 projects, with a few directory changes. So why 
is the command line different? Is this a Java issue or has someting changed in 
the way that NB builds its jar files?

And also, the NB11.1 command line as given by Ant is incorrect - the Java 
program path needs quotes because of the space in the path. A minor bug, but 
annoying when you use cut-and-paste to put it into a batch file!


Does this clear things up?

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Sunday, October 13, 2019, 7:47:57 PM, you wrote:




You appear to be talking about the “java” command line below, which has nothing 
at all to do with NetBeans. You seen to be using different versions of Java.

Gj


On Fri, 20 Sep 2019 at 16:44, Peter Toye  wrote:

Having just moved from NB version 8 to 11.1 there seems to have been a change 
in the command line needed to run a project.

The OS is Windows 7 Home.

The project has two external libraries: one in the Java modules in the NetBeans 
11 directory, and one of my own. In version 8 it was possible to run the 
program with a command line like
 
   java -jar program.jar
   
but this no longer works, and I have to put in a command line like

  java -cp library paths program.jar
 
which is a pain, as I can't automate that into a batch file.

Is there any way of getting the libraries (or references to them) included in 
the jar file? The properties|Libraries|Run tab shows that the classpaths for 
Compiling Sources and Compiled Sources are included (at least as I understand 
the symbols on that page). Does the "Build Dependencies" tickbox have any 
significance here? The lack of a help file means that I can't find out what 
most of the window items actually mean.

As a rider to this question, there seems to be two small bugs in the Ant script 
which produces the command line for running the project :

To run this application from the command line without Ant, try:
??C:\Program Files\Java\jdk-12.0.1/bin/java -cp C:\Program Files\NetBeans 
11\netbeans\java\modules\ext\AbsoluteLayout.jar;D:\Peter\Netbeans\Partitions511\dist\Partitions511.jar;D:\Peter\Netbeans\KillerSudoku11\dist\KillerSudoku11.jar
 com.ptoye.TestKiller.TestKiller??

1) In Windows, the Java executable and Netbeans are in the "Program Files" or 
"Program Files (x86)" folder. This should have quotes round it to run 
successfully.

2) In NB 11.1, the output mentions "Netbeans 11" - Shouldn't this be C:\Program 
Files\NetBeans-11.1?
 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Re: Java project now needs classpaths to run it

2019-10-14 Thread Peter Toye
Dear Geertjan,

I agree that the "java" command has nothing to do with Netbeans. I'll try to be 
more explicit:

I have a project which dates back to about 2006 and has a main class which I'll 
call A. This uses a separate class B which I developed separately. I included B 
as a library using A's project properties. 

Using Netbeans 8 (and earlier) it was possible to run the project using a 
command line like
  java -jar A.jar
and the program ran. The Java version was 1.8. The path to the Java executable 
is in my PATH.

Earlier this year I wanted to develop it further, and decided to move to the 
latest version of NetBeans (11.1) and Java (12). Now the command line as given 
in the build output is
  C:\Program Files\Java\jdk-12.0.1/bin/java -cp directory\A.jar;directory\B.jar 
classpath.A

My main point is that I don't understand how or why this has changed. I agree 
that Oracle no longer have a JAVA_HOME environment variable to point to the 
java run-time executable and they don't put it in the PATH, which is a pain, 
but I can do that myself.

But as far as I can see, the "Libraries" sections of "project properties" are 
identical for the NB8 and NB11 projects, with a few directory changes. So why 
is the command line different? Is this a Java issue or has someting changed in 
the way that NB builds its jar files?

And also, the NB11.1 command line as given by Ant is incorrect - the Java 
program path needs quotes because of the space in the path. A minor bug, but 
annoying when you use cut-and-paste to put it into a batch file!


Does this clear things up?

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Sunday, October 13, 2019, 7:47:57 PM, you wrote:



You appear to be talking about the “java” command line below, which has nothing 
at all to do with NetBeans. You seen to be using different versions of Java.

Gj


On Fri, 20 Sep 2019 at 16:44, Peter Toye  wrote:

Having just moved from NB version 8 to 11.1 there seems to have been a change 
in the command line needed to run a project.

The OS is Windows 7 Home.

The project has two external libraries: one in the Java modules in the NetBeans 
11 directory, and one of my own. In version 8 it was possible to run the 
program with a command line like
 
   java -jar program.jar
   
but this no longer works, and I have to put in a command line like

  java -cp library paths program.jar
 
which is a pain, as I can't automate that into a batch file.

Is there any way of getting the libraries (or references to them) included in 
the jar file? The properties|Libraries|Run tab shows that the classpaths for 
Compiling Sources and Compiled Sources are included (at least as I understand 
the symbols on that page). Does the "Build Dependencies" tickbox have any 
significance here? The lack of a help file means that I can't find out what 
most of the window items actually mean.

As a rider to this question, there seems to be two small bugs in the Ant script 
which produces the command line for running the project :

To run this application from the command line without Ant, try:
??C:\Program Files\Java\jdk-12.0.1/bin/java -cp C:\Program Files\NetBeans 
11\netbeans\java\modules\ext\AbsoluteLayout.jar;D:\Peter\Netbeans\Partitions511\dist\Partitions511.jar;D:\Peter\Netbeans\KillerSudoku11\dist\KillerSudoku11.jar
 com.ptoye.TestKiller.TestKiller??

1) In Windows, the Java executable and Netbeans are in the "Program Files" or 
"Program Files (x86)" folder. This should have quotes round it to run 
successfully.

2) In NB 11.1, the output mentions "Netbeans 11" - Shouldn't this be C:\Program 
Files\NetBeans-11.1?
 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Re: Problems contacting website

2019-10-07 Thread Peter Toye
Dear Geertjan,

I see what you mean!

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, October 7, 2019, 12:06:23 PM, you wrote:


The mailing list is the forum.

Gj

On Mon, Oct 7, 2019 at 1:05 PM Peter Toye  wrote:

Dear Geertjan,

I don't think I'm on your forum. I didn't know there was one.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, October 7, 2019, 11:42:54 AM, you wrote:


Here is our website: netbeans.apache.org.

And you are currently on our forum, right now.

Gj


On Mon, Oct 7, 2019 at 12:41 PM Peter Toye  wrote:

I'm having problems contacting your website.

http://www.netbeans.org/community/index.html is timing out.

https://forums.netbeans.org/ is giving a security violation:

  An error occurred during a connection to forums.netbeans.org. 
PR_CONNECT_RESET_ERROR

The page you are trying to view cannot be shown because the authenticity of 
the received data could not be verified.
Please contact the website owners to inform them of this problem.
   
   
I hope you can get this fixed!

Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Re: Problems contacting website

2019-10-07 Thread Peter Toye
Dear Geertjan,

I don't think I'm on your forum. I didn't know there was one.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, October 7, 2019, 11:42:54 AM, you wrote:


Here is our website: netbeans.apache.org.

And you are currently on our forum, right now.

Gj


On Mon, Oct 7, 2019 at 12:41 PM Peter Toye  wrote:

I'm having problems contacting your website.

http://www.netbeans.org/community/index.html is timing out.

https://forums.netbeans.org/ is giving a security violation:

  An error occurred during a connection to forums.netbeans.org. 
PR_CONNECT_RESET_ERROR

The page you are trying to view cannot be shown because the authenticity of 
the received data could not be verified.
Please contact the website owners to inform them of this problem.
   
   
I hope you can get this fixed!

Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

PLease ignore previous mail

2019-10-07 Thread Peter Toye
Sorry - I just realised that my address book is out of date and has the old 
Oracle addresses.

 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Problems contacting website

2019-10-07 Thread Peter Toye
I'm having problems contacting your website.

http://www.netbeans.org/community/index.html is timing out.

https://forums.netbeans.org/ is giving a security violation:

  An error occurred during a connection to forums.netbeans.org. 
PR_CONNECT_RESET_ERROR

The page you are trying to view cannot be shown because the authenticity of 
the received data could not be verified.
Please contact the website owners to inform them of this problem.


I hope you can get this fixed!

Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Java project now needs classpaths to run it

2019-10-05 Thread Peter Toye
Having just moved from NB version 8 to 11.1 there seems to have been a change 
in the command line needed to run a project.

The OS is Windows 7 Home.

The project has two external libraries: one in the Java modules in the NetBeans 
11 directory, and one of my own. In version 8 it was possible to run the 
program with a command line like
 
   java -jar program.jar
   
but this no longer works, and I have to put in a command line like

  java -cp library paths program.jar
 
which is a pain, as I can't automate that into a batch file.

Is there any way of getting the libraries (or references to them) included in 
the jar file? The properties|Libraries|Run tab shows that the classpaths for 
Compiling Sources and Compiled Sources are included (at least as I understand 
the symbols on that page). Does the "Build Dependencies" tickbox have any 
significance here? The lack of a help file means that I can't find out what 
most of the window items actually mean.

As a rider to this question, there seems to be two small bugs in the Ant script 
which produces the command line for running the project :

To run this application from the command line without Ant, try:
??C:\Program Files\Java\jdk-12.0.1/bin/java -cp C:\Program Files\NetBeans 
11\netbeans\java\modules\ext\AbsoluteLayout.jar;D:\Peter\Netbeans\Partitions511\dist\Partitions511.jar;D:\Peter\Netbeans\KillerSudoku11\dist\KillerSudoku11.jar
 com.ptoye.TestKiller.TestKiller??

1) In Windows, the Java executable and Netbeans are in the "Program Files" or 
"Program Files (x86)" folder. This should have quotes round it to run 
successfully.

2) In NB 11.1, the output mentions "Netbeans 11" - Shouldn't this be C:\Program 
Files\NetBeans-11.1?
 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.comTitle: Java project now needs classpaths to run it


Having just moved from NB version 8 to 11.1 there seems to have been a change in the command line needed to run a project.

The OS is Windows 7 Home.

The project has two external libraries: one in the Java modules in the NetBeans 11 directory, and one of my own. In version 8 it was possible to run the program with a command line like
 
   java -jar program.jar
   
but this no longer works, and I have to put in a command line like

  java -cp library paths program.jar
 
which is a pain, as I can't automate that into a batch file.

Is there any way of getting the libraries (or references to them) included in the jar file? The properties|Libraries|Run tab shows that the classpaths for Compiling Sources and Compiled Sources are included (at least as I understand the symbols on that page). Does the "Build Dependencies" tickbox have any significance here? The lack of a help file means that I can't find out what most of the window items actually mean.

As a rider to this question, there seems to be two small bugs in the Ant script which produces the command line for running the project :

To run this application from the command line without Ant, try:
??C:\Program Files\Java\jdk-12.0.1/bin/java -cp C:\Program Files\NetBeans 11\netbeans\java\modules\ext\AbsoluteLayout.jar;D:\Peter\Netbeans\Partitions511\dist\Partitions511.jar;D:\Peter\Netbeans\KillerSudoku11\dist\KillerSudoku11.jar com.ptoye.TestKiller.TestKiller??

1) In Windows, the Java executable and Netbeans are in the "Program Files" or "Program Files (x86)" folder. This should have quotes round it to run successfully.

2) In NB 11.1, the output mentions "Netbeans 11" - Shouldn't this be C:\Program Files\NetBeans-11.1?
 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Java project now needs classpaths to run it

2019-09-20 Thread Peter Toye
Having just moved from NB version 8 to 11.1 there seems to have been a change 
in the command line needed to run a project.

The OS is Windows 7 Home.

The project has two external libraries: one in the Java modules in the NetBeans 
11 directory, and one of my own. In version 8 it was possible to run the 
program with a command line like
 
   java -jar program.jar
   
but this no longer works, and I have to put in a command line like

  java -cp library paths program.jar
  
which is a pain, as I can't automate that into a batch file.

Is there any way of getting the libraries (or references to them) included in 
the jar file? The properties|Libraries|Run tab shows that the classpaths for 
Compiling Sources and Compiled Sources are included (at least as I understand 
the symbols on that page). Does the "Build Dependencies" tickbox have any 
significance here? The lack of a help file means that I can't find out what 
most of the window items actually mean.

As a rider to this question, there seems to be two small bugs in the Ant script 
which produces the command line for running the project :

To run this application from the command line without Ant, try:

C:\Program Files\Java\jdk-12.0.1/bin/java -cp C:\Program Files\NetBeans 
11\netbeans\java\modules\ext\AbsoluteLayout.jar;D:\Peter\Netbeans\Partitions511\dist\Partitions511.jar;D:\Peter\Netbeans\KillerSudoku11\dist\KillerSudoku11.jar
 com.ptoye.TestKiller.TestKiller


1) In Windows, the Java executable and Netbeans are in the "Program Files" or 
"Program Files (x86)" folder. This should have quotes round it to run 
successfully.

2) In NB 11.1, the output mentions "Netbeans 11" - Shouldn't this be C:\Program 
Files\NetBeans-11.1?
 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Over-enthusiastic deprecation removal

2019-08-29 Thread Peter Toye
In a JLayeredPane inheriting from JComponent a call of add(component, new 
Integer(LEVEL)) is deprecated and changed to
add(component, LEVEL)

However, these have different meanings as JComponent has two overrides of the 
add method, one taking an integer as the second parameter and one taking an 
Object. The suggested change picks up the wrong one.

I suggest that Netbeans should check for possibly ambiguous overrides before 
deprecating such constructions.

 
Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Re: Javadoc popup works, but "Show Javadoc" does not.

2019-08-13 Thread Peter Toye
Dear Neil,

Sorry, no. Still "Cannot perform Javadoc here". But shift-F1 works OK (as it 
did before).

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Tuesday, August 13, 2019, 11:57:11 AM, you wrote:

> On Tue, 13 Aug 2019 at 11:38, Peter Toye
>  wrote:
>> I have a similar problem, but with the Oracle JDK. I specify the Javadoc 
>> index as
>>https://docs.oracle.com/en/java/javase/12/docs/api/

> Does making that
> https://docs.oracle.com/en/java/javase/12/docs/api/java.base/ (kind
> of) work for you?

> I guess the problem is that the Javadoc support isn't JPMS aware
> still?  Docs from sources works.

> Best wishes,

> Neil

Re: Javadoc popup works, but "Show Javadoc" does not.

2019-08-13 Thread Peter Toye
Dear Thomas,

I have a similar problem, but with the Oracle JDK. I specify the Javadoc index 
as 
https://docs.oracle.com/en/java/javase/12/docs/api/

Also using NB 11.1 on Windows. Maybe Alt-F1 is broken in 11.1??

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, July 29, 2019, 7:45:33 AM, you wrote:

> Using NetBeans 11.1 on Windows.

> I have a strange behaviour with displaying
> Javadoc help for methods from the JDK.

> The code completion (Ctrl-Space) displays the
> little Javadoc popup and so does the JavaDoc
> window (Window -> IDE Tools -> JavaDoc
> Documentation) when I open it.

> But Alt-F1 ("Show Javadoc") for that exact same
> method (where the Javadoc popup is displayed)
> only gives an "Cannot perform Show Javadoc here"
> message in the status line.

> Shift-F1 ("Search Javadoc") also finds the
> relevant entry, and doubleclicking on it opens
> the default browser with the JDK documentation.

> This is with a Maven project using OpenJDK 11
> with self generated JavaDocs.

> It seems that "Alt-F1" (or choosing "Show
> Javadoc" from the context menu in the editor)
> uses a different way to find the Javadoc than all the other methods.

> Is it possible that my self-generated Javadoc
> is missing something that "Show Javadoc" needs,
> but the other methods don't?

> This is how I generate the Javadoc index from the source of OpenJDK:

>   javadoc -quiet -d docs -Xdoclint:none
> --expand-requires all --module-source-path src --module java.se

> Do I need to specify a different "starting
> module"? Or is there a better way to generate
> the Javadoc for OpenJDK?

> The usual panacea "start with a clean userdir" did not change this.

> Thomas

> -
> To unsubscribe, e-mail:
> users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail:
> users-h...@netbeans.apache.org

> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: Files tab does not show all files

2019-08-08 Thread Peter Toye
Dear Geertjan,

This is embarrassing. I was intending to post a minimal program showing the 
unwanted character translation (see the thread 'Odd character translation'), 
but I can't get it to happen in a new project.

I can only assume that it was something to do with resurrecting a project which 
had an unusual character set (no idea why - it's ancient) from NB 8. As this 
doesn't happen all that often (if ever), I don't think there's any point in 
spending any more of our time on it.

As for the wisdom (or otherwise) of looking at a .form file, I think that's a 
matter of opinion. Personally I find it useful to know what a program is doing, 
and think that this self-censorship is a bad idea. You obviously differ. As one 
can always use whatever file explorer the OS provides, it's not really an issue.

Thanks for your help and advice.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Saturday, August 3, 2019, 4:12:53 PM, you wrote:


Form files are not shown anywhere, not in the Favorites window either. Even if 
you’re looking inside a Form file, you’re most likely doing something wrong. It 
is generated by the GUI Builder, should never be touched or changed, and even 
the idea of looking at Form file is a bad idea.

Gj


On Sat, 3 Aug 2019 at 16:30, Thomas Kellerer  wrote:

Peter Toye schrieb am 03.08.2019 um 14:19:
> When investigating an issue, I found that the Files tab doesn't show
> the .form files generated by the form editor. Is this on purpose, as
> it's a bit confusing?

What I do, when I want to see a complete, unfiltered view of the file system, I 
simply add that directory to the Favorites window.

Thomas

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: Files tab does not show all files

2019-08-03 Thread Peter Toye
Dear Geertjan,

Wait until you see my JIRA issue! It won't happen until late August as I'll be 
away and won't be able to contribute to any discussion.

Assuming that Thomas was referring to the Windows Explorer Favorites window, 
the .form files certainly appear there. Can't speak for other OSs.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Saturday, August 3, 2019, 4:12:53 PM, you wrote:


Form files are not shown anywhere, not in the Favorites window either. Even if 
you’re looking inside a Form file, you’re most likely doing something wrong. It 
is generated by the GUI Builder, should never be touched or changed, and even 
the idea of looking at Form file is a bad idea.

Gj


On Sat, 3 Aug 2019 at 16:30, Thomas Kellerer  wrote:

Peter Toye schrieb am 03.08.2019 um 14:19:
> When investigating an issue, I found that the Files tab doesn't show
> the .form files generated by the form editor. Is this on purpose, as
> it's a bit confusing?

What I do, when I want to see a complete, unfiltered view of the file system, I 
simply add that directory to the Favorites window.

Thomas

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: Files tab does not show all files

2019-08-03 Thread Peter Toye
Dear Thomas,

So do I, but I hadn't realised that the Files tab only showed a subset.

.form doesn't appear in the Tools | Options | Miscellaneous | Files ignored 
list, so it's presumably programmed in somewhere else. A bit odd.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Saturday, August 3, 2019, 3:29:36 PM, you wrote:

> Peter Toye schrieb am 03.08.2019 um 14:19:
>> When investigating an issue, I found that the Files tab doesn't show
>> the .form files generated by the form editor. Is this on purpose, as
>> it's a bit confusing?

> What I do, when I want to see a complete,
> unfiltered view of the file system, I simply add
> that directory to the Favorites window.

> Thomas

> -
> To unsubscribe, e-mail:
> users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail:
> users-h...@netbeans.apache.org

> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: Files tab does not show all files

2019-08-03 Thread Peter Toye
Dear Geertjan,

I didn't say I wanted to edit them - there's fairly obviously no point. But I 
wanted to look at them to help diagnose the problems I was having with 
character substitution, and didn't find them. Windows Explorer found them, so 
it wasn't a problem in the end.

If it's done on purpose, fair enough. From your reply I assume that's the case.

I'm trying to build a case for a JIRA issue on character translation - I'll 
post it after I'm back from holiday.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Saturday, August 3, 2019, 2:28:05 PM, you wrote:


You’re not supposed to be editing the form files at all. That’s why you can’t 
see them. If you ever find yourself editing form files, you’re definitely doing 
something wrong.

Gj


On Sat, 3 Aug 2019 at 14:19, Peter Toye  wrote:

When investigating an issue, I found that the Files tab doesn't show the .form 
files generated by the form editor. Is this on purpose, as it's a bit confusing?

It's possibly a hangover from the Oracle days, as it also happens in NB version 
8.

 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Files tab does not show all files

2019-08-03 Thread Peter Toye
When investigating an issue, I found that the Files tab doesn't show the .form 
files generated by the form editor. Is this on purpose, as it's a bit confusing?

It's possibly a hangover from the Oracle days, as it also happens in NB version 
8.

 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Re: Odd character translation

2019-07-20 Thread Peter Toye
Dear Jan,

I suspect you're right. It's a very old project (the manifest is dated 2007 and 
I suspect it's even older), and I really can't remember if UTF-8 was even 
available then, or when/if I changed the encoding.

Certainly, making a minor change and reverting it has the desired effect. 
Thanks for spotting that.

I'm not sure that your fix is 100% correct, though. The .form file (which I 
assume is generated by the form editor) has the correct encoding:



but the .java file doesn't:

btnRow.setText("?");

So it seems to me that the Form Editor is producing the correct XML, but 
whatever process that converts it to Java (or is this part of the Form Editor?) 
isn't picking this up.

The odd thing about this diagnosis is that the error occurred recently when I 
changed the button form having a GIF to a text character. And the Form Editor 
certainly picked up this change.

So in this file, your (a) shouldn't be happening as the encoding (UTF-8) is 
capable of representing the characters. (b) seems to be the problem.

Is it worth while my putting this into JIRA? It's probably a rare occurrence.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Saturday, July 20, 2019, 6:07:51 AM, you wrote:


Hi,

I suspect the cause for the initial problem is that at some point, the files 
was saved with an encoding that does not handle these characters. And form 
editor avoids regenerating the code unless there are changes, so the broken 
code remains until something changes. A potential workaround is to do a change 
to the model and then undo it (e.g. set "autoscrolls" on one of the buttons and 
then clear it), that should force regeneration of the code.

I think the fix is two-fold: a) NetBeans should complain while saving files 
which contain characters that cannot be represented in the current encoding; b) 
form editor should avoid putting such characters into the source code.

Jan


On Fri, Jul 19, 2019 at 8:09 PM Peter Toye  wrote:

Sorry - hit "reply" rather than "reply all"

Dear Geertjan,

True. Can you try it in the form editor and see what happens? There's not much 
point in having an IDE which forces you to use an external editor!

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, July 19, 2019, 4:47:07 PM, you wrote:


My comment does more than imply: it directly states these words -- "edited this 
file directly in GitHub"

Gj

On Fri, Jul 19, 2019 at 5:35 PM Peter Toye  wrote:

Dear Geertjan,

I see. But in the IDE, the initComponents() can't be edited - it's greyed out 
as I'd expect from auto-generated code, especially code prefixed by

  /**
  ??   * This method is called from within the constructor to initialize the 
form.
  ??   * WARNING: Do NOT modify this code. The content of this method is always
  ??   * regenerated by the Form Editor.
  ??   */

So how did you manage to edit it?

Your comment implies that you used a text editor directly in GitHub. If you use 
the Form Editor in NB you might get the result that I did.

I have to do other things now, so won't be back for a few hours.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, July 19, 2019, 4:11:52 PM, you wrote:


I cloned your repo and then edited this file directly in GitHub, replacing the 
question marks with your special characters, then created a pull request 
against my own repo and merged it:

https://github.com/geertjanw/TestCharacters4/blob/master/src/com/ptoye/TestKiller/OuterPane.java

Gj

On Fri, Jul 19, 2019 at 5:08 PM Peter Toye  wrote:

Dear Geertjan,

Thanks - it runs fine. So what exactly did you do as I can see no difference in 
either the ,form or .java files?

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, July 19, 2019, 3:57:45 PM, you wrote:


1. Open a terminal window.
2. Type: git clone https://github.com/geertjanw/TestCharacters4.git
3. Open and run the result from NetBeans.

It will work out of the box, at least it does for me. Will you try it and then, 
after that, write back?

Gj


On Fri, Jul 19, 2019 at 4:52 PM Peter Toye  wrote:

Dear Geertjan,

Thanks. But it seems to me that you edited the .java file. The issue is that 
the part that you edited is auto-generated by NB from the form designer, and is 
not under the programmer's control.

So when I recompile, the old bug will return.

I use "will" here as I'm still trying to work out how to merge your update into 
my local repository. GitHub doesn't have the most intuitive of user interfaces 
and I'm a complete newbie with it.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, July 19, 2019, 1:33:25 PM, you wrote:


https://github.com/geertjanw/TestCharacters4.git

Try check out the abo

Re: Odd character translation

2019-07-20 Thread Peter Toye
Dear Geertjan,

So you weren't able to confirm that the problem exists on your configuration, 
then?

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Saturday, July 20, 2019, 10:30:07 AM, you wrote:


No, I didn't do anything other than change the question marks directly in 
GitHub to the special characters.

Gj


On Sat, 20 Jul 2019 at 10:58, Peter Toye  wrote:

Dear Geertjan,

The problem was "solved" in that there is a workaround long before I posted it 
- I simply put setText calls into the constructor.

The reason I posted the problem here was to determine if it was actually a NB 
issue, or something to do with my configuration.  Jan Lahoda's comment implies 
the former, so I shall try to produce a smaller example before raising it as an 
issue.

I assume (I don't think you actually confirmed) that you tried deleting the 
"undo" button and saw the correct characters appear.


Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, July 19, 2019, 7:11:06 PM, you wrote:


Your problem is solved, I think you should move on to your next problem now.

If you want me to try something, please tell me exactly what it is that I must 
try.

Thanks,

Gj


Re: Odd character translation

2019-07-20 Thread Peter Toye
Dear Geertjan,

The problem was "solved" in that there is a workaround long before I posted it 
- I simply put setText calls into the constructor.

The reason I posted the problem here was to determine if it was actually a NB 
issue, or something to do with my configuration.  Jan Lahoda's comment implies 
the former, so I shall try to produce a smaller example before raising it as an 
issue.

I assume (I don't think you actually confirmed) that you tried deleting the 
"undo" button and saw the correct characters appear.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, July 19, 2019, 7:11:06 PM, you wrote:


Your problem is solved, I think you should move on to your next problem now.

If you want me to try something, please tell me exactly what it is that I must 
try.

Thanks,

Gj



Re: Odd character translation

2019-07-19 Thread Peter Toye
Sorry - hit "reply" rather than "reply all"

Dear Geertjan,

True. Can you try it in the form editor and see what happens? There's not much 
point in having an IDE which forces you to use an external editor!

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, July 19, 2019, 4:47:07 PM, you wrote:


My comment does more than imply: it directly states these words -- "edited this 
file directly in GitHub"

Gj

On Fri, Jul 19, 2019 at 5:35 PM Peter Toye  wrote:

Dear Geertjan,

I see. But in the IDE, the initComponents() can't be edited - it's greyed out 
as I'd expect from auto-generated code, especially code prefixed by

  /**
  ??   * This method is called from within the constructor to initialize the 
form.
  ??   * WARNING: Do NOT modify this code. The content of this method is always
  ??   * regenerated by the Form Editor.
  ??   */

So how did you manage to edit it?

Your comment implies that you used a text editor directly in GitHub. If you use 
the Form Editor in NB you might get the result that I did.

I have to do other things now, so won't be back for a few hours.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, July 19, 2019, 4:11:52 PM, you wrote:


I cloned your repo and then edited this file directly in GitHub, replacing the 
question marks with your special characters, then created a pull request 
against my own repo and merged it:

https://github.com/geertjanw/TestCharacters4/blob/master/src/com/ptoye/TestKiller/OuterPane.java

Gj

On Fri, Jul 19, 2019 at 5:08 PM Peter Toye  wrote:

Dear Geertjan,

Thanks - it runs fine. So what exactly did you do as I can see no difference in 
either the ,form or .java files?

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, July 19, 2019, 3:57:45 PM, you wrote:


1. Open a terminal window.
2. Type: git clone https://github.com/geertjanw/TestCharacters4.git
3. Open and run the result from NetBeans.

It will work out of the box, at least it does for me. Will you try it and then, 
after that, write back?

Gj


On Fri, Jul 19, 2019 at 4:52 PM Peter Toye  wrote:

Dear Geertjan,

Thanks. But it seems to me that you edited the .java file. The issue is that 
the part that you edited is auto-generated by NB from the form designer, and is 
not under the programmer's control.

So when I recompile, the old bug will return.

I use "will" here as I'm still trying to work out how to merge your update into 
my local repository. GitHub doesn't have the most intuitive of user interfaces 
and I'm a complete newbie with it.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, July 19, 2019, 1:33:25 PM, you wrote:


https://github.com/geertjanw/TestCharacters4.git

Try check out the above and run it -- you should see your special characters 
without needing to do anything.

Gj

On Fri, Jul 19, 2019 at 2:28 PM Geertjan Wielenga  wrote:

The problem appears to be that when you check in or check out from GitHub, 
those special characters become question marks -- probably not best to use 
those special characters to begin with.

To solve the 'swing-layout not found problem' in your project, right-click it, 
choose Properties, go to the Libraries tab, and remove the reference to 
swing-layout, which you don't need and are not using in your project.

Gj

On Fri, Jul 19, 2019 at 2:09 PM Geertjan Wielenga  wrote:

I've checked in the changes you need as a pull request, once you integrate the 
pull request, you will not have question marks. The question marks where in 
your repo, they will not be there anymore after you accept my pull request.

At this point, you've spent about two weeks working on this problem -- maybe 
you should make images of what you'd like to have on those buttons and then 
attach those images to the buttons instead of what you're currently doing. If 
plan A doesn't work, try plan B.

Gj

On Fri, Jul 19, 2019 at 2:07 PM Peter Toye  wrote:

Dear Geertjan,

Errr No!

I don’t want to delete the button - it's part of the UI.

What I don't understand is how deleting button X changes the text in buttons 
A,B and C (if you see what I mean). That's surely a bug in NB, somewhere when 
it translates the data in the .form file into the Java code for 
initComponents().

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, July 19, 2019, 12:42:14 PM, you wrote:


I just followed your steps now and am now at the end where you say:

"Go back to the OuterPane design and delete the leftmost button (undo). Compile 
and run again. The question marks have disappeared and the arrows/square are 
there!"


So, the problem is fixed, i.e., your code is working in the end in the way 
you'd like it to be.

An

Re: Odd character translation

2019-07-19 Thread Peter Toye
Dear Geertjan,

I see. But in the IDE, the initComponents() can't be edited - it's greyed out 
as I'd expect from auto-generated code, especially code prefixed by

  /**
  
   * This method is called from within the constructor to initialize the form.
  
   * WARNING: Do NOT modify this code. The content of this method is always
  
   * regenerated by the Form Editor.
  
   */

So how did you manage to edit it? 

Your comment implies that you used a text editor directly in GitHub. If you use 
the Form Editor in NB you might get the result that I did.

I have to do other things now, so won't be back for a few hours.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, July 19, 2019, 4:11:52 PM, you wrote:


I cloned your repo and then edited this file directly in GitHub, replacing the 
question marks with your special characters, then created a pull request 
against my own repo and merged it:

https://github.com/geertjanw/TestCharacters4/blob/master/src/com/ptoye/TestKiller/OuterPane.java

Gj

On Fri, Jul 19, 2019 at 5:08 PM Peter Toye  wrote:

Dear Geertjan,

Thanks - it runs fine. So what exactly did you do as I can see no difference in 
either the ,form or .java files?

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, July 19, 2019, 3:57:45 PM, you wrote:


1. Open a terminal window.
2. Type: git clone https://github.com/geertjanw/TestCharacters4.git
3. Open and run the result from NetBeans.

It will work out of the box, at least it does for me. Will you try it and then, 
after that, write back?

Gj


On Fri, Jul 19, 2019 at 4:52 PM Peter Toye  wrote:

Dear Geertjan,

Thanks. But it seems to me that you edited the .java file. The issue is that 
the part that you edited is auto-generated by NB from the form designer, and is 
not under the programmer's control.

So when I recompile, the old bug will return.

I use "will" here as I'm still trying to work out how to merge your update into 
my local repository. GitHub doesn't have the most intuitive of user interfaces 
and I'm a complete newbie with it.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, July 19, 2019, 1:33:25 PM, you wrote:


https://github.com/geertjanw/TestCharacters4.git

Try check out the above and run it -- you should see your special characters 
without needing to do anything.

Gj

On Fri, Jul 19, 2019 at 2:28 PM Geertjan Wielenga  wrote:

The problem appears to be that when you check in or check out from GitHub, 
those special characters become question marks -- probably not best to use 
those special characters to begin with.

To solve the 'swing-layout not found problem' in your project, right-click it, 
choose Properties, go to the Libraries tab, and remove the reference to 
swing-layout, which you don't need and are not using in your project.

Gj

On Fri, Jul 19, 2019 at 2:09 PM Geertjan Wielenga  wrote:

I've checked in the changes you need as a pull request, once you integrate the 
pull request, you will not have question marks. The question marks where in 
your repo, they will not be there anymore after you accept my pull request.

At this point, you've spent about two weeks working on this problem -- maybe 
you should make images of what you'd like to have on those buttons and then 
attach those images to the buttons instead of what you're currently doing. If 
plan A doesn't work, try plan B.

Gj

On Fri, Jul 19, 2019 at 2:07 PM Peter Toye  wrote:

Dear Geertjan,

Errr No!

I don’t want to delete the button - it's part of the UI.

What I don't understand is how deleting button X changes the text in buttons 
A,B and C (if you see what I mean). That's surely a bug in NB, somewhere when 
it translates the data in the .form file into the Java code for 
initComponents().

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, July 19, 2019, 12:42:14 PM, you wrote:


I just followed your steps now and am now at the end where you say:

"Go back to the OuterPane design and delete the leftmost button (undo). Compile 
and run again. The question marks have disappeared and the arrows/square are 
there!"


So, the problem is fixed, i.e., your code is working in the end in the way 
you'd like it to be.

And here is your pull request:

https://github.com/ptoye/TestCharacters4/pull/1

Gj


On Fri, Jul 19, 2019 at 1:28 PM Peter Toye  wrote:

Dear Geertjan,

You didn't answer my last emails, and I’ve been away for a few days.

Have a look at https://github.com/ptoye/TestCharacters4 - I hope you can access 
it but I'm not sure about the privacy settings on GitHub. There's a README file 
to tell you what to do.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Saturday, July 13, 2019, 4:28:57 P

Re: Odd character translation

2019-07-19 Thread Peter Toye
Dear Geertjan,

Thanks - it runs fine. So what exactly did you do as I can see no difference in 
either the ,form or .java files?

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, July 19, 2019, 3:57:45 PM, you wrote:


1. Open a terminal window.
2. Type: git clone https://github.com/geertjanw/TestCharacters4.git
3. Open and run the result from NetBeans.

It will work out of the box, at least it does for me. Will you try it and then, 
after that, write back?

Gj


On Fri, Jul 19, 2019 at 4:52 PM Peter Toye  wrote:

Dear Geertjan,

Thanks. But it seems to me that you edited the .java file. The issue is that 
the part that you edited is auto-generated by NB from the form designer, and is 
not under the programmer's control.

So when I recompile, the old bug will return.

I use "will" here as I'm still trying to work out how to merge your update into 
my local repository. GitHub doesn't have the most intuitive of user interfaces 
and I'm a complete newbie with it.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, July 19, 2019, 1:33:25 PM, you wrote:


https://github.com/geertjanw/TestCharacters4.git

Try check out the above and run it -- you should see your special characters 
without needing to do anything.

Gj

On Fri, Jul 19, 2019 at 2:28 PM Geertjan Wielenga  wrote:

The problem appears to be that when you check in or check out from GitHub, 
those special characters become question marks -- probably not best to use 
those special characters to begin with.

To solve the 'swing-layout not found problem' in your project, right-click it, 
choose Properties, go to the Libraries tab, and remove the reference to 
swing-layout, which you don't need and are not using in your project.

Gj

On Fri, Jul 19, 2019 at 2:09 PM Geertjan Wielenga  wrote:

I've checked in the changes you need as a pull request, once you integrate the 
pull request, you will not have question marks. The question marks where in 
your repo, they will not be there anymore after you accept my pull request.

At this point, you've spent about two weeks working on this problem -- maybe 
you should make images of what you'd like to have on those buttons and then 
attach those images to the buttons instead of what you're currently doing. If 
plan A doesn't work, try plan B.

Gj

On Fri, Jul 19, 2019 at 2:07 PM Peter Toye  wrote:

Dear Geertjan,

Errr No!

I don’t want to delete the button - it's part of the UI.

What I don't understand is how deleting button X changes the text in buttons 
A,B and C (if you see what I mean). That's surely a bug in NB, somewhere when 
it translates the data in the .form file into the Java code for 
initComponents().

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, July 19, 2019, 12:42:14 PM, you wrote:


I just followed your steps now and am now at the end where you say:

"Go back to the OuterPane design and delete the leftmost button (undo). Compile 
and run again. The question marks have disappeared and the arrows/square are 
there!"


So, the problem is fixed, i.e., your code is working in the end in the way 
you'd like it to be.

And here is your pull request:

https://github.com/ptoye/TestCharacters4/pull/1

Gj


On Fri, Jul 19, 2019 at 1:28 PM Peter Toye  wrote:

Dear Geertjan,

You didn't answer my last emails, and I’ve been away for a few days.

Have a look at https://github.com/ptoye/TestCharacters4 - I hope you can access 
it but I'm not sure about the privacy settings on GitHub. There's a README file 
to tell you what to do.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Saturday, July 13, 2019, 4:28:57 PM, you wrote:


Make as small a sample as possible that reproduces the problem and put it on 
GitHub — that will always be the approach to take, no one will ever want ‘the 
lot’ to solve a specific problem.

Gj


On Sat, 13 Jul 2019 at 17:19, Peter Toye  wrote:

Dear Geertjan,

Oh dear, I was wrong. The problem came back today, even without the offending 
file in the directory.Shall I try to cut down the program to a manageable size 
before posting it, or would you like the lot?

Best regards,


Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, July 12, 2019, 4:25:35 PM, you wrote:


You’re always going to have the same response — put the code somewhere so that 
someone can look at it and/or provide clear step by step instructions to 
reproduce the problem.

Gj


On Fri, 12 Jul 2019 at 17:15, Peter Toye  wrote:

To continue with this (as I've not had any feedback) the .form file seems to 
contain the correct character:



  

  


THIS IS CORRECT!


  

Re: Odd character translation

2019-07-19 Thread Peter Toye
Dear Geertjan,

Thanks. But it seems to me that you edited the .java file. The issue is that 
the part that you edited is auto-generated by NB from the form designer, and is 
not under the programmer's control.

So when I recompile, the old bug will return.

I use "will" here as I'm still trying to work out how to merge your update into 
my local repository. GitHub doesn't have the most intuitive of user interfaces 
and I'm a complete newbie with it.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, July 19, 2019, 1:33:25 PM, you wrote:


https://github.com/geertjanw/TestCharacters4.git

Try check out the above and run it -- you should see your special characters 
without needing to do anything.

Gj

On Fri, Jul 19, 2019 at 2:28 PM Geertjan Wielenga  wrote:

The problem appears to be that when you check in or check out from GitHub, 
those special characters become question marks -- probably not best to use 
those special characters to begin with.

To solve the 'swing-layout not found problem' in your project, right-click it, 
choose Properties, go to the Libraries tab, and remove the reference to 
swing-layout, which you don't need and are not using in your project.

Gj

On Fri, Jul 19, 2019 at 2:09 PM Geertjan Wielenga  wrote:

I've checked in the changes you need as a pull request, once you integrate the 
pull request, you will not have question marks. The question marks where in 
your repo, they will not be there anymore after you accept my pull request.

At this point, you've spent about two weeks working on this problem -- maybe 
you should make images of what you'd like to have on those buttons and then 
attach those images to the buttons instead of what you're currently doing. If 
plan A doesn't work, try plan B.

Gj

On Fri, Jul 19, 2019 at 2:07 PM Peter Toye  wrote:

Dear Geertjan,

Errr No!

I don’t want to delete the button - it's part of the UI.

What I don't understand is how deleting button X changes the text in buttons 
A,B and C (if you see what I mean). That's surely a bug in NB, somewhere when 
it translates the data in the .form file into the Java code for 
initComponents().

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, July 19, 2019, 12:42:14 PM, you wrote:


I just followed your steps now and am now at the end where you say:

"Go back to the OuterPane design and delete the leftmost button (undo). Compile 
and run again. The question marks have disappeared and the arrows/square are 
there!"


So, the problem is fixed, i.e., your code is working in the end in the way 
you'd like it to be.

And here is your pull request:

https://github.com/ptoye/TestCharacters4/pull/1

Gj


On Fri, Jul 19, 2019 at 1:28 PM Peter Toye  wrote:

Dear Geertjan,

You didn't answer my last emails, and I’ve been away for a few days.

Have a look at https://github.com/ptoye/TestCharacters4 - I hope you can access 
it but I'm not sure about the privacy settings on GitHub. There's a README file 
to tell you what to do.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Saturday, July 13, 2019, 4:28:57 PM, you wrote:


Make as small a sample as possible that reproduces the problem and put it on 
GitHub — that will always be the approach to take, no one will ever want ‘the 
lot’ to solve a specific problem.

Gj


On Sat, 13 Jul 2019 at 17:19, Peter Toye  wrote:

Dear Geertjan,

Oh dear, I was wrong. The problem came back today, even without the offending 
file in the directory.Shall I try to cut down the program to a manageable size 
before posting it, or would you like the lot?

Best regards,


Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, July 12, 2019, 4:25:35 PM, you wrote:


You’re always going to have the same response — put the code somewhere so that 
someone can look at it and/or provide clear step by step instructions to 
reproduce the problem.

Gj


On Fri, 12 Jul 2019 at 17:15, Peter Toye  wrote:

To continue with this (as I've not had any feedback) the .form file seems to 
contain the correct character:



  

  


THIS IS CORRECT!


  

  

So there's something wrong in the translation from this and the generated Java.

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-

Tuesday, July 9, 2019, 12:53:19 PM, you wrote:


I modified a button to display a character rather than a GIF icon. The 
character is a symbol - from the Unicode arrows set \x219x. It displays OK in 
the Design (and also Preview) panes (see Fonts1.png) but when the program is 
run it displays as a question mark. And if I look at the generated code, the 
question mark is ther

Re: Odd character translation

2019-07-19 Thread Peter Toye
Dear Geertjan,

Errr No!

I don’t want to delete the button - it's part of the UI. 

What I don't understand is how deleting button X changes the text in buttons 
A,B and C (if you see what I mean). That's surely a bug in NB, somewhere when 
it translates the data in the .form file into the Java code for 
initComponents().

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, July 19, 2019, 12:42:14 PM, you wrote:


I just followed your steps now and am now at the end where you say:

"Go back to the OuterPane design and delete the leftmost button (undo). Compile 
and run again. The question marks have disappeared and the arrows/square are 
there!"


So, the problem is fixed, i.e., your code is working in the end in the way 
you'd like it to be.

And here is your pull request:

https://github.com/ptoye/TestCharacters4/pull/1

Gj


On Fri, Jul 19, 2019 at 1:28 PM Peter Toye  wrote:

Dear Geertjan,

You didn't answer my last emails, and I’ve been away for a few days.

Have a look at https://github.com/ptoye/TestCharacters4 - I hope you can access 
it but I'm not sure about the privacy settings on GitHub. There's a README file 
to tell you what to do.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Saturday, July 13, 2019, 4:28:57 PM, you wrote:


Make as small a sample as possible that reproduces the problem and put it on 
GitHub — that will always be the approach to take, no one will ever want ‘the 
lot’ to solve a specific problem.

Gj


On Sat, 13 Jul 2019 at 17:19, Peter Toye  wrote:

Dear Geertjan,

Oh dear, I was wrong. The problem came back today, even without the offending 
file in the directory.Shall I try to cut down the program to a manageable size 
before posting it, or would you like the lot?

Best regards,


Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, July 12, 2019, 4:25:35 PM, you wrote:


You’re always going to have the same response — put the code somewhere so that 
someone can look at it and/or provide clear step by step instructions to 
reproduce the problem.

Gj


On Fri, 12 Jul 2019 at 17:15, Peter Toye  wrote:

To continue with this (as I've not had any feedback) the .form file seems to 
contain the correct character:



  

  


THIS IS CORRECT!


  

  

So there's something wrong in the translation from this and the generated Java.

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-

Tuesday, July 9, 2019, 12:53:19 PM, you wrote:


I modified a button to display a character rather than a GIF icon. The 
character is a symbol - from the Unicode arrows set \x219x. It displays OK in 
the Design (and also Preview) panes (see Fonts1.png) but when the program is 
run it displays as a question mark. And if I look at the generated code, the 
question mark is there as well (see Fonts2.png).

The character coding for the project is set to UTF-8, so there shouldn't be any 
code conversion issues there.

I've looked at the generated code with a hex editor and it's definitely a "?", 
the problem isn't just the display font used for the file.

The only slightly odd thing about the project is that it was imported from NB 
version 8.

I've tried generating a such simpler example from scratch, but this displays 
OK. And the generated code has the correct UTF-8 encoding for the character.

Has anyone any idea what's going on? It seems to be something to do with 
converting the form design to Java code, which I don't know anything about.

 
Thanks in advance,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Re: Odd character translation

2019-07-19 Thread Peter Toye
Dear Geertjan,

You didn't answer my last emails, and I’ve been away for a few days.

Have a look at https://github.com/ptoye/TestCharacters4 - I hope you can access 
it but I'm not sure about the privacy settings on GitHub. There's a README file 
to tell you what to do.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Saturday, July 13, 2019, 4:28:57 PM, you wrote:


Make as small a sample as possible that reproduces the problem and put it on 
GitHub — that will always be the approach to take, no one will ever want ‘the 
lot’ to solve a specific problem.

Gj


On Sat, 13 Jul 2019 at 17:19, Peter Toye  wrote:

Dear Geertjan,

Oh dear, I was wrong. The problem came back today, even without the offending 
file in the directory.Shall I try to cut down the program to a manageable size 
before posting it, or would you like the lot?

Best regards,


Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, July 12, 2019, 4:25:35 PM, you wrote:


You’re always going to have the same response — put the code somewhere so that 
someone can look at it and/or provide clear step by step instructions to 
reproduce the problem.

Gj


On Fri, 12 Jul 2019 at 17:15, Peter Toye  wrote:

To continue with this (as I've not had any feedback) the .form file seems to 
contain the correct character:



  

  


THIS IS CORRECT!


  

  

So there's something wrong in the translation from this and the generated Java.

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-

Tuesday, July 9, 2019, 12:53:19 PM, you wrote:


I modified a button to display a character rather than a GIF icon. The 
character is a symbol - from the Unicode arrows set \x219x. It displays OK in 
the Design (and also Preview) panes (see Fonts1.png) but when the program is 
run it displays as a question mark. And if I look at the generated code, the 
question mark is there as well (see Fonts2.png).

The character coding for the project is set to UTF-8, so there shouldn't be any 
code conversion issues there.

I've looked at the generated code with a hex editor and it's definitely a "?", 
the problem isn't just the display font used for the file.

The only slightly odd thing about the project is that it was imported from NB 
version 8.

I've tried generating a such simpler example from scratch, but this displays 
OK. And the generated code has the correct UTF-8 encoding for the character.

Has anyone any idea what's going on? It seems to be something to do with 
converting the form design to Java code, which I don't know anything about.

 
Thanks in advance,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Re: Odd character translation

2019-07-14 Thread Peter Toye
Dear Geertjan,

I've managed to reduce the project to a reasonable level. But I've not used 
Github before as a repository, only to comment on Microsoft's documentation, 
and I'm having a lot of trouble in getting my file onto it.

I created a repository (private - is that correct?) but when I tell it to 
upload the .zip file (with my code and a README) it says "Something went really 
wrong, and we can’t process that file" which isn't much help.

And when I try a push from my local Git to "github.com/ptoye/Netbeans" it says 
Pushing to github.com/ptoye/Netbeans
fatal: 'github.com/ptoye/Netbeans' does not appear to be a git 
repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

This could be an access control failure as I can't find anything in the git 
push command to identify myself to the remote.

Also, I think I'll need to know your Github user ID to allow you access.

Sorry to be a pain, but GitHub's UI doesn't help much - the tutorial material 
doesn't seem to have anything about actually getting files onto it.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Saturday, July 13, 2019, 4:28:57 PM, you wrote:


Make as small a sample as possible that reproduces the problem and put it on 
GitHub — that will always be the approach to take, no one will ever want ‘the 
lot’ to solve a specific problem.

Gj



Dear Geertjan,

Oh dear, I was wrong. The problem came back today, even without the offending 
file in the directory.Shall I try to cut down the program to a manageable size 
before posting it, or would you like the lot?

Best regards,


Peter
mailto:netbe...@ptoye.com
www.ptoye.com


Re: Odd character translation

2019-07-13 Thread Peter Toye
Dear Geertjan,

I tried and cut out most of the objects in the frame, and it worked OK! So this 
may take some time Especially as it's nothing to do with my real work.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Saturday, July 13, 2019, 4:28:57 PM, you wrote:


Make as small a sample as possible that reproduces the problem and put it on 
GitHub — that will always be the approach to take, no one will ever want ‘the 
lot’ to solve a specific problem.

Gj


On Sat, 13 Jul 2019 at 17:19, Peter Toye  wrote:

Dear Geertjan,

Oh dear, I was wrong. The problem came back today, even without the offending 
file in the directory.Shall I try to cut down the program to a manageable size 
before posting it, or would you like the lot?

Best regards,


Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, July 12, 2019, 4:25:35 PM, you wrote:


You’re always going to have the same response — put the code somewhere so that 
someone can look at it and/or provide clear step by step instructions to 
reproduce the problem.

Gj


On Fri, 12 Jul 2019 at 17:15, Peter Toye  wrote:

To continue with this (as I've not had any feedback) the .form file seems to 
contain the correct character:



  

  


THIS IS CORRECT!


  

  

So there's something wrong in the translation from this and the generated Java.

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-

Tuesday, July 9, 2019, 12:53:19 PM, you wrote:


I modified a button to display a character rather than a GIF icon. The 
character is a symbol - from the Unicode arrows set \x219x. It displays OK in 
the Design (and also Preview) panes (see Fonts1.png) but when the program is 
run it displays as a question mark. And if I look at the generated code, the 
question mark is there as well (see Fonts2.png).

The character coding for the project is set to UTF-8, so there shouldn't be any 
code conversion issues there.

I've looked at the generated code with a hex editor and it's definitely a "?", 
the problem isn't just the display font used for the file.

The only slightly odd thing about the project is that it was imported from NB 
version 8.

I've tried generating a such simpler example from scratch, but this displays 
OK. And the generated code has the correct UTF-8 encoding for the character.

Has anyone any idea what's going on? It seems to be something to do with 
converting the form design to Java code, which I don't know anything about.

 
Thanks in advance,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Re: Odd character translation

2019-07-13 Thread Peter Toye
Dear Geertjan,

Oh dear, I was wrong. The problem came back today, even without the offending 
file in the directory.Shall I try to cut down the program to a manageable size 
before posting it, or would you like the lot?

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, July 12, 2019, 4:25:35 PM, you wrote:


You’re always going to have the same response — put the code somewhere so that 
someone can look at it and/or provide clear step by step instructions to 
reproduce the problem.

Gj


On Fri, 12 Jul 2019 at 17:15, Peter Toye  wrote:

To continue with this (as I've not had any feedback) the .form file seems to 
contain the correct character:



  

  


THIS IS CORRECT!


  

  

So there's something wrong in the translation from this and the generated Java.

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-

Tuesday, July 9, 2019, 12:53:19 PM, you wrote:


I modified a button to display a character rather than a GIF icon. The 
character is a symbol - from the Unicode arrows set \x219x. It displays OK in 
the Design (and also Preview) panes (see Fonts1.png) but when the program is 
run it displays as a question mark. And if I look at the generated code, the 
question mark is there as well (see Fonts2.png).

The character coding for the project is set to UTF-8, so there shouldn't be any 
code conversion issues there.

I've looked at the generated code with a hex editor and it's definitely a "?", 
the problem isn't just the display font used for the file.

The only slightly odd thing about the project is that it was imported from NB 
version 8.

I've tried generating a such simpler example from scratch, but this displays 
OK. And the generated code has the correct UTF-8 encoding for the character.

Has anyone any idea what's going on? It seems to be something to do with 
converting the form design to Java code, which I don't know anything about.

 
Thanks in advance,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Re: Odd character translation

2019-07-12 Thread Peter Toye
Dear Geertjan,

If only I could have! It's several thousand lines long and, as I said, trying 
to regenerate the problem with a simple example didn't work.

However, I've found the solution (I think). You mentioned the 
OuterPane.form1.txt file which might be confusing NB. I renamed it (I don't 
delete files incase they're needed again) but the problem stayed. Then I moved 
it to another directory and the problem went away. I hadn't realised that NB 
was so sensitive to files that shouldn't be there, even with an extension of 
.old

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, July 12, 2019, 4:25:35 PM, you wrote:


You’re always going to have the same response — put the code somewhere so that 
someone can look at it and/or provide clear step by step instructions to 
reproduce the problem.

Gj


On Fri, 12 Jul 2019 at 17:15, Peter Toye  wrote:

To continue with this (as I've not had any feedback) the .form file seems to 
contain the correct character:



  

  


THIS IS CORRECT!


  

  

So there's something wrong in the translation from this and the generated Java.

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-

Tuesday, July 9, 2019, 12:53:19 PM, you wrote:


I modified a button to display a character rather than a GIF icon. The 
character is a symbol - from the Unicode arrows set \x219x. It displays OK in 
the Design (and also Preview) panes (see Fonts1.png) but when the program is 
run it displays as a question mark. And if I look at the generated code, the 
question mark is there as well (see Fonts2.png).

The character coding for the project is set to UTF-8, so there shouldn't be any 
code conversion issues there.

I've looked at the generated code with a hex editor and it's definitely a "?", 
the problem isn't just the display font used for the file.

The only slightly odd thing about the project is that it was imported from NB 
version 8.

I've tried generating a such simpler example from scratch, but this displays 
OK. And the generated code has the correct UTF-8 encoding for the character.

Has anyone any idea what's going on? It seems to be something to do with 
converting the form design to Java code, which I don't know anything about.

 
Thanks in advance,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Re: Odd character translation

2019-07-12 Thread Peter Toye
To continue with this (as I've not had any feedback) the .form file seems to 
contain the correct character:



  

  


THIS IS CORRECT!


  

  

So there's something wrong in the translation from this and the generated Java.

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Tuesday, July 9, 2019, 12:53:19 PM, you wrote:


I modified a button to display a character rather than a GIF icon. The 
character is a symbol - from the Unicode arrows set \x219x. It displays OK in 
the Design (and also Preview) panes (see Fonts1.png) but when the program is 
run it displays as a question mark. And if I look at the generated code, the 
question mark is there as well (see Fonts2.png).

The character coding for the project is set to UTF-8, so there shouldn't be any 
code conversion issues there.

I've looked at the generated code with a hex editor and it's definitely a "?", 
the problem isn't just the display font used for the file.

The only slightly odd thing about the project is that it was imported from NB 
version 8.

I've tried generating a such simpler example from scratch, but this displays 
OK. And the generated code has the correct UTF-8 encoding for the character.

Has anyone any idea what's going on? It seems to be something to do with 
converting the form design to Java code, which I don't know anything about.

 
Thanks in advance,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Odd character translation

2019-07-09 Thread Peter Toye
I modified a button to display a character rather than a GIF icon. The 
character is a symbol - from the Unicode arrows set \x219x. It displays OK in 
the Design (and also Preview) panes (see Fonts1.png) but when the program is 
run it displays as a question mark. And if I look at the generated code, the 
question mark is there as well (see Fonts2.png). 

The character coding for the project is set to UTF-8, so there shouldn't be any 
code conversion issues there.

I've looked at the generated code with a hex editor and it's definitely a "?", 
the problem isn't just the display font used for the file.

The only slightly odd thing about the project is that it was imported from NB 
version 8.

I've tried generating a such simpler example from scratch, but this displays 
OK. And the generated code has the correct UTF-8 encoding for the character.

Has anyone any idea what's going on? It seems to be something to do with 
converting the form design to Java code, which I don't know anything about.

 
Thanks in advance,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com
-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Re: ...and now I can't build

2019-07-05 Thread Peter Toye
Dear Geertjan and Laszlo,

Oh dear - of course it's my Partitions5 class that's messing things up. Update 
its properties and it all compiles and runs fine.

I owe you a LOT of thanks for your patience - If you're ever in Salisbury, UK, 
I'll buy you a beer (or whatever you drink as long as it's not vintage 
champagne).

I'm obviously getting too old to be using Java.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Thursday, July 4, 2019, 4:17:56 PM, you wrote:


Well it might even be a javac issue in JDK 12.
I just run into something like this a few days ago building a NetBeans module. 
Though I did not find the issue and had no time to deep dive into the details. 
Switching the Project to use OpenJDK 8 has solved this issue.
So I'd recommend to install Java 8 inside of the ide as Tools > Java Platforms, 
then change to that platform in the project settings.
In order to solve the original issue we would need real logs. Just execute the 
ant build in debug mode, then send the debug output. I'm sorry, but screenshot 
won't help in this case.

On 7/4/19 3:11 AM, Peter Toye wrote:

Re: ...and now I can't build
Dear Laszlo,

Yes - that was my point. I had opened the project (well, a copy of it so as not 
to disturb the original which works in NB version 8) in NB 11 and gone through 
the error resolution. Changing the source/target to JDK8 doesn't change 
anything - see attached screenshot.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, July 1, 2019, 4:07:34 PM, you wrote:


You might be compiling your old stuff with modern Java.
Either go back to Java 8 or add javac.source=1.8 and javac.target=1.8 in your 
project properties.
On 7/1/19 1:57 AM, Peter Toye wrote:

...and now I can't build
I made a copy of a project in NB 8 and opened it in NB 11. Got some errors 
which were resolved OK.

But it won't build - I get a warning and 2 errors:

warning: [options] bootstrap class path not set in conjunction with -source 6
??error: Source option 6 is no longer supported. Use 7 or later.
??error: Target option 6 is no longer supported. Use 7 or later.??BUILD FAILED 
(total time: 0 seconds)

I can't see any way of changing this as there aren't any project options to 
change the source or target, even if I knew what they were referring to.

Stackoverflow gives remedies for this, but only for Maven. This project was 
built using Ant in NB 8 which I assume is carried over to NB 11.

The only likely reference that I can see is in build-impl.xml which is firmly 
marked "DO NOT EDIT"! But the comment implies that the properties aren't being 
overridden correctly.

   
??
??
??
??
??
????

Any ideas where to go from here please?
 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com 

Re: ...and now I can't build

2019-07-04 Thread Peter Toye
Dear Geertjan,

That's right. The main app is KillerSudoku. There's a separate class (which is 
used by another project as well) called Partitions5. That hasn't changed for 
years. You're probably right. It'll take me a bit of time to sort that out as I 
have to go offline now for a few hours - maybe even tomorrow. I'll report back.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Thursday, July 4, 2019, 12:39:57 PM, you wrote:


Also, there appear to be two separate applications here, one named 
'KillerSudoku11' and the other one named 'Partitions5'.

Not sure what this means, but something seems strange, aside from there being 
two Java source files in total.

Maybe you need to check javac.source and javac.target in the project.properties 
of both of your projects.

Gj

On Thu, Jul 4, 2019 at 1:25 PM Geertjan Wielenga  wrote:

Your application consists of two Java source files?

Gj

On Thu, Jul 4, 2019 at 12:52 PM Peter Toye  wrote:

Dear Geertjan,

Here's the output from a clean build.

ant -f D:\\Peter\\Netbeans\\KillerSudoku11 -Dnb.internal.action.name=rebuild 
clean jar
init:
deps-clean:
Updating property file: 
D:\Peter\Netbeans\KillerSudoku11\build\built-clean.properties
Partitions5.init:
Partitions5.deps-clean:
Updating property file: 
D:\Peter\Netbeans\KillerSudoku11\build\built-clean.properties
Deleting directory D:\Peter\Netbeans\Partitions5\build
Partitions5.clean:
Deleting directory D:\Peter\Netbeans\KillerSudoku11\build
clean:
init:
deps-jar:
Created dir: D:\Peter\Netbeans\KillerSudoku11\build
Updating property file: 
D:\Peter\Netbeans\KillerSudoku11\build\built-jar.properties
Partitions5.init:
Partitions5.deps-jar:
Created dir: D:\Peter\Netbeans\Partitions5\build
Updating property file: 
D:\Peter\Netbeans\KillerSudoku11\build\built-jar.properties
Created dir: D:\Peter\Netbeans\Partitions5\build\classes
Created dir: D:\Peter\Netbeans\Partitions5\build\empty
Created dir: 
D:\Peter\Netbeans\Partitions5\build\generated-sources\ap-source-output
Compiling 2 source files to D:\Peter\Netbeans\Partitions5\build\classes
warning: [options] bootstrap class path not set in conjunction with -source 6
error: Source option 6 is no longer supported. Use 7 or later.
error: Target option 6 is no longer supported. Use 7 or later.
BUILD FAILED (total time: 0 seconds)


Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Thursday, July 4, 2019, 11:39:12 AM, you wrote:


Can you do this: copy and paste the build error message into the response to 
this e-mail and then press Send?

Gj

On Thu, 4 Jul 2019 at 12:32, Peter Toye  wrote:

Dear Geertjan,

Both javac.source and javac.target are set to 12. If I change the source/target 
to 8 they change accordingly. See the attached if you don't believe me!

Whichever I choose the build fails.


Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Thursday, July 4, 2019, 11:16:43 AM, you wrote:


Can you open the Files window and look in the nbproject folder, where you’ll 
find the project.properties file?

There you will find javac.source and javac.target, which you can set directly 
within that file.

Gj




On Thu, 4 Jul 2019 at 12:11, Peter Toye  wrote:

Dear Laszlo,

Yes - that was my point. I had opened the project (well, a copy of it so as not 
to disturb the original which works in NB version 8) in NB 11 and gone through 
the error resolution. Changing the source/target to JDK8 doesn't change 
anything - see attached screenshot.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, July 1, 2019, 4:07:34 PM, you wrote:


You might be compiling your old stuff with modern Java.
Either go back to Java 8 or add javac.source=1.8 and javac.target=1.8 in your 
project properties.
On 7/1/19 1:57 AM, Peter Toye wrote:

...and now I can't build
I made a copy of a project in NB 8 and opened it in NB 11. Got some errors 
which were resolved OK.

But it won't build - I get a warning and 2 errors:

warning: [options] bootstrap class path not set in conjunction with -source 6
??error: Source option 6 is no longer supported. Use 7 or later.
??error: Target option 6 is no longer supported. Use 7 or later.??BUILD FAILED 
(total time: 0 seconds)

I can't see any way of changing this as there aren't any project options to 
change the source or target, even if I knew what they were referring to.

Stackoverflow gives remedies for this, but only for Maven. This project was 
built using Ant in NB 8 which I assume is carried over to NB 11.

The only likely reference that I can see is in build-impl.xml which is firmly 
marked "DO NOT EDIT"! But the comment implies that the properties aren't being 
overridden correctly.

   
??
??
??
??
??
???

Re: ...and now I can't build

2019-07-04 Thread Peter Toye
Dear Geertjan,

Here's the output from a clean build.

ant -f D:\\Peter\\Netbeans\\KillerSudoku11 -Dnb.internal.action.name=rebuild 
clean jar
init:
deps-clean:
Updating property file: 
D:\Peter\Netbeans\KillerSudoku11\build\built-clean.properties
Partitions5.init:
Partitions5.deps-clean:
Updating property file: 
D:\Peter\Netbeans\KillerSudoku11\build\built-clean.properties
Deleting directory D:\Peter\Netbeans\Partitions5\build
Partitions5.clean:
Deleting directory D:\Peter\Netbeans\KillerSudoku11\build
clean:
init:
deps-jar:
Created dir: D:\Peter\Netbeans\KillerSudoku11\build
Updating property file: 
D:\Peter\Netbeans\KillerSudoku11\build\built-jar.properties
Partitions5.init:
Partitions5.deps-jar:
Created dir: D:\Peter\Netbeans\Partitions5\build
Updating property file: 
D:\Peter\Netbeans\KillerSudoku11\build\built-jar.properties
Created dir: D:\Peter\Netbeans\Partitions5\build\classes
Created dir: D:\Peter\Netbeans\Partitions5\build\empty
Created dir: 
D:\Peter\Netbeans\Partitions5\build\generated-sources\ap-source-output
Compiling 2 source files to D:\Peter\Netbeans\Partitions5\build\classes
warning: [options] bootstrap class path not set in conjunction with -source 6
error: Source option 6 is no longer supported. Use 7 or later.
error: Target option 6 is no longer supported. Use 7 or later.
BUILD FAILED (total time: 0 seconds)


Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Thursday, July 4, 2019, 11:39:12 AM, you wrote:


Can you do this: copy and paste the build error message into the response to 
this e-mail and then press Send? 

Gj

On Thu, 4 Jul 2019 at 12:32, Peter Toye  wrote:

Dear Geertjan,

Both javac.source and javac.target are set to 12. If I change the source/target 
to 8 they change accordingly. See the attached if you don't believe me!

Whichever I choose the build fails.


Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Thursday, July 4, 2019, 11:16:43 AM, you wrote:


Can you open the Files window and look in the nbproject folder, where you’ll 
find the project.properties file?

There you will find javac.source and javac.target, which you can set directly 
within that file.

Gj




On Thu, 4 Jul 2019 at 12:11, Peter Toye  wrote:

Dear Laszlo,

Yes - that was my point. I had opened the project (well, a copy of it so as not 
to disturb the original which works in NB version 8) in NB 11 and gone through 
the error resolution. Changing the source/target to JDK8 doesn't change 
anything - see attached screenshot.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, July 1, 2019, 4:07:34 PM, you wrote:


You might be compiling your old stuff with modern Java.
Either go back to Java 8 or add javac.source=1.8 and javac.target=1.8 in your 
project properties.
On 7/1/19 1:57 AM, Peter Toye wrote:

...and now I can't build
I made a copy of a project in NB 8 and opened it in NB 11. Got some errors 
which were resolved OK.

But it won't build - I get a warning and 2 errors:

warning: [options] bootstrap class path not set in conjunction with -source 6
??error: Source option 6 is no longer supported. Use 7 or later.
??error: Target option 6 is no longer supported. Use 7 or later.??BUILD FAILED 
(total time: 0 seconds)

I can't see any way of changing this as there aren't any project options to 
change the source or target, even if I knew what they were referring to.

Stackoverflow gives remedies for this, but only for Maven. This project was 
built using Ant in NB 8 which I assume is carried over to NB 11.

The only likely reference that I can see is in build-impl.xml which is firmly 
marked "DO NOT EDIT"! But the comment implies that the properties aren't being 
overridden correctly.

   
??
??
??
??
??
????

Any ideas where to go from here please?
 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com 

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Re: ...and now I can't build

2019-07-04 Thread Peter Toye
Dear Geertjan,

Both javac.source and javac.target are set to 12. If I change the source/target 
to 8 they change accordingly. See the attached if you don't believe me!

Whichever I choose the build fails.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Thursday, July 4, 2019, 11:16:43 AM, you wrote:


Can you open the Files window and look in the nbproject folder, where you’ll 
find the project.properties file?

There you will find javac.source and javac.target, which you can set directly 
within that file.

Gj




On Thu, 4 Jul 2019 at 12:11, Peter Toye  wrote:

Dear Laszlo,

Yes - that was my point. I had opened the project (well, a copy of it so as not 
to disturb the original which works in NB version 8) in NB 11 and gone through 
the error resolution. Changing the source/target to JDK8 doesn't change 
anything - see attached screenshot.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, July 1, 2019, 4:07:34 PM, you wrote:


You might be compiling your old stuff with modern Java.
Either go back to Java 8 or add javac.source=1.8 and javac.target=1.8 in your 
project properties.
On 7/1/19 1:57 AM, Peter Toye wrote:

...and now I can't build
I made a copy of a project in NB 8 and opened it in NB 11. Got some errors 
which were resolved OK.

But it won't build - I get a warning and 2 errors:

warning: [options] bootstrap class path not set in conjunction with -source 6
??error: Source option 6 is no longer supported. Use 7 or later.
??error: Target option 6 is no longer supported. Use 7 or later.??BUILD FAILED 
(total time: 0 seconds)

I can't see any way of changing this as there aren't any project options to 
change the source or target, even if I knew what they were referring to.

Stackoverflow gives remedies for this, but only for Maven. This project was 
built using Ant in NB 8 which I assume is carried over to NB 11.

The only likely reference that I can see is in build-impl.xml which is firmly 
marked "DO NOT EDIT"! But the comment implies that the properties aren't being 
overridden correctly.

   
??
??
??
??
??
????

Any ideas where to go from here please?
 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com 

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

project.properties
Description: Binary data

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Re: ...and now I can't build

2019-07-04 Thread Peter Toye
Dear Laszlo,

Yes - that was my point. I had opened the project (well, a copy of it so as not 
to disturb the original which works in NB version 8) in NB 11 and gone through 
the error resolution. Changing the source/target to JDK8 doesn't change 
anything - see attached screenshot.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, July 1, 2019, 4:07:34 PM, you wrote:


You might be compiling your old stuff with modern Java.
Either go back to Java 8 or add javac.source=1.8 and javac.target=1.8 in your 
project properties.
On 7/1/19 1:57 AM, Peter Toye wrote:

...and now I can't build
I made a copy of a project in NB 8 and opened it in NB 11. Got some errors 
which were resolved OK.

But it won't build - I get a warning and 2 errors:

warning: [options] bootstrap class path not set in conjunction with -source 6
??error: Source option 6 is no longer supported. Use 7 or later.
??error: Target option 6 is no longer supported. Use 7 or later.??BUILD FAILED 
(total time: 0 seconds)

I can't see any way of changing this as there aren't any project options to 
change the source or target, even if I knew what they were referring to.

Stackoverflow gives remedies for this, but only for Maven. This project was 
built using Ant in NB 8 which I assume is carried over to NB 11.

The only likely reference that I can see is in build-impl.xml which is firmly 
marked "DO NOT EDIT"! But the comment implies that the properties aren't being 
overridden correctly.

   
??
??
??
??
??
????

Any ideas where to go from here please?
 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com 
-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Re: Another installation issue

2019-07-04 Thread Peter Toye
Dear Geertjan,

I've been sending you screenshots. Shall we continue this conversation under 
the original track?

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Thursday, July 4, 2019, 10:49:43 AM, you wrote:


No one can help with this without error messages, steps to reproduce, some 
clues from your end.

Gj

On Thu, 4 Jul 2019 at 11:36, Peter Toye  wrote:

Dear Geertjan,

I was referring to the track called ' ...and now I can't build' which you've 
been helping me with. That problem remains in 11.1.


Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Wednesday, July 3, 2019, 7:03:26 PM, you wrote:




How can we help with this. I mean, what does this problem description mean.

Gj

On Wed, 3 Jul 2019 at 19:47, Peter Toye  wrote:

Dear Geertjan,

Thanks for the link. I tried it out and NB 11.1 runs without needing admin 
permission. If there are any glitches with the beta I'll send feedback - do I 
do that via JIRA or on this list?.

It still doesn't like my project - I am tearing out what little hair I have 
left.


Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, July 1, 2019, 10:05:08 AM, you wrote:


Or the other way around, use the installer, in fact, use the 11.1 beta 2 
installer and provide feedback on it:

https://cwiki.apache.org/confluence/display/NETBEANS/Apache+NetBeans+11.1

Gj

On Mon, Jul 1, 2019 at 11:02 AM Geertjan Wielenga  wrote:

Or you can unzip the ZIP file and run the executable to start NetBeans like 
that, instead of installing it via an installer.

Gj

On Sun, Jun 30, 2019 at 6:58 PM Peter Toye  wrote:

Dear Geertjan,

Yes... but it's a pain having to tell it each time that I want to run it.

Isn't there a way of telling Windows that there is a digital signature even if 
it hasn't been installed by WIndows Installer?

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Sunday, June 30, 2019, 5:03:05 PM, you wrote:


So just run it.

Gj

On Sunday, June 30, 2019, Peter Toye  wrote:

Having installed NB11 by unzipping the downloaded files, Windows keeps telling 
me that it's not digitally signed and whether I want to run it. This didn't 
happen with previous installations, presumably because the digital signing was 
handled automatically. I've downloaded the KEYS file, but I have no idea what 
to do with it. Can some kind soiul please tell me?

The OS is Windows 7 Home if that's relevant.

Sorry to keep asking silly questions, but I can't find the solution on the Web 
or in JIRA.
 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Re: Another installation issue

2019-07-04 Thread Peter Toye
Dear Geertjan,

I was referring to the track called ' ...and now I can't build' which you've 
been helping me with. That problem remains in 11.1.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Wednesday, July 3, 2019, 7:03:26 PM, you wrote:



How can we help with this. I mean, what does this problem description mean.

Gj

On Wed, 3 Jul 2019 at 19:47, Peter Toye  wrote:

Dear Geertjan,

Thanks for the link. I tried it out and NB 11.1 runs without needing admin 
permission. If there are any glitches with the beta I'll send feedback - do I 
do that via JIRA or on this list?.

It still doesn't like my project - I am tearing out what little hair I have 
left.


Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, July 1, 2019, 10:05:08 AM, you wrote:


Or the other way around, use the installer, in fact, use the 11.1 beta 2 
installer and provide feedback on it:

https://cwiki.apache.org/confluence/display/NETBEANS/Apache+NetBeans+11.1

Gj

On Mon, Jul 1, 2019 at 11:02 AM Geertjan Wielenga  wrote:

Or you can unzip the ZIP file and run the executable to start NetBeans like 
that, instead of installing it via an installer.

Gj

On Sun, Jun 30, 2019 at 6:58 PM Peter Toye  wrote:

Dear Geertjan,

Yes... but it's a pain having to tell it each time that I want to run it.

Isn't there a way of telling Windows that there is a digital signature even if 
it hasn't been installed by WIndows Installer?

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Sunday, June 30, 2019, 5:03:05 PM, you wrote:


So just run it.

Gj

On Sunday, June 30, 2019, Peter Toye  wrote:

Having installed NB11 by unzipping the downloaded files, Windows keeps telling 
me that it's not digitally signed and whether I want to run it. This didn't 
happen with previous installations, presumably because the digital signing was 
handled automatically. I've downloaded the KEYS file, but I have no idea what 
to do with it. Can some kind soiul please tell me?

The OS is Windows 7 Home if that's relevant.

Sorry to keep asking silly questions, but I can't find the solution on the Web 
or in JIRA.
 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Re: Another installation issue

2019-07-03 Thread Peter Toye
Dear Geertjan,

Thanks for the link. I tried it out and NB 11.1 runs without needing admin 
permission. If there are any glitches with the beta I'll send feedback - do I 
do that via JIRA or on this list?.

It still doesn't like my project - I am tearing out what little hair I have 
left. 

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, July 1, 2019, 10:05:08 AM, you wrote:


Or the other way around, use the installer, in fact, use the 11.1 beta 2 
installer and provide feedback on it:

https://cwiki.apache.org/confluence/display/NETBEANS/Apache+NetBeans+11.1

Gj

On Mon, Jul 1, 2019 at 11:02 AM Geertjan Wielenga  wrote:

Or you can unzip the ZIP file and run the executable to start NetBeans like 
that, instead of installing it via an installer.

Gj

On Sun, Jun 30, 2019 at 6:58 PM Peter Toye  wrote:

Dear Geertjan,

Yes... but it's a pain having to tell it each time that I want to run it.

Isn't there a way of telling Windows that there is a digital signature even if 
it hasn't been installed by WIndows Installer?

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Sunday, June 30, 2019, 5:03:05 PM, you wrote:


So just run it.

Gj

On Sunday, June 30, 2019, Peter Toye  wrote:

Having installed NB11 by unzipping the downloaded files, Windows keeps telling 
me that it's not digitally signed and whether I want to run it. This didn't 
happen with previous installations, presumably because the digital signing was 
handled automatically. I've downloaded the KEYS file, but I have no idea what 
to do with it. Can some kind soiul please tell me?

The OS is Windows 7 Home if that's relevant.

Sorry to keep asking silly questions, but I can't find the solution on the Web 
or in JIRA.
 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Re: ...and now I can't build

2019-07-02 Thread Peter Toye
Dear Geertjan and Laszlo,

Thanks both for the help. But the source/binary field was already set to JDK12 
(see the screenshot in my email of 12:01 yesterday).

It's very odd. I tried again yesterday after getting Geertjan's email and it 
built OK without my changing anything. Then I shut down the PC and booted it up 
this morning, and it's not building again with the same error messages. I don't 
think that anything has changed.

I have a nasty feeling that I'm going to have to open a new project and copy 
all the files across.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, July 1, 2019, 12:03:28 PM, you wrote:


I can very clearly see Source/Binary Format in your screenshot in the Sources 
tab.

Gj

On Mon, 1 Jul 2019 at 13:01, Peter Toye  wrote:

Dear Geertjan,

I think we're at cross-purposes here. My Project Properties doesn't have tabs - 
see the attached screenshot. I tried a new project using Maven and that does 
have tabs. So it seems to be an Ant problem.


Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, July 1, 2019, 11:41:46 AM, you wrote:


And in the Project Properties dialog, the first tab you see, named 'Sources', 
has 'Source/Binary Format' set to JDK 8 by default for me. When I change that 
to JDK 6, the two properties are changed for me to the following:

javac.source=1.6
javac.target=1.6

Thanks,

Gj

On Mon, Jul 1, 2019 at 12:40 PM Geertjan Wielenga  wrote:

When I create a new Java SE project with Ant in NetBeans, I see these two in 
'project.properties', you must have these too:

javac.source=1.8
javac.target=1.8

Look in the Files window, in the 'nbproject' folder, to find 
'project.properties' file.

Gj

On Mon, Jul 1, 2019 at 11:57 AM Peter Toye  wrote:

Dear Geertjan,

To answer both your posts:

I can't see any project option which corresponds to "source" or "target" with a 
value including "6". Which option are you referring to, please?

It's a straight Java app using Swing. Generated originally on NB version <=8 
(can't remember exactly which version - it was a long time ago) by the usual 
method - select "Java application" and click "New | JFrame" - design & program 
from there.

HTH.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, July 1, 2019, 10:01:03 AM, you wrote:


And what kind of project are we talking about, can you give a lot more details 
so we can help?

Yes, it is Ant-based. But what kind of project type -- a NetBeans Platform 
application? A Java EE application? An HTML/JavaScript application? What, 
exactly?

Gj

On Mon, Jul 1, 2019 at 10:58 AM Geertjan Wielenga  wrote:

Look in the Project Properties of your project (right-click it in the Projects 
window and choose Properties).

Gj

On Mon, Jul 1, 2019 at 10:57 AM Peter Toye  wrote:

I made a copy of a project in NB 8 and opened it in NB 11. Got some errors 
which were resolved OK.

But it won't build - I get a warning and 2 errors:

warning: [options] bootstrap class path not set in conjunction with -source 6
??error: Source option 6 is no longer supported. Use 7 or later.
??error: Target option 6 is no longer supported. Use 7 or later.??BUILD FAILED 
(total time: 0 seconds)

I can't see any way of changing this as there aren't any project options to 
change the source or target, even if I knew what they were referring to.

Stackoverflow gives remedies for this, but only for Maven. This project was 
built using Ant in NB 8 which I assume is carried over to NB 11.

The only likely reference that I can see is in build-impl.xml which is firmly 
marked "DO NOT EDIT"! But the comment implies that the properties aren't being 
overridden correctly.

   
??
??
??
??
??
????

Any ideas where to go from here please?
 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Re: ...and now I can't build

2019-07-01 Thread Peter Toye
Dear Geertjan,

I think we're at cross-purposes here. My Project Properties doesn't have tabs - 
see the attached screenshot. I tried a new project using Maven and that does 
have tabs. So it seems to be an Ant problem.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, July 1, 2019, 11:41:46 AM, you wrote:


And in the Project Properties dialog, the first tab you see, named 'Sources', 
has 'Source/Binary Format' set to JDK 8 by default for me. When I change that 
to JDK 6, the two properties are changed for me to the following:

javac.source=1.6
javac.target=1.6

Thanks,

Gj

On Mon, Jul 1, 2019 at 12:40 PM Geertjan Wielenga  wrote:

When I create a new Java SE project with Ant in NetBeans, I see these two in 
'project.properties', you must have these too:

javac.source=1.8
javac.target=1.8

Look in the Files window, in the 'nbproject' folder, to find 
'project.properties' file.

Gj

On Mon, Jul 1, 2019 at 11:57 AM Peter Toye  wrote:

Dear Geertjan,

To answer both your posts:

I can't see any project option which corresponds to "source" or "target" with a 
value including "6". Which option are you referring to, please?

It's a straight Java app using Swing. Generated originally on NB version <=8 
(can't remember exactly which version - it was a long time ago) by the usual 
method - select "Java application" and click "New | JFrame" - design & program 
from there.

HTH.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, July 1, 2019, 10:01:03 AM, you wrote:


And what kind of project are we talking about, can you give a lot more details 
so we can help?

Yes, it is Ant-based. But what kind of project type -- a NetBeans Platform 
application? A Java EE application? An HTML/JavaScript application? What, 
exactly?

Gj

On Mon, Jul 1, 2019 at 10:58 AM Geertjan Wielenga  wrote:

Look in the Project Properties of your project (right-click it in the Projects 
window and choose Properties).

Gj

On Mon, Jul 1, 2019 at 10:57 AM Peter Toye  wrote:

I made a copy of a project in NB 8 and opened it in NB 11. Got some errors 
which were resolved OK.

But it won't build - I get a warning and 2 errors:

warning: [options] bootstrap class path not set in conjunction with -source 6
??error: Source option 6 is no longer supported. Use 7 or later.
??error: Target option 6 is no longer supported. Use 7 or later.??BUILD FAILED 
(total time: 0 seconds)

I can't see any way of changing this as there aren't any project options to 
change the source or target, even if I knew what they were referring to.

Stackoverflow gives remedies for this, but only for Maven. This project was 
built using Ant in NB 8 which I assume is carried over to NB 11.

The only likely reference that I can see is in build-impl.xml which is firmly 
marked "DO NOT EDIT"! But the comment implies that the properties aren't being 
overridden correctly.

   
??
??
??
??
??
????

Any ideas where to go from here please?
 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Re: ...and now I can't build

2019-07-01 Thread Peter Toye
Dear Geertjan,

To answer both your posts:

I can't see any project option which corresponds to "source" or "target" with a 
value including "6". Which option are you referring to, please?

It's a straight Java app using Swing. Generated originally on NB version <=8 
(can't remember exactly which version - it was a long time ago) by the usual 
method - select "Java application" and click "New | JFrame" - design & program 
from there. 

HTH.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, July 1, 2019, 10:01:03 AM, you wrote:


And what kind of project are we talking about, can you give a lot more details 
so we can help?

Yes, it is Ant-based. But what kind of project type -- a NetBeans Platform 
application? A Java EE application? An HTML/JavaScript application? What, 
exactly?

Gj

On Mon, Jul 1, 2019 at 10:58 AM Geertjan Wielenga  wrote:

Look in the Project Properties of your project (right-click it in the Projects 
window and choose Properties).

Gj

On Mon, Jul 1, 2019 at 10:57 AM Peter Toye  wrote:

I made a copy of a project in NB 8 and opened it in NB 11. Got some errors 
which were resolved OK.

But it won't build - I get a warning and 2 errors:

warning: [options] bootstrap class path not set in conjunction with -source 6
??error: Source option 6 is no longer supported. Use 7 or later.
??error: Target option 6 is no longer supported. Use 7 or later.??BUILD FAILED 
(total time: 0 seconds)

I can't see any way of changing this as there aren't any project options to 
change the source or target, even if I knew what they were referring to.

Stackoverflow gives remedies for this, but only for Maven. This project was 
built using Ant in NB 8 which I assume is carried over to NB 11.

The only likely reference that I can see is in build-impl.xml which is firmly 
marked "DO NOT EDIT"! But the comment implies that the properties aren't being 
overridden correctly.

   
??
??
??
??
??
????

Any ideas where to go from here please?
 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

...and now I can't build

2019-07-01 Thread Peter Toye
I made a copy of a project in NB 8 and opened it in NB 11. Got some errors 
which were resolved OK.

But it won't build - I get a warning and 2 errors:

warning: [options] bootstrap class path not set in conjunction with -source 6

error: Source option 6 is no longer supported. Use 7 or later.

error: Target option 6 is no longer supported. Use 7 or later.
BUILD FAILED (total time: 0 seconds)

I can't see any way of changing this as there aren't any project options to 
change the source or target, even if I knew what they were referring to.

Stackoverflow gives remedies for this, but only for Maven. This project was 
built using Ant in NB 8 which I assume is carried over to NB 11.

The only likely reference that I can see is in build-impl.xml which is firmly 
marked "DO NOT EDIT"! But the comment implies that the properties aren't being 
overridden correctly.

   














Any ideas where to go from here please?
 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Re: Another installation issue

2019-06-30 Thread Peter Toye
Dear Geertjan,

Yes... but it's a pain having to tell it each time that I want to run it.

Isn't there a way of telling Windows that there is a digital signature even if 
it hasn't been installed by WIndows Installer?

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Sunday, June 30, 2019, 5:03:05 PM, you wrote:


So just run it. 

Gj

On Sunday, June 30, 2019, Peter Toye  wrote:

Having installed NB11 by unzipping the downloaded files, Windows keeps telling 
me that it's not digitally signed and whether I want to run it. This didn't 
happen with previous installations, presumably because the digital signing was 
handled automatically. I've downloaded the KEYS file, but I have no idea what 
to do with it. Can some kind soiul please tell me?

The OS is Windows 7 Home if that's relevant.

Sorry to keep asking silly questions, but I can't find the solution on the Web 
or in JIRA.
 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Another installation issue

2019-06-30 Thread Peter Toye
Having installed NB11 by unzipping the downloaded files, Windows keeps telling 
me that it's not digitally signed and whether I want to run it. This didn't 
happen with previous installations, presumably because the digital signing was 
handled automatically. I've downloaded the KEYS file, but I have no idea what 
to do with it. Can some kind soiul please tell me? 

The OS is Windows 7 Home if that's relevant.

Sorry to keep asking silly questions, but I can't find the solution on the Web 
or in JIRA.
 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Re: Bits missing in NB11 installation

2019-06-28 Thread Peter Toye
Thanks Geertjan,

Being new to the Apache NB mechanisms I'm a bit lost in where to look for 
things!

On the Javadoc, it seems I have to wait for NB 11.1...

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Friday, June 28, 2019, 3:48:16 PM, you wrote:



You can always take a look in the issue tracker when you're wondering about 
something, e.g., about JavaHelp status:

https://issues.apache.org/jira/browse/NETBEANS-3

It's not specific to NB 11, at all -- see above, licensing issue since moving 
to Apache, which we're hoping to solve.

Not sure off hand re javadoc, I know there's a PR about this:

https://github.com/apache/netbeans/pull/1299

Gj


On Fri, Jun 28, 2019 at 4:41 PM Peter Toye  wrote:

Having just installed NB 11, there seem to be bits missing:

1) There's no help system - just the online docs & support. Is this intentional?

2) (This one may be a Java issue not a Netbeans one.) I can't find the Javadoc 
for the Java 12 API. I tried setting the Javadoc URL to
https://docs.oracle.com/en/java/javase/12/docs/api/index.html but this didn't 
work. When I last used Java over 3 years ago one could download the entire API 
Javadoc as a Zip file, but this seems to have disappeared. Can someone please 
tell me where to find it?
 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Bits missing in NB11 installation

2019-06-28 Thread Peter Toye
Having just installed NB 11, there seem to be bits missing:

1) There's no help system - just the online docs & support. Is this intentional?

2) (This one may be a Java issue not a Netbeans one.) I can't find the Javadoc 
for the Java 12 API. I tried setting the Javadoc URL to 
https://docs.oracle.com/en/java/javase/12/docs/api/index.html but this didn't 
work. When I last used Java over 3 years ago one could download the entire API 
Javadoc as a Zip file, but this seems to have disappeared. Can someone please 
tell me where to find it?
 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Re: Swing in Netbeans

2019-06-27 Thread Peter Toye
Thanks Glenn for the comments.

I was getting an intermittent notification that there was a missing hamcrest 
library, but without doing anything about it the messages seem to have 
disappeared. My code certainly doesn't use hamcrest directly, but there may be 
some assertion that is translated into a hamcrest call. Anyway, it seems to 
have gone now.

 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Re: Swing in Netbeans

2019-06-26 Thread Peter Toye
Dear Geertjan,

Thanks. It's just that (as I reported in a previous post) I had problems 
opening my old project in NB 11. I then created a library called swing-layout 
but didn't give it a classpath - now the project compiles OK even with the 
missing classpath (not sure how - should it have one?) so I seem to be OK.

But I thought I'd try starting afresh and couldn't find the old New Project - 
Java. Now I realise I have to select Java with Ant.

Sorry for the trouble - getting too old for this sort of thing.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Wednesday, June 26, 2019, 4:01:30 PM, you wrote:


You’re going to need to define what “Swing projects” are. Swing is supported 
out of the box, NetBeans Platform applications too, which are Swing projects, 
too.

Gj

On Wed, 26 Jun 2019 at 16:59, Peter Toye  wrote:

Having recently decided to modify an ancient Java program I installed NB 
version 11, but there doesn't seem to be any support for Swing projects in it. 
Do I have to convert to JavaFX (which I'd first have to learn)? Or is it easier 
just to continue with Netbeans version 8?

Thanks in advance,
 
Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Swing in Netbeans

2019-06-26 Thread Peter Toye
Having recently decided to modify an ancient Java program I installed NB 
version 11, but there doesn't seem to be any support for Swing projects in it. 
Do I have to convert to JavaFX (which I'd first have to learn)? Or is it easier 
just to continue with Netbeans version 8?

Thanks in advance,
 
Peter
mailto:netbe...@ptoye.com
www.ptoye.com

Re: Coming back to Netbeans

2019-06-23 Thread Peter Toye
Thanks Geertjan and Emilio.

I've downloaded and unpacked, but there was a bug found when I started it up 
again - I've reported that to JIRA.

But also, trying to open the project it says:

   Problem: The project uses a class library called "swing-layout", but 
this class library was not found.

   ??Solution: Click Resolve to open the Library Manager and create a new 
class library called "swing-layout".

The project uses swing - is there any further updating I need to do before I 
can continue playing with it?

Thanks in advance,

Peter

Coming back to Netbeans

2019-06-22 Thread Peter Toye
I've not used NetBeans for some time, but probably want to start using it 
again. But a lot had happened since then: Apache has taken over from Oracle, 
and my old version (8.0.2) is way out of date.

Is there an easy way to upgrade from that version to the latest stable one 
(whichever that is) and keep my existing projects? Or do I have to start from 
scratch? And are there any gotchas?

I'm using Windows 7 SP1 Home.

 
Thanks in advance,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com