change editor scrollbar color
Hello, When working with a large file, the scrollbar (thumb?) becomes very small, and since its color is "light gray" (I think) it is difficult to see or find quickly while working. Can the color of that bar (or the thumb therein) be changed? I couldn't find it in the various color-setting panes in "options". There are many posts concerning scroll bars that a user creates using Swing, but that's not the question here. I'm talking about the scrollbar that always appears on the right in the editor. Thanks. Chris Lanz4 Poplar St., Potsdam, NY lan...@potsdam.edu 315 268 1547
change default word processor - NB 16, Windows 10
Hello, Is it possible to change/set the word processor accessed by the "open in system" command? Wordpad disgusts me. Chris Lanz lan...@potsdam.edu 315 268 1547
Re: [EXTERNAL] Re: cannot find or load main class - still - again
Hello, thanks for the suggestion, but I'm not sure: I inevitably run by typing "F6". Chris Lanz 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu 315 268 1547 From: Thomas Kellerer Sent: Thursday, February 16, 2023 8:52 AM To: users@netbeans.apache.org Subject: [EXTERNAL] Re: cannot find or load main class - still - again This message did not originate from SUNY Potsdam or one of its trusted senders. Do not open attachments, click on links, or provide your credentials if the source is suspicious. Are you using "Compile on Save"? I have had occasional problems with that. If you do use it, try to disable it and see if your problem goes away Thomas Christopher C. Lanz schrieb am 16.02.2023 um 14:27: > Hello, > > I am getting this error (output below) about every 4^th time I run a > (large) program for debugging. While clearing the cache _does_ solve the > problem, so does the simple act of adding "//" to an early line in the main > method, or sometimes removing "//" or changing a "/* */" pair. > > First question: > > Does anyone have suggestions about why this happens, and/or how I can > reduce/eliminate the occurrences of the error? > > Second question: > > Does anyone know how to get NetBeans support in the event the community is > unable to help? > > Thanks. > > Chris Lanz > > 340 Dunn Hall, SUNY Potsdam > > lan...@potsdam.edu > > 315 268 1547 > > --- exec-maven-plugin:1.5.0:exec (default-cli) @ Wdax --- > > Error: Could not find or load main class mainPackage.Wdax > > Caused by: java.lang.ClassNotFoundException: mainPackage.Wdax > > Command execution failed. > > org.apache.commons.exec.ExecuteException: Process exited with an error: 1 > (Exit value: 1) > > at org.apache.commons.exec.DefaultExecutor.executeInternal > (DefaultExecutor.java:404) > > at org.apache.commons.exec.DefaultExecutor.execute (DefaultExecutor.java:166) > > at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:764) > > at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:711) > > at org.codehaus.mojo.exec.ExecMojo.execute (ExecMojo.java:289) > > at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo > (DefaultBuildPluginManager.java:137) > > at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 > (MojoExecutor.java:370) > > at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute > (MojoExecutor.java:351) > > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:215) > > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:171) > > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:163) > > at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject > (LifecycleModuleBuilder.java:117) > > at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject > (LifecycleModuleBuilder.java:81) > > at > org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build > (SingleThreadedBuilder.java:56) > > at org.apache.maven.lifecycle.internal.LifecycleStarter.execute > (LifecycleStarter.java:128) > > at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294) > > at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) > > at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) > > at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960) > > at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293) > > at org.apache.maven.cli.MavenCli.main (MavenCli.java:196) > > at jdk.internal.reflect.DirectMethodHandleAccessor.invoke > (DirectMethodHandleAccessor.java:104) > > at java.lang.reflect.Method.invoke (Method.java:578) > > at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced > (Launcher.java:282) > > at org.codehaus.plexus.classworlds.launcher.Launcher.launch > (Launcher.java:225) > > at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode > (Launcher.java:406) > > at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) > > > > BUILD FAILURE > > > > Total time: 1.187 s > > Finished at: 2023-02-16T08:14:23-05:00 > > > > Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec > (default-cli) on project Wdax: Command exec
cannot find or load main class - still - again
Hello, I am getting this error (output below) about every 4th time I run a (large) program for debugging. While clearing the cache does solve the problem, so does the simple act of adding "//" to an early line in the main method, or sometimes removing "//" or changing a "/* */" pair. First question: Does anyone have suggestions about why this happens, and/or how I can reduce/eliminate the occurrences of the error? Second question: Does anyone know how to get NetBeans support in the event the community is unable to help? Thanks. Chris Lanz 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu 315 268 1547 --- exec-maven-plugin:1.5.0:exec (default-cli) @ Wdax --- Error: Could not find or load main class mainPackage.Wdax Caused by: java.lang.ClassNotFoundException: mainPackage.Wdax Command execution failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) at org.apache.commons.exec.DefaultExecutor.executeInternal (DefaultExecutor.java:404) at org.apache.commons.exec.DefaultExecutor.execute (DefaultExecutor.java:166) at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:764) at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:711) at org.codehaus.mojo.exec.ExecMojo.execute (ExecMojo.java:289) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293) at org.apache.maven.cli.MavenCli.main (MavenCli.java:196) at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:104) at java.lang.reflect.Method.invoke (Method.java:578) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) BUILD FAILURE Total time: 1.187 s Finished at: 2023-02-16T08:14:23-05:00 Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec (default-cli) on project Wdax: Command execution failed.: Process exited with an error: 1 (Exit value: 1) -> [Help 1] To see the full stack trace of the errors, re-run Maven with the -e switch. Re-run Maven using the -X switch to enable full debug logging. For more information about the errors and possible solutions, please read the following articles: [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
keyboard shortcut - accented characters - NB 16 editor - Windows 10
Hello, with the help of this group I can now display accented characters in the output window and in the editor. However, I need to add accented characters: because I have upwards of 1,000 such characters to enter, I am hoping there are keyboard shortcuts, such as exist in Windows apps, and such as I was able to use in a Linux installation of NetBeans. In Linux I was able to set it up so that right-Alt + "`" + "a" produced the character "a" with an accent (ague or grave, I forget...). In Windows applications there are also such shortcuts but they don't work in the NB editor. Thanks. Chris Lanz 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu 315 268 1547
no main class error: strangest fix
Hello, I use NB 16 on Windows 10. On a very large project that has been running for years, lately, I get the "cannot find or load main class" error about once a day. Yes, removing the cache fixes it, but so does something else: comment out whatever code you just added or changed run the program (it has always, then, worked at this point (so far knock on wood - about a dozen instances )) replace the code you removed run the program At which point the same code now finds the main class that it couldn't before, and runs normally. I am unable to duplicate this on a small test project - it just never gets the error in the first place. Anybody have any suggestions for avoiding this time-wasting error? Thanks. Chris Lanz, Assoc. Professor Emeritus Department of Computer Science 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu 315 268 1547
question about netbeans questions and support
Hello, as a retired Computer Science professor doing A.I. research, it happens that I have MUCH more money than time. I wonder if there is already a mechanism for users to pay to get help after it happens that the community is unable to help with a question. (There is only one name on the reference provided by Apache.) If not, I really really need to hire somebody who has more time than money. Thanks to the community for all the help I have received, and for all they do in general. I just need to make it more efficient on my end. Chris Lanz, Assoc. Professor Emeritus Department of Computer Science 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu 315 268 1547
Re: [EXTERNAL] Re: NB 16 code template expansion
Hello, problem solved, with one surprise: I didn't realize that the expansion of code templates is limited to locations where the expansion would create correct code, so some of my tests (that led me to believe I had a problem) were invalid. I never discovered this because (apparently) I never used "sout"+tab except where it would create legal code. Most tests I now make follow this idea. The counter examples are for (int i = 0; i < 5; i++) { <> } in which replacing "<>" with "sout" + tab produces "System.out.println("");", exactly as expected. However, in or (int i = 0; i < 5; i++) <> replacing "<>" with "sout" + tab produces "sout" and a tab's worth of spaces. A for-each loop to traverse an ArrayList behaves exactly the same. OTOH an "if" statement doesn't share this property, nor does a "while" loop. It is curious that the "for" loops will only expand the template if their controlled blocks are surrounded with curly braces. I have duplicated the problem after restarting NB and/or reboot. Caveat: I have not tested this situation on more than 2 projects. I use NetBeans 16 running on Windows 10. Chris Lanz 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu 315 268 1547 From: Laszlo Kishalmi Sent: Saturday, January 14, 2023 10:58 AM To: users@netbeans.apache.org Subject: Re: [EXTERNAL] Re: NB 16 code template expansion This feature is enabled by default. Cannot be really switched off. (Disablind it support modules might work). In Tools > Options > Editor > Code Templates at the bottom of the dialog, the action key (by default) can be changed though. If I remember well there was a time when tha expand action was simply the key. On 1/14/23 07:47, Christopher C. Lanz wrote: Hello, I have been using tab to expand "sout" to System.out.println(""); for several years. Since I have never used Eclipse/IntelliJ-IDEA, it would be difficult for me to have them confused with NB. As yet noone has responded to the question of how that feature gets toggled. Chris Lanz, Assoc. Professor Emeritus Department of Computer Science 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu<mailto:lan...@potsdam.edu> 315 268 1547 From: Sean Carrick <mailto:s...@pekinsoft.com> Sent: Friday, January 13, 2023 3:34 PM To: Christopher C. Lanz <mailto:lan...@potsdam.edu.invalid> Cc: users@netbeans.apache.org<mailto:users@netbeans.apache.org> <mailto:users@netbeans.apache.org> Subject: [EXTERNAL] Re: NB 16 code template expansion This message did not originate from SUNY Potsdam or one of its trusted senders. Do not open attachments, click on links, or provide your credentials if the source is suspicious. Chris, I cannot recall a time when TAB expanded anything in NB...Did you mean "sout" + CTRL+SPACE? Because that is how I remember it always working and how it currently works. Is it possible that you are confusing the template expansion from Eclipse/IntelliJ-IDEA and NB? 😂 That's why I try not to switch IDEs very often...😉 Sincerely, Sean Carrick Owner - PekinSOFT Systems s...@pekinsoft.com<mailto:s...@pekinsoft.com> (309) 989-0672 On Thu, Jan 12, 2023 at 9:24 AM Christopher C. Lanz <mailto:lan...@potsdam.edu.invalid> wrote: Hello, in messing around about other problems, I seem to have disabled code template expansion. (Typing "sout" +tab always used to produce "System.out.println("");" I can't find a Tools/Options setting that turns this feature back on. The Apache page https://netbeans.apache.org/kb/docs/php/code-templates.html doesn't include this information, and I couldn't find a post that provides it. ??? Thanks Chris Lanz 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu<mailto:lan...@potsdam.edu> 315 268 1547
Re: [EXTERNAL] Re: NB 16 code template expansion
Hello, I have been using tab to expand "sout" to System.out.println(""); for several years. Since I have never used Eclipse/IntelliJ-IDEA, it would be difficult for me to have them confused with NB. As yet noone has responded to the question of how that feature gets toggled. Chris Lanz, Assoc. Professor Emeritus Department of Computer Science 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu 315 268 1547 From: Sean Carrick Sent: Friday, January 13, 2023 3:34 PM To: Christopher C. Lanz Cc: users@netbeans.apache.org Subject: [EXTERNAL] Re: NB 16 code template expansion This message did not originate from SUNY Potsdam or one of its trusted senders. Do not open attachments, click on links, or provide your credentials if the source is suspicious. Chris, I cannot recall a time when TAB expanded anything in NB...Did you mean "sout" + CTRL+SPACE? Because that is how I remember it always working and how it currently works. Is it possible that you are confusing the template expansion from Eclipse/IntelliJ-IDEA and NB? 😂 That's why I try not to switch IDEs very often...😉 Sincerely, Sean Carrick Owner - PekinSOFT Systems s...@pekinsoft.com<mailto:s...@pekinsoft.com> (309) 989-0672 On Thu, Jan 12, 2023 at 9:24 AM Christopher C. Lanz wrote: Hello, in messing around about other problems, I seem to have disabled code template expansion. (Typing "sout" +tab always used to produce "System.out.println("");" I can't find a Tools/Options setting that turns this feature back on. The Apache page https://netbeans.apache.org/kb/docs/php/code-templates.html doesn't include this information, and I couldn't find a post that provides it. ??? Thanks Chris Lanz 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu<mailto:lan...@potsdam.edu> 315 268 1547
NB 16 code template expansion
Hello, in messing around about other problems, I seem to have disabled code template expansion. (Typing "sout" +tab always used to produce "System.out.println("");" I can't find a Tools/Options setting that turns this feature back on. The Apache page https://netbeans.apache.org/kb/docs/php/code-templates.html doesn't include this information, and I couldn't find a post that provides it. ??? Thanks Chris Lanz 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu 315 268 1547
Fw: [EXTERNAL] Re: font for accented characters
see below - I neglected to reply to the list. . . . Chris Lanz 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu 315 268 1547 From: Christopher C. Lanz Sent: Tuesday, January 10, 2023 12:55 PM To: Neil C Smith Subject: Re: [EXTERNAL] Re: font for accented characters Hello, Thanks again. Adding either of your suggestions (eg. -J-Dsun.stdout.encoding=utf-8, or on a recent JDK -J-Dstdout.encoding=utf-8) to .conf both had no obvious, immediate effect, but having added those items, and then running with the line "System.setOut(new PrintStream(System.out, true, "UTF8"));" and finally the output of System.out.print() of an accented character is correct! Now I have to test other aspects of using these characters, but at least this one part of the problem is possibly solved. We'll see if these changes have some undesirable side-effects as I work for the next few days. Thanks so much! Chris Lanz, Assoc. Professor Emeritus Department of Computer Science 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu 315 268 1547 From: Neil C Smith Sent: Tuesday, January 10, 2023 12:06 PM To: Christopher C. Lanz Cc: users@netbeans.apache.org ; its_toas...@yahoo.com Subject: Re: [EXTERNAL] Re: font for accented characters On Tue, 10 Jan 2023 at 16:53, Christopher C. Lanz wrote: > I have added -J-Dfile.encoding=UTF-8 to netbeans.conf, and then, of course, > I restarted Netbeans > > System.out.println("ī") produces a question mark as the output. Same for ā Then it's possibly not (just) file encoding you want to set, but also system out encoding (eg. -J-Dsun.stdout.encoding=utf-8, or on a recent JDK -J-Dstdout.encoding=utf-8) See also https://github.com/apache/netbeans/issues/4771 and related. You can always set command line arguments like this in the Windows shortcut as well as the netbeans.conf file. I find that better as you can set up multiple shortcuts. You can also consider setting the environment variable mentioned in that issue and linked - JAVA_TOOL_OPTIONS Or it's the font .. This is all a little confusing and annoying if you ask me, but then that's Windows for you! :-) 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: [EXTERNAL] Re: font for accented characters
Hello, Thanks for responding. I believe the file encoding is UTF-8: the dialog Project Properties / sources has a box labeled "encoding", and it is set to UTF-8. I have added -J-Dfile.encoding=UTF-8 to netbeans.conf, and then, of course, I restarted Netbeans System.out.println("ī") produces a question mark as the output. Same for ā A StackOverflow source said that the Program Properties/General page includes an "encoding" entry. There is no such entry in my installation (Netbeans 16 on WIndows 10). The only mention of "encoding" in Project Properties is under "sources". I can find no mention of it in Tools/options, either in "editor", "fonts & colors", or anywhere else. Chris Lanz 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu 315 268 1547 From: Mark Eggers Sent: Monday, January 9, 2023 2:02 PM To: users@netbeans.apache.org Subject: [EXTERNAL] Re: font for accented characters This message did not originate from SUNY Potsdam or one of its trusted senders. Do not open attachments, click on links, or provide your credentials if the source is suspicious. Hi Chris, A quick question: 1. Is your file encoding UTF-8? At least for NetBeans 15, the configuration file is located in wherever you installed NetBeans\etc. It's called netbeans.conf. In my netbeans.conf, I've added -J-Dfile.encoding=UTF-8 to netbeans_default_options. I haven't tried this with NetBeans 16 yet (upgrade today most likely), but several people at $work have used prior versions of NetBeans and have added characters with diacritics. Using the Character Map and copying the result into a text file worked on NetBeans 15. An acute accent e showed up in a text file, was saved, opened, and the diacritic was displayed properly. The character showed up properly in other UTF-8 aware editors. . . . just my two cents /mde/ On 1/9/2023 10:32 AM, Christopher C. Lanz wrote: > Hello, > > I am trying to use Latin vowels with macrons in Netbeans 16 in Windows 10. My > searches in such places as StackOverflow have yielded advice, but I have yet > to find the right thing. > > One possibility mentioned is just to switch to a font that supports accented > characters, such as 'e' with accent grave - does anyone know which fonts I > should try? > > Another set of advice suggests changing the netbeans.conf file, but it has > moved since the advice I found was written. How do I get to it in Windows? I > am also unable to find the default_options file. ?? > > Thanks > > > Chris Lanz > > 340 Dunn Hall, SUNY Potsdam > > lan...@potsdam.edu > > 315 268 1547 > > > > - 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
font for accented characters
Hello, I am trying to use Latin vowels with macrons in Netbeans 16 in Windows 10. My searches in such places as StackOverflow have yielded advice, but I have yet to find the right thing. One possibility mentioned is just to switch to a font that supports accented characters, such as 'e' with accent grave - does anyone know which fonts I should try? Another set of advice suggests changing the netbeans.conf file, but it has moved since the advice I found was written. How do I get to it in Windows? I am also unable to find the default_options file. ?? Thanks Chris Lanz 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu 315 268 1547
Re: [EXTERNAL] Re: accented characters in NB 16 IDE editor
Hello, Thanks again. Unfortunately I can find no mention of "character map" in the NetBeans documentation to which I have access. Would it be a Windows matter? I have already ascertained that the usual Windows method for these characters doesn't function in the Netbeans editor. Chris Lanz 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu 315 268 1547 From: Helmut Leininger Sent: Monday, January 2, 2023 11:27 AM To: users@netbeans.apache.org Subject: Re: [EXTERNAL] Re: accented characters in NB 16 IDE editor Hi, the Microsoft "recommendations" only work for MS Word or LibreOffice For other programs you have to use Arnaud's method: There is no compose character on Windows. If you want a character not available in your keyborad layout, you should: - use character map - or keep Alt key down and press the character code (avalaible in character map): for example É (upper e accute) Alt+0201 Make sure that NumLock is on before entering Alt+nnn (from numeric keyboard !) Regards Helmut Am 02.01.2023 um 15:35 schrieb Christopher C. Lanz: Hello, Yes, thanks, I have tried the Microsoft recommendations. They don't work in the NetBeans 16 IDE editor. Chris Lanz, Assoc. Professor Emeritus Department of Computer Science 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu<mailto:lan...@potsdam.edu> 315 268 1547 From: Brett Ryan <mailto:brett.r...@gmail.com> Sent: Monday, January 2, 2023 12:49 AM To: Arnaud bourree <mailto:arnaud.bour...@gmail.com> Cc: users@netbeans.apache.org<mailto:users@netbeans.apache.org> <mailto:users@netbeans.apache.org> Subject: [EXTERNAL] Re: accented characters in NB 16 IDE editor This message did not originate from SUNY Potsdam or one of its trusted senders. Do not open attachments, click on links, or provide your credentials if the source is suspicious. According to Microsoft there is: https://support.microsoft.com/en-au/topic/keyboard-shortcuts-for-international-characters-108fa0c1-fb8e-4aae-9db1-d60407d13c35 On Mon, 2 Jan 2023 at 16:44, Arnaud bourree mailto:arnaud.bour...@gmail.com>> wrote: Hi, There is no compose character on Windows. If you want a character not available in your keyborad layout, you should: - use character map - or keep Alt key down and press the character code (avalaible in character map): for example É (upper e accute) Alt+0201 Regardes, Arnaud Le lun. 2 janv. 2023, 02:25, Brett Ryan mailto:brett.r...@gmail.com>> a écrit : I don't use windows but believe it should be similar but with CTRL. Try pressing CTRL+`, release, then the key for the accent (e, u, a, ...) On Mon, 2 Jan 2023 at 07:57, Peter Holt mailto:pe...@holt.se>> wrote: Från: Christopher C. Lanz <mailto:lan...@potsdam.edu.INVALID> Skickat: den 1 januari 2023 21:32 Till: users@netbeans.apache.org<mailto:users@netbeans.apache.org> Ämne: accented characters in NB 16 IDE editor Hello, I just switched from linux to windows 10, with Netbeans 16 installed. I need to be able to type accented characters in the editor (java) - characters that survive being saved in files. In the linux version, it was a matter of holding AltGr and a key representing the desired accent, releasing those keys, and then typing a letter. I can't seem to find mention of this function online in stackoverflow etc., and the netbeans mailing list search gave no results (although I could be using it incorrectly.) Thanks. Chris Lanz 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu<mailto:lan...@potsdam.edu> 315 268 1547 -- Mit freundlichen Grüßen Helmut Leininger Email: h.leinin...@gmx.at<mailto:h.leinin...@gmx.at>
Re: [EXTERNAL] Sv: accented characters in NB 16 IDE editor
Hello, Thanks for the message. The only new information in your email that I can see is This message has a digital signature, but it wasn't verified because the S/MIME control isn't currently supported for your browser or platform. Does this imply that I need to do something before I can submit a query to the NetbEans mailing list "users"? Thanks again. Chris Lanz, Assoc. Professor Emeritus Department of Computer Science 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu 315 268 1547 From: Peter Holt Sent: Sunday, January 1, 2023 3:56 PM To: users@netbeans.apache.org Subject: [EXTERNAL] Sv: accented characters in NB 16 IDE editor This message did not originate from SUNY Potsdam or one of its trusted senders. Do not open attachments, click on links, or provide your credentials if the source is suspicious.
Re: [EXTERNAL] Re: accented characters in NB 16 IDE editor
Hello, Yes, thanks, I have tried the Microsoft recommendations. They don't work in the NetBeans 16 IDE editor. Chris Lanz, Assoc. Professor Emeritus Department of Computer Science 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu 315 268 1547 From: Brett Ryan Sent: Monday, January 2, 2023 12:49 AM To: Arnaud bourree Cc: users@netbeans.apache.org Subject: [EXTERNAL] Re: accented characters in NB 16 IDE editor This message did not originate from SUNY Potsdam or one of its trusted senders. Do not open attachments, click on links, or provide your credentials if the source is suspicious. According to Microsoft there is: https://support.microsoft.com/en-au/topic/keyboard-shortcuts-for-international-characters-108fa0c1-fb8e-4aae-9db1-d60407d13c35 On Mon, 2 Jan 2023 at 16:44, Arnaud bourree mailto:arnaud.bour...@gmail.com>> wrote: Hi, There is no compose character on Windows. If you want a character not available in your keyborad layout, you should: - use character map - or keep Alt key down and press the character code (avalaible in character map): for example É (upper e accute) Alt+0201 Regardes, Arnaud Le lun. 2 janv. 2023, 02:25, Brett Ryan mailto:brett.r...@gmail.com>> a écrit : I don't use windows but believe it should be similar but with CTRL. Try pressing CTRL+`, release, then the key for the accent (e, u, a, ...) On Mon, 2 Jan 2023 at 07:57, Peter Holt mailto:pe...@holt.se>> wrote: Från: Christopher C. Lanz Skickat: den 1 januari 2023 21:32 Till: users@netbeans.apache.org<mailto:users@netbeans.apache.org> Ämne: accented characters in NB 16 IDE editor Hello, I just switched from linux to windows 10, with Netbeans 16 installed. I need to be able to type accented characters in the editor (java) - characters that survive being saved in files. In the linux version, it was a matter of holding AltGr and a key representing the desired accent, releasing those keys, and then typing a letter. I can't seem to find mention of this function online in stackoverflow etc., and the netbeans mailing list search gave no results (although I could be using it incorrectly.) Thanks. Chris Lanz 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu<mailto:lan...@potsdam.edu> 315 268 1547
accented characters in NB 16 IDE editor
Hello, I just switched from linux to windows 10, with Netbeans 16 installed. I need to be able to type accented characters in the editor (java) - characters that survive being saved in files. In the linux version, it was a matter of holding AltGr and a key representing the desired accent, releasing those keys, and then typing a letter. I can't seem to find mention of this function online in stackoverflow etc., and the netbeans mailing list search gave no results (although I could be using it incorrectly.) Thanks. Chris Lanz 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu 315 268 1547
fresh install netbeans 12 windows 11 won't launch
Hello, I see many posts about earlier versions, but my question doesn't seem to have been addressed, or anyway, I can't find it. I just installed java jdk 18 64bit for windows and netbeans 12, on a new windows 11 machine. The splash screen appears, and gets through "done loading modules" and then the blue & white window disappears, and no netbeans launch appears to have happened. Suggestions? Thanks. Chris Lanz Department of Computer Science 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu 315 268 1547
interface files suddenly locked
Hello, Running netbeans 12 in ubuntu 14.04, two interfaces that have never been locked before are, today, suddenly locked. Both interfaces in a particular package are now locked. The compiler can't find these interfaces nor any class that implements them. Is there any way to unlock files in NetBeans? I tried making a new file and typing the code into it, but it was also locked. I tried restarting netbeans, but the two interfaces are still locked. Thanks. Chris Lanz Department of Computer Science 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu 315 268 1547
popup question
Hello, After a crash, some of the settings in my NetBeans 12 installation were changed. It used to be that when I typed the period after a class name, the fields & methods (summary) would pop up. I have tried settings described in "Code Assistance in the NetBeans Java Editor" but I can't find the right setting. Any suggestions? Thanks. Chris Lanz Department of Computer Science 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu 315 268 1547
hashCode question - resolved
Hello, I have received all the information I need, and you can get all of it in this thread. It turns out, that even though all my tests resulted in identical output of hashCode(), later implementations of the JVM might not use the same function. Thus I will write my own hashCode functions. I did this anyway when I used to work in Pascal. Thanks for all the detailed replies! Chris Lanz Department of Computer Science 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu 315 268 1547
hashCode: same every run?
Hello, Oracle's documentation for hashCode asserts: Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application. It would be helpful if I could rely on hashCode always to return the same integer for the same object. The documentation implies that I cannot rely on the function in this way. I have tested it several times, and the same integers are returned every time, between separate runs of the application, after exiting and restarting NetBeans, and after rebooting the computer. But it's not possible to do hundreds of tests, so I'm asking if anyone knows enough about this method to say that it will always return consistent values. Here is the code I used for testing (I am only concerned with calls to hashCode on Strings): public static void main(String[] args) { String s1 = "asddh:2 qwert:3 zxcv:4"; String s2 = "poiuy:19 lkjhg:22 mnbvc:27 jghfkd:16"; String s3 = "lakdnofgneoqwinelkvnlzjkndoafoibvklaznbdslvnvlaksv"; System.out.println(s1.hashCode()+" "+s2.hashCode()+" "+s3.hashCode()); } Thanks very much. Chris Lanz Department of Computer Science 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu 315 268 1547
using JExcel with Netbeans 12 running over Ubuntu 14.04
Hello, One of our fellow correspondents has suggested that I repeat this question. I am following their advice. Please forgive me. I need to use the jxl library in Netbeans 12 running in Ubuntu 14.04. I have followed the directions available online: * adding the jxl-2.6.jar file to the classpath * placing the jxl-2.6.jar file in the same directory as the source * placing it in a new folder called "+libs" * adding a new library containing it * importing the classes and yet NetBeans is still unable to find the classes in the library, saying "the jxl package does not exist". I haven't found any instructions specifically for Netbeans 12 on linux - please let me know if they exist. It is likely that I'm missing some step in the process, so please mention all the necessary steps after download/extract the zipped .jar file. Chris Lanz Department of Computer Science 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu 315 268 1547
support in the absence of community help
Hello, I have asked a question here and on stack overflow. No answers were forthcoming. In such a situation, are users simply hung out to dry, or is there any option for support from Apache-Netbeans, or any other NetBeans-savvy source? I would happily pay for it, but I would rather not pay the $1,200 that their business support plan requires, for one question. Chris Lanz Department of Computer Science 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu 315 268 1547
netbeans Jexcel
Greetings, I need to use a few of the jxl classes in a NetBeans project. I have tried to follow the instructions available on-line, although I couldn't find any explicitly for NetBeans 12 in ubuntu. The jar file was downloaded and extracted, and its location placed in the classpath for the project. And yet NetBeans says "the package jxl does not exist". It seems there's a step that was not detailed in the online solutions. Here are the classes I need, and the statements that generate the error: import jxl.Cell; import jxl.Sheet; import jxl.Workbook; Here are the entries in classpath user/local/netbeans-12.0/netbeans/java/modules/ext/AbsoluteLayout.jar home/chris/Desktop/java-netbeans-stuff/jexcelapi/jxl.jar Maybe I need another library, instead of placing this path in the default? Thanks! Chris Lanz - Department of Computer Science 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu 315 268 1547 Impeach and convict NOW!
memory allocation for JVM - "file too big to open safely" [netbeans] [java]
Hello, I am running NetBeans 12 in Ubuntu 14.04. When trying to load a file of text, I get the message "It seems that the file is too big to open safely...etc...". I have changed the netbeans.conf and app.conf files to include -J-Xms512m -J-Xmx2048m but I still get the error. I want to try increasing the allocation(s) for the JVM itself, but I can't find instructions to do that when you're using NetBeans, only for times when you're running "javac" and "java" commands in a terminal -- my installation doesn't recognize the "java" command - if it did I'd enter java -J-Xms512m -J-Xmx2048m Any suggestions? Thanks. Chris Lanz Department of Computer Science 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu 315 267 2407 315 268 1547 Nature and nature's laws lay hid in night: God said, Let Newton be! and all was light. (Pope) It did not last: the Devil howling "Ho! Let Einstein be!" restored the status quo. (Squire)
print before take Scanner input not working
Hello, For many years, and both with NetBeans and with just a terminal, I have used methods like this, to prompt the user to enter (say) an integer: public static int inkeyInteger( String message ){ System.out.print( message ); Scanner console = new Scanner(System.in); return console.nextInt(); } Now in NetBeans 12, this code fails - the message is not printed until after the user supplies data to the Scanner. I have tried all the possible orderings of these 3 lines of code, and passing the Scanner, etc. etc. I have searched StackOverflow. It can be worked around if I print the message before calling a method containing the scanner definition and next() call. This will require changing hundreds of method calls throughout a large program. Is there a workaround or patch etc.? Chris Lanz Department of Computer Science 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu 315 267 2407 315 268 1547 Nature and nature's laws lay hid in night: God said, Let Newton be! and all was light. (Pope) It did not last: the Devil howling "Ho! Let Einstein be!" restored the status quo. (Squire)