Re: SVN Client
Thank you for the info. We may update our dependencies to accept newer subversion clients as well. On 10/15/19 10:10 AM, Mark Eggers wrote: As a follow-up, I found a copy of 1.9.7 in the archives and have installed that. The log entries below indicate that it's being used. INFO [org.netbeans.modules.subversion.client.SvnClientFactory]: running on javahl INFO [org.netbeans.modules.subversion]: Finished indexing svn cache with 8 entries. Elapsed time: 1 ms. I'll answer the questions in your mail inline: On 10/15/2019 8:43 AM, Laszlo Kishalmi wrote: Dear Mark, Just a few question: 1. Was the IDE automatically recognize the SilkSVN library on startup without any configuration once it was installed? Yes, however the path to the DLL is in my PATH environment variable. 2. What is the current name (probably path) to the native dll (right now the IDE tries to locate the libsvnjavahl-1.dll) Current path is: D:\Programs-x64\SlikSvn\bin\libsvnjavahl-1.dll Again, D:\Programs-x64\SlikSvn\bin is in my PATH environment variable. 3. Does the SilkSVN install set an environment variable called SUBVERSION_NATIVE_LIBRARY? No, it does not. 4. What dll-s are installed by SilkSvn libsvnjavahl-1.dll SlikSvn-DB44-20-x64.dll SlikSvn-libapr-1.dll SlikSvn-libaprutil-1.dll SlikSvn-libeay32.dll SlikSvn-libintl.dll SlikSvn-libsasl21.dll SlikSvn-libsvn_client-1.dll SlikSvn-libsvn_delta-1.dll SlikSvn-libsvn_diff-1.dll SlikSvn-libsvn_fs-1.dll SlikSvn-libsvn_ra-1.dll SlikSvn-libsvn_repos-1.dll SlikSvn-libsvn_subr-1.dll SlikSvn-libsvn_wc-1.dll SlikSvn-ssleay32.dll I don't think that it installs any DLLs in a system directory, but I didn't check. . . . just my two cents /mde/ I'm asking these as we might need to update/improve the JavaHL detection on Windows. We did taht in linux adding the Ubuntu path to the search list and the user experience is much better. We could create a wiki how to configure the native libraries with screenshots and add a link to the subversion setting dialog as well. Just a reference the native library detection happens in: https://github.com/apache/netbeans/blob/master/ide/libs.svnClientAdapter.javahl/src/org/netbeans/libs/svnclientadapter/javahl/JavaHlClientAdapterFactory.java On 10/15/19 12:14 AM, Mark Eggers wrote: I use the Slik SVN client with the advanced installation on Windows 10 Professional with NetBeans 11.1. This seems to work reasonably well, although I mostly work with git these days. . . . just my two cents /mde/ On 10/14/2019 9:45 PM, László Kishalmi wrote: Well, NetBeans had support for 3 kind of Subversion clients. Native library, svnkit and command line. Unfortunately the svnkit had to be removed due to licensing reason. The command line is unreliable and unfortunately the native is a bit hard to configure especially on windows. AFAIK the Silk SVN client 1.10 needs to be installed in advanced mode and select the installation of the native java binding. Then set up the path to that library in the ide. Options - Misc -Version control. If you succeed, that would be the fastest and most reliable solution. On Mon, Oct 14, 2019, 05:37 Eduardo Mosqueira Rey wrote: I am testing NetBeans 11.1 for using in classroom and I recently discovered that a Subversion client is not included in this version and you have to install it. This is an inconvenience that means an extra step and a possibility of doing something wrong in the process. Is it possible to include it out-of-the-box as in previous versions like 8.2.? Being Subversion an Apache problem it should not be very difficult. Best regards, Eduardo Mosqueira - 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 - 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: Java project now needs classpaths to run it
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: SVN Client
As a follow-up, I found a copy of 1.9.7 in the archives and have installed that. The log entries below indicate that it's being used. INFO [org.netbeans.modules.subversion.client.SvnClientFactory]: running on javahl INFO [org.netbeans.modules.subversion]: Finished indexing svn cache with 8 entries. Elapsed time: 1 ms. I'll answer the questions in your mail inline: On 10/15/2019 8:43 AM, Laszlo Kishalmi wrote: > Dear Mark, > > Just a few question: > > 1. Was the IDE automatically recognize the SilkSVN library on startup > without any configuration once it was installed? > Yes, however the path to the DLL is in my PATH environment variable. > 2. What is the current name (probably path) to the native dll (right now > the IDE tries to locate the libsvnjavahl-1.dll) > Current path is: D:\Programs-x64\SlikSvn\bin\libsvnjavahl-1.dll Again, D:\Programs-x64\SlikSvn\bin is in my PATH environment variable. > 3. Does the SilkSVN install set an environment variable called > SUBVERSION_NATIVE_LIBRARY? No, it does not. > > 4. What dll-s are installed by SilkSvn libsvnjavahl-1.dll SlikSvn-DB44-20-x64.dll SlikSvn-libapr-1.dll SlikSvn-libaprutil-1.dll SlikSvn-libeay32.dll SlikSvn-libintl.dll SlikSvn-libsasl21.dll SlikSvn-libsvn_client-1.dll SlikSvn-libsvn_delta-1.dll SlikSvn-libsvn_diff-1.dll SlikSvn-libsvn_fs-1.dll SlikSvn-libsvn_ra-1.dll SlikSvn-libsvn_repos-1.dll SlikSvn-libsvn_subr-1.dll SlikSvn-libsvn_wc-1.dll SlikSvn-ssleay32.dll I don't think that it installs any DLLs in a system directory, but I didn't check. . . . just my two cents /mde/ > > > I'm asking these as we might need to update/improve the JavaHL detection > on Windows. We did taht in linux adding the Ubuntu path to the search > list and the user experience is much better. We could create a wiki how > to configure the native libraries with screenshots and add a link to the > subversion setting dialog as well. > > Just a reference the native library detection happens in: > > https://github.com/apache/netbeans/blob/master/ide/libs.svnClientAdapter.javahl/src/org/netbeans/libs/svnclientadapter/javahl/JavaHlClientAdapterFactory.java > > > On 10/15/19 12:14 AM, Mark Eggers wrote: >> I use the Slik SVN client with the advanced installation on Windows 10 >> Professional with NetBeans 11.1. >> >> This seems to work reasonably well, although I mostly work with git >> these days. >> >> . . . just my two cents >> /mde/ >> >> On 10/14/2019 9:45 PM, László Kishalmi wrote: >>> Well, NetBeans had support for 3 kind of Subversion clients. Native >>> library, svnkit and command line. Unfortunately the svnkit had to be >>> removed due to licensing reason. The command line is unreliable and >>> unfortunately the native is a bit hard to configure especially on >>> windows. >>> >>> AFAIK the Silk SVN client 1.10 needs to be installed in advanced mode >>> and >>> select the installation of the native java binding. Then set up the >>> path to >>> that library in the ide. Options - Misc -Version control. >>> >>> If you succeed, that would be the fastest and most reliable solution. >>> >>> On Mon, Oct 14, 2019, 05:37 Eduardo Mosqueira Rey >>> >>> wrote: >>> I am testing NetBeans 11.1 for using in classroom and I recently discovered that a Subversion client is not included in this version and you have to install it. This is an inconvenience that means an extra step and a possibility of doing something wrong in the process. Is it possible to include it out-of-the-box as in previous versions like 8.2.? Being Subversion an Apache problem it should not be very difficult. Best regards, Eduardo Mosqueira >> > > - > 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 > signature.asc Description: OpenPGP digital signature
Re: SVN Client
I have to apologize. I just checked my logs, and it appears that NetBeans 11.1 is falling back to a command line since I have Slik SVN 1.12 installed. According to the logs: INFO [org.netbeans.libs.svnclientadapter]: Javahl client adapter is not available Incompatible JavaHL library loaded. Subversion 1.9.x required. INFO [org.netbeans.modules.subversion.client.SvnClientFactory]: JavaHL not available. Falling back on SvnKit. INFO [org.netbeans.modules.subversion.client.SvnClientFactory]: SvnKit not available. Falling back on commandline. INFO [org.netbeans.modules.subversion]: Commandline client version: 1.11.1 (r1850623) INFO [org.netbeans.modules.subversion.client.SvnClientFactory]: running on commandline I can try finding an archived version of Slik SVN and install that. I need to update TortoiseSVN as well. Both are on my path at present, so NetBeans finds everything. I don't have any special SVN environment variables set. If I find a 1.9.x version of Slik SVN, I'll install and report back to the mailing list. . . . just my two cents /mde/ On 10/15/2019 8:43 AM, Laszlo Kishalmi wrote: > Dear Mark, > > Just a few question: > > 1. Was the IDE automatically recognize the SilkSVN library on startup > without any configuration once it was installed? > > 2. What is the current name (probably path) to the native dll (right now > the IDE tries to locate the libsvnjavahl-1.dll) > > 3. Does the SilkSVN install set an environment variable called > SUBVERSION_NATIVE_LIBRARY? > > 4. What dll-s are installed by SilkSvn > > > I'm asking these as we might need to update/improve the JavaHL detection > on Windows. We did taht in linux adding the Ubuntu path to the search > list and the user experience is much better. We could create a wiki how > to configure the native libraries with screenshots and add a link to the > subversion setting dialog as well. > > Just a reference the native library detection happens in: > > https://github.com/apache/netbeans/blob/master/ide/libs.svnClientAdapter.javahl/src/org/netbeans/libs/svnclientadapter/javahl/JavaHlClientAdapterFactory.java > > > On 10/15/19 12:14 AM, Mark Eggers wrote: >> I use the Slik SVN client with the advanced installation on Windows 10 >> Professional with NetBeans 11.1. >> >> This seems to work reasonably well, although I mostly work with git >> these days. >> >> . . . just my two cents >> /mde/ >> >> On 10/14/2019 9:45 PM, László Kishalmi wrote: >>> Well, NetBeans had support for 3 kind of Subversion clients. Native >>> library, svnkit and command line. Unfortunately the svnkit had to be >>> removed due to licensing reason. The command line is unreliable and >>> unfortunately the native is a bit hard to configure especially on >>> windows. >>> >>> AFAIK the Silk SVN client 1.10 needs to be installed in advanced mode >>> and >>> select the installation of the native java binding. Then set up the >>> path to >>> that library in the ide. Options - Misc -Version control. >>> >>> If you succeed, that would be the fastest and most reliable solution. >>> >>> On Mon, Oct 14, 2019, 05:37 Eduardo Mosqueira Rey >>> >>> wrote: >>> I am testing NetBeans 11.1 for using in classroom and I recently discovered that a Subversion client is not included in this version and you have to install it. This is an inconvenience that means an extra step and a possibility of doing something wrong in the process. Is it possible to include it out-of-the-box as in previous versions like 8.2.? Being Subversion an Apache problem it should not be very difficult. Best regards, Eduardo Mosqueira >> > > - > 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 > signature.asc Description: OpenPGP digital signature
Re: SVN Client
Dear Mark, Just a few question: 1. Was the IDE automatically recognize the SilkSVN library on startup without any configuration once it was installed? 2. What is the current name (probably path) to the native dll (right now the IDE tries to locate the libsvnjavahl-1.dll) 3. Does the SilkSVN install set an environment variable called SUBVERSION_NATIVE_LIBRARY? 4. What dll-s are installed by SilkSvn I'm asking these as we might need to update/improve the JavaHL detection on Windows. We did taht in linux adding the Ubuntu path to the search list and the user experience is much better. We could create a wiki how to configure the native libraries with screenshots and add a link to the subversion setting dialog as well. Just a reference the native library detection happens in: https://github.com/apache/netbeans/blob/master/ide/libs.svnClientAdapter.javahl/src/org/netbeans/libs/svnclientadapter/javahl/JavaHlClientAdapterFactory.java On 10/15/19 12:14 AM, Mark Eggers wrote: I use the Slik SVN client with the advanced installation on Windows 10 Professional with NetBeans 11.1. This seems to work reasonably well, although I mostly work with git these days. . . . just my two cents /mde/ On 10/14/2019 9:45 PM, László Kishalmi wrote: Well, NetBeans had support for 3 kind of Subversion clients. Native library, svnkit and command line. Unfortunately the svnkit had to be removed due to licensing reason. The command line is unreliable and unfortunately the native is a bit hard to configure especially on windows. AFAIK the Silk SVN client 1.10 needs to be installed in advanced mode and select the installation of the native java binding. Then set up the path to that library in the ide. Options - Misc -Version control. If you succeed, that would be the fastest and most reliable solution. On Mon, Oct 14, 2019, 05:37 Eduardo Mosqueira Rey wrote: I am testing NetBeans 11.1 for using in classroom and I recently discovered that a Subversion client is not included in this version and you have to install it. This is an inconvenience that means an extra step and a possibility of doing something wrong in the process. Is it possible to include it out-of-the-box as in previous versions like 8.2.? Being Subversion an Apache problem it should not be very difficult. Best regards, Eduardo Mosqueira - 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: {NetBeans IDE] {JAVA]
On Wed, 9 Oct 2019, 05:13 Lou, wrote: > -Dremote.platform.home=/home/pi/jre/ > ... > '/home/pi/jre//bin/java' > That double slash looks suspicious. Maybe the slashes at the end of the various remote location properties need removing? Best wishes, Neil
Re: SVN Client
I use the Slik SVN client with the advanced installation on Windows 10 Professional with NetBeans 11.1. This seems to work reasonably well, although I mostly work with git these days. . . . just my two cents /mde/ On 10/14/2019 9:45 PM, László Kishalmi wrote: > Well, NetBeans had support for 3 kind of Subversion clients. Native > library, svnkit and command line. Unfortunately the svnkit had to be > removed due to licensing reason. The command line is unreliable and > unfortunately the native is a bit hard to configure especially on windows. > > AFAIK the Silk SVN client 1.10 needs to be installed in advanced mode and > select the installation of the native java binding. Then set up the path to > that library in the ide. Options - Misc -Version control. > > If you succeed, that would be the fastest and most reliable solution. > > On Mon, Oct 14, 2019, 05:37 Eduardo Mosqueira Rey > wrote: > >> I am testing NetBeans 11.1 for using in classroom and I recently >> discovered that a Subversion client is not included in this version and you >> have to install it. >> >> This is an inconvenience that means an extra step and a possibility of >> doing something wrong in the process. >> >> >> >> Is it possible to include it out-of-the-box as in previous versions like >> 8.2.? >> >> Being Subversion an Apache problem it should not be very difficult. >> >> >> >> Best regards, >> >> Eduardo Mosqueira >> >> >> >> >> > signature.asc Description: OpenPGP digital signature