How to make a TopComponent undocked (from editor mode) be "always on top" ?

2023-12-29 Thread Jerome Lelasseux
If I undock a TopComponent from navigator or properties mode, the floating 
window will be "always on top".
If I do the same for a TopCompoent in editor mode, it's not always on top. How 
can I get this editor window be "always on top" as wel ?  I searched for a 
property in the .wsmode files, but could not find any... 

Jerome


Re: Form designer issue with Maven NB app

2023-12-04 Thread Jerome Lelasseux
 Found the problem:  I changed some package base names while doing the Maven 
migration, and forgot to process the .form files accordingly.  Silly me



Le dimanche 3 décembre 2023 à 21:15:09 UTC+1, Jerome Lelasseux 
 a écrit :  
 
 Hi,
I migrated my NB app from Ant to Maven, when I run the app everything is fine. 
But in the IDE when I switch to the "Design" view of a graphical component 
(JDialog, JPanel ...) I get 2 problems with the form editor:

1/ form editor shows text components with the string resource property key 
instead of the property value. Eg my OK button shows "" instead 
of "OK". 

Bundle.properties files location and content must be fine since strings are 
displayed OK when I run the program.


2/ when the form needs a custom graphical component from another module, I get 
an "Error in loading component xxx. This usually happens when the class is not 
compiled or not part of the project libraries" 

I know this error, and it was easily fixed when I was using Ant. But here I the 
module is indeed compiled and is already a direct dependency, so why the error 
? 


Is it the .form files that need to be updated in some way when using Maven ? 


Jerome




  

Form designer issue with Maven NB app

2023-12-03 Thread Jerome Lelasseux
Hi,
I migrated my NB app from Ant to Maven, when I run the app everything is fine. 
But in the IDE when I switch to the "Design" view of a graphical component 
(JDialog, JPanel ...) I get 2 problems with the form editor:

1/ form editor shows text components with the string resource property key 
instead of the property value. Eg my OK button shows "" instead 
of "OK". 

Bundle.properties files location and content must be fine since strings are 
displayed OK when I run the program.


2/ when the form needs a custom graphical component from another module, I get 
an "Error in loading component xxx. This usually happens when the class is not 
compiled or not part of the project libraries" 

I know this error, and it was easily fixed when I was using Ant. But here I the 
module is indeed compiled and is already a direct dependency, so why the error 
? 


Is it the .form files that need to be updated in some way when using Maven ? 


Jerome






Re: Maven + NB platform app variants

2023-11-24 Thread Jerome Lelasseux
 Thanks Patrick, that helps

Le vendredi 24 novembre 2023 à 17:04:55 UTC+1, Patrik Karlström 
 a écrit :  
 
 I asked the very same thing earlier on this list and I ended up using standard 
maven profiles.It's good for excluding modules too, and adding closed source 
modules to an open source pom. The reference will be visible but not the 
content.
Note that you have to select the correct profile in both parent and application 
project if used.If you would like to use more than one profile you can add a 
custom with multiple profiles, or add it to your maven command with -P profile1 
-P profile2.

Hopefully you can find some information 
here:https://github.com/trixon/mapton/blob/00e194cdae8fa7f4892298af8997c7e37ae6597a/pom.xml#L567https://github.com/trixon/mapton/blob/00e194cdae8fa7f4892298af8997c7e37ae6597a/application/pom.xml#L336
As you can see there is an unstable profile too for the brave. :)
/Patrik



Den ons 22 nov. 2023 kl 21:25 skrev Jerome Lelasseux 
:

Hello,
I have 2 variants A and B of my NB platform app. B is just variant A + 2 
additional modules and some branding.

With Ant it was easy to setup. B only contained the 2 extra modules+branding 
and I just had to update cluster.path in B's platform.properties to also 
include variant A's cluster:

cluster.path=${nbplatform.active.dir}/platform:../variantA/build/cluster

I ported the app to Maven, but it's not clear to me how can achieve the same 
mechanism with Maven. Any recommandation? 


Jerome


  

Maven + NB platform app variants

2023-11-22 Thread Jerome Lelasseux
Hello,
I have 2 variants A and B of my NB platform app. B is just variant A + 2 
additional modules and some branding.

With Ant it was easy to setup. B only contained the 2 extra modules+branding 
and I just had to update cluster.path in B's platform.properties to also 
include variant A's cluster:

cluster.path=${nbplatform.active.dir}/platform:../variantA/build/cluster

I ported the app to Maven, but it's not clear to me how can achieve the same 
mechanism with Maven. Any recommandation? 


Jerome



Re: Why Maven build app always recompiles ?

2023-06-02 Thread Jerome Lelasseux
 Thank you Martin that was my problem !   Switching OFF 
useIncrementalCompilation did the trick, it's really counter-intuitive...



Le lundi 22 mai 2023 à 23:17:38 UTC+2, Martin Desruisseaux 
 a écrit :  
 
  
Hello Jerome
 
 
Le 22/05/2023 à 22:53, Jerome Lelasseux a écrit :
 
 
 

On my NB platform app, if I open a single module and build it, it recompiles 
only when source files are modified, as expected. But when I run Build on the 
parent project, maven always recompiles all modules. Is it normal ?

 I do not know if this is related to the issue that you are observing, but the 
maven-compiler-plugin has a weird behavior where we actually need to disable 
incremental build in order to get incremental build. The issue is described 
here: 
https://issues.apache.org/jira/browse/MCOMPILER-209
 
    Martin
 

 
   

Re: Distribution of a NB app with a native library ?

2023-06-02 Thread Jerome Lelasseux
 Thanks for the feedback


Le jeudi 1 juin 2023 à 05:54:50 UTC+2, Michael Bien  a 
écrit :  
 
  if this isn't a self contained lib on linux and it can't be easily shipped 
with your application your best chance is to simply ask the user to install it 
if your app can't find it. 
  Seems to be a common lib and available in most package managers. 
https://github.com/FluidSynth/fluidsynth/wiki/Download#distributions
  
  -mbien
  
  
  On 31.05.23 23:11, Jerome Lelasseux wrote:
  
 
 Please forgive me it's not a pure Netbeans question.
  
  The next version of my Netbeans platform music app uses a native library, the 
software synth Fluidsynth 
https://github.com/FluidSynth/fluidsynth/wiki/Download which is available on 
Win/Linux/Mac. 
  
  Would you have recommandations on the best way to package my app to continue 
distribution for Win/Linux/Mac ? ("best"=a trade-off between minimize work for 
me and end-user acceptability). 
  
  What I understood so far: 
  Simpler for me is to bundle the native lib plus its few dependencies into the 
package. I did it on Windows, I can still use the NB packaging feature and it 
works OK.
  
  But is it possible to do this for Linux ? When I checked on Ubuntu the 
fluidsynth lib dependencies using ldd, I found tons of libraries I would need 
to embed, and I guess they would work only for Ubuntu. I don't easily have 
access to a Mac, so not sure for Mac. 
  Another option is to create a package for my app (e.g.  deb Linux and brew 
for Mac) which declares a dependency so that the package manager takes care 
about installing fluidsynth. But there are many different package managers, not 
for all distros, same for Mac, with some restrictions... 
  I lack some experience on Linux and Mac and I'm lost. Any help welcome.
  
  Thanks  Jerome
  
  
  
  
  
  
  
  
  
  
   

 
   

Distribution of a NB app with a native library ?

2023-05-31 Thread Jerome Lelasseux
Please forgive me it's not a pure Netbeans question.

The next version of my Netbeans platform music app uses a native library, the 
software synth Fluidsynth 
https://github.com/FluidSynth/fluidsynth/wiki/Download which is available on 
Win/Linux/Mac. 

Would you have recommandations on the best way to package my app to continue 
distribution for Win/Linux/Mac ? ("best"=a trade-off between minimize work for 
me and end-user acceptability). 

What I understood so far:
Simpler for me is to bundle the native lib plus its few dependencies into the 
package. I did it on Windows, I can still use the NB packaging feature and it 
works OK.

But is it possible to do this for Linux ? When I checked on Ubuntu the 
fluidsynth lib dependencies using ldd, I found tons of libraries I would need 
to embed, and I guess they would work only for Ubuntu. I don't easily have 
access to a Mac, so not sure for Mac.
Another option is to create a package for my app (e.g.  deb Linux and brew for 
Mac) which declares a dependency so that the package manager takes care about 
installing fluidsynth. But there are many different package managers, not for 
all distros, same for Mac, with some restrictions...
I lack some experience on Linux and Mac and I'm lost. Any help welcome.

Thanks  Jerome












Re: Why Maven build app always recompiles ?

2023-05-22 Thread Jerome Lelasseux
I did some more testing and discovered mvn -X...

So I used mvn -X compile and mvn -X install to check the differences (it seems 
that the IDE 'Build' action uses the install goal).

I found that only with the install goal the recompilation of my module is 
triggered by this dependency:
[DEBUG] New dependency detected: 
D:\JeromeDocs\NetBeansProjects\JJazzLab\modules\Guava\target\org-jjazz-guava-1.0-SNAPSHOT.jar

This is just a library wrapper module for the Guava lib, which is built first 
by the reactor plugin. Guava is a dependency of most of the modules, hence the 
general recompilation. 

So how should I change the my guava module (pom below) to avoid this 
recompilation with the install goal ?  



http://maven.apache.org/POM/4.0.0; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd;>
    4.0.0
    
    org.jjazzlab
    jjazzlab-parent
    1.0-SNAPSHOT
    ../../pom.xml
    
    org-jjazz-guava
    Guava
    nbm
    
    
    
    org.apache.netbeans.utilities
    nbm-maven-plugin
    
      
    
com.google.common.annotations
    com.google.common.base
    
com.google.common.base.internal
    com.google.common.cache
    com.google.common.collect
    com.google.common.escape
    
com.google.common.eventbus
    com.google.common.graph
    com.google.common.hash
    com.google.common.html
    com.google.common.io
    com.google.common.math
    com.google.common.net
    
com.google.common.primitives
    com.google.common.reflect
    
com.google.common.util.concurrent
    
com.google.common.util.concurrent.internal
    com.google.common.xml
    
com.google.thirdparty.publicsuffix
    
    
    true
    
    
    org.apache.maven.plugins
    maven-jar-plugin
    
    
    
${project.build.outputDirectory}/META-INF/MANIFEST.MF
    
    
    
    
    
    
    
    com.google.guava
    guava
    23.6-jre
    
    
    
    UTF-8
    




Jerome



Le lundi 22 mai 2023 à 11:48:50 UTC+2, Eric Barboni  a 
écrit :  
 
 
Hi,

  

Maven will build all children, but should be faster on the compilation plugin 
part you should have something like that :

Nothing to compile - all classes are up to date.

  

Best Regards

Eric

  

De : Jerome Lelasseux  
Envoyé : vendredi 19 mai 2023 21:04
À : NetBeans Mailing List 
Objet : Why Maven build app always recompiles ?

  

On my NB platform app, if I open a single module and build it, it recompiles 
only when source files are modified, as expected.

  

But when I run Build on the parent project, maven always recompiles all 
modules. Is it normal ?

  

Jerome

  

App is here https://github.com/jjazzboss/JJazzLabTemp

  

  
  

Re: Why Maven build app always recompiles ?

2023-05-22 Thread Jerome Lelasseux
 Eric,
Sorry I was not clear. I expected the behavior you describe but it's not the 
case in my project:

If I build a child module twice in a row, the 2nd time it will say "nothing to 
compile", as expected.

But if I build the parent project (all modules) twice, it always says "changes 
detected, recompiling" for each child module. Same if I build a single child 
module and then build the parent project, it will detect some changes and 
recompile in that module.

Jerome


Le lundi 22 mai 2023 à 11:48:50 UTC+2, Eric Barboni  a 
écrit :  
 
 
Hi,

  

Maven will build all children, but should be faster on the compilation plugin 
part you should have something like that :

Nothing to compile - all classes are up to date.

  

Best Regards

Eric

  

De : Jerome Lelasseux  
Envoyé : vendredi 19 mai 2023 21:04
À : NetBeans Mailing List 
Objet : Why Maven build app always recompiles ?

  

On my NB platform app, if I open a single module and build it, it recompiles 
only when source files are modified, as expected.

  

But when I run Build on the parent project, maven always recompiles all 
modules. Is it normal ?

  

Jerome

  

App is here https://github.com/jjazzboss/JJazzLabTemp

  

  
  

Ant > Maven migration script

2023-05-20 Thread Jerome Lelasseux
Below is a script that automates many of the Ant>Maven migration tasks for a NB 
platform app.

I completed the migration of the build process, now I need to work on the 
installers/packaging. I discovered nbpackage, I'll have a look at it.

Jerome


GitHub - jjazzboss/NbMavenize: A script to migrate an Ant-based Netbeans 
platform application to Maven

| 
| 
| 
|  |  |

 |

 |
| 
|  | 
GitHub - jjazzboss/NbMavenize: A script to migrate an Ant-based Netbeans...

A script to migrate an Ant-based Netbeans platform application to Maven - 
GitHub - jjazzboss/NbMavenize: A scrip...
 |

 |

 |






Re: Migrating NB platform app to maven

2023-05-20 Thread Jerome Lelasseux
 I answer my own question about the equivalent in Maven of the Ant 
release/modules directory.
Use the nbmResources parameter of the nbm goal of the nbm plugin.  
https://bits.netbeans.org/mavenutilities/nbm-maven-plugin/nbm-maven-plugin/nbm-mojo.html#nbmResources

Jerome



Le jeudi 18 mai 2023 à 23:17:59 UTC+2, Jerome Lelasseux 
 a écrit :  
 
  What is the recommended way to bundle native libs in a module with Maven ? 

With Ant I just put the libs in /release/modules/xx and I was able to 
find them via InstalledFileLocator.getDefault().locate().
Jerome
PS: I finally managed to run my app with Maven. I'll publish my migration 
script soon, it was a good way to start learning Maven



Le mardi 16 mai 2023 à 18:52:55 UTC+2, Jerome Lelasseux 
 a écrit :  
 
  Thank you  Eric, indeed my migration script mixed up . and -, and I also 
spotted some wrong ArtefactId references... I'll fix it! 

Jerome



Le mardi 16 mai 2023 à 14:56:06 UTC+2, Eric Barboni  a 
écrit :  
 
 Hi Jerome,

It seems that your artefactID from NetBeans are wrong

Should be org-openide-loaders and not org.openide.loader

Not sure how your pom is configured, but for artefact from NetBeans remove the 
explicit jar type.

Typical dep looks like that not less not more (.. infact version could be set 
by bom setup to save time in upgrade to anticipated RELEASE180 :p)

            org.netbeans.api
            org-openide-loaders
            RELEASE170
        


Best Regards
Eric

-Message d'origine-
De : Tom Eicher  
Envoyé : mardi 16 mai 2023 13:08
À : NetBeans Mailing List 
Objet : Re: Migrating NB platform app to maven


Hi Jerome, I would be really interested in this script. Cheers Tom.

Am 16.05.23 um 00:01 schrieb Jerome Lelasseux:
> PS: I used a bash script to automate the migration process as much as 
> possible. When I'm done I'll be happy to share it -there is not much 
> info on the web...


-
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

  

Why Maven build app always recompiles ?

2023-05-19 Thread Jerome Lelasseux
On my NB platform app, if I open a single module and build it, it recompiles 
only when source files are modified, as expected.

But when I run Build on the parent project, maven always recompiles all 
modules. Is it normal ?
Jerome
App is here https://github.com/jjazzboss/JJazzLabTemp




Re: Migrating NB platform app to maven

2023-05-18 Thread Jerome Lelasseux
 What is the recommended way to bundle native libs in a module with Maven ? 

With Ant I just put the libs in /release/modules/xx and I was able to 
find them via InstalledFileLocator.getDefault().locate().
Jerome
PS: I finally managed to run my app with Maven. I'll publish my migration 
script soon, it was a good way to start learning Maven



Le mardi 16 mai 2023 à 18:52:55 UTC+2, Jerome Lelasseux 
 a écrit :  
 
  Thank you  Eric, indeed my migration script mixed up . and -, and I also 
spotted some wrong ArtefactId references... I'll fix it! 

Jerome



Le mardi 16 mai 2023 à 14:56:06 UTC+2, Eric Barboni  a 
écrit :  
 
 Hi Jerome,

It seems that your artefactID from NetBeans are wrong

Should be org-openide-loaders and not org.openide.loader

Not sure how your pom is configured, but for artefact from NetBeans remove the 
explicit jar type.

Typical dep looks like that not less not more (.. infact version could be set 
by bom setup to save time in upgrade to anticipated RELEASE180 :p)

            org.netbeans.api
            org-openide-loaders
            RELEASE170
        


Best Regards
Eric

-Message d'origine-
De : Tom Eicher  
Envoyé : mardi 16 mai 2023 13:08
À : NetBeans Mailing List 
Objet : Re: Migrating NB platform app to maven


Hi Jerome, I would be really interested in this script. Cheers Tom.

Am 16.05.23 um 00:01 schrieb Jerome Lelasseux:
> PS: I used a bash script to automate the migration process as much as 
> possible. When I'm done I'll be happy to share it -there is not much 
> info on the web...


-
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: Migrating NB platform app to maven

2023-05-16 Thread Jerome Lelasseux
 Thank you  Eric, indeed my migration script mixed up . and -, and I also 
spotted some wrong ArtefactId references... I'll fix it! 

Jerome



Le mardi 16 mai 2023 à 14:56:06 UTC+2, Eric Barboni  a 
écrit :  
 
 Hi Jerome,

It seems that your artefactID from NetBeans are wrong

Should be org-openide-loaders and not org.openide.loader

Not sure how your pom is configured, but for artefact from NetBeans remove the 
explicit jar type.

Typical dep looks like that not less not more (.. infact version could be set 
by bom setup to save time in upgrade to anticipated RELEASE180 :p)

            org.netbeans.api
            org-openide-loaders
            RELEASE170
        


Best Regards
Eric

-Message d'origine-
De : Tom Eicher  
Envoyé : mardi 16 mai 2023 13:08
À : NetBeans Mailing List 
Objet : Re: Migrating NB platform app to maven


Hi Jerome, I would be really interested in this script. Cheers Tom.

Am 16.05.23 um 00:01 schrieb Jerome Lelasseux:
> PS: I used a bash script to automate the migration process as much as 
> possible. When I'm done I'll be happy to share it -there is not much 
> info on the web...


-
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: Migrating NB platform app to maven

2023-05-15 Thread Jerome Lelasseux
rade  SKIPPED
XOM  SKIPPED
Xstream  SKIPPED
Startup  SKIPPED
Analytics .. SKIPPED
Biab ... SKIPPED
Harmony  SKIPPED
ChordLeadSheet . SKIPPED
Options  SKIPPED
Quantizer .. SKIPPED
RhythmDatabase . SKIPPED
CL_Editor .. SKIPPED
ColorSetManager  SKIPPED
ItemRenderer ... SKIPPED
UIUtilities  SKIPPED
UndoManager  SKIPPED
Utilities .. SKIPPED
Diff ... SKIPPED
FluidSynthEmbeddedSynth  SKIPPED
FluidSynthJava . SKIPPED
YamJJazz ... SKIPPED
YjzCreator . SKIPPED
jjazzlab-app ... SKIPPED
BaseSimple . SKIPPED

BUILD FAILURE

Total time:  4.129 s
Finished at: 2023-05-16T00:01:34+02:00

Failed to execute goal on project Base: Could not resolve dependencies for 
project org.jjazz:Base:nbm:1.0-SNAPSHOT: The following artifacts could not be 
resolved: org.jjazz:org.jjazz.filedirectorymanager:jar:1.0-SNAPSHOT, 
org.jjazz:org.jjazz.utilities:jar:1.0-SNAPSHOT, 
org.netbeans.api:org.netbeans.modules.autoupdate.services:jar:RELEASE170, 
org.netbeans.api:org.openide.actions:jar:RELEASE170, 
org.netbeans.api:org.openide.dialogs:jar:RELEASE170, 
org.netbeans.api:org.openide.filesystems:jar:RELEASE170, 
org.netbeans.api:org.openide.io:jar:RELEASE170, 
org.netbeans.api:org.openide.loaders:jar:RELEASE170, 
org.netbeans.api:org.openide.modules:jar:RELEASE170: Could not find artifact 
org.jjazz:org.jjazz.filedirectorymanager:jar:1.0-SNAPSHOT -> [Help 1]



Le lundi 15 mai 2023 à 23:59:24 UTC+2, Neil C Smith  
a écrit :  
 
 

On Mon, 15 May 2023, 22:52 Jerome Lelasseux,  
wrote:

 Mark,
 > you should publish any local artifacts to your local maven repository.  
Yes. But publish a local artifact for modula A means I need to build module A, 
right ? module A depends on module B which depends on module C etc. So when I 
build module A it fails because module B is not published, etc. So I should 
start building module C, then B then A. But I have 70 interconnected modules... 
Do I need to figure out the dependency tree myself ? When using Ant for the 
same app I never had to think about build order.

Have you done a clean and build of the parent project?
Neil
  

Re: Migrating NB platform app to maven

2023-05-15 Thread Jerome Lelasseux
 Mark,
 > you should publish any local artifacts to your local maven repository.  
Yes. But publish a local artifact for modula A means I need to build module A, 
right ? module A depends on module B which depends on module C etc. So when I 
build module A it fails because module B is not published, etc. So I should 
start building module C, then B then A. But I have 70 interconnected modules... 
Do I need to figure out the dependency tree myself ? When using Ant for the 
same app I never had to think about build order.

In my ~/.m2 repository, I see the external dependencies and only my modules 
which have no inter-modules dependency.
Jerome


Le lundi 15 mai 2023 à 23:22:53 UTC+2, Mark A. Flacy 
 a écrit :  
 
 Greetings,

Ant never had an automatic way to pull in dependencies (well, perhaps later 
versions of Ant did but I am ignorant of such updates).  Maven and gradle, 
however, know how to query external repositories of information to pull in 
such dependencies.

Maven and gradle ALSO know that you should cache such artifacts locally as 
much as possible.

In your case, you should publish any local artifacts to your local maven 
repository.  (Look in the ~/.m2/repository/ directory structure to see what's 
cached.)

-- 
Mark A. Flacy
mfl...@verizon.net

On Monday, May 15, 2023 3:26:03 PM CDT Jerome Lelasseux wrote:
> I try to migrate my Ant-based NB platform app (~70 modules) to Maven, but
> I'm new to Maven, so forgive the newbie question.
> 
> I created a new empty NB platform app with a sample module from the NB
> wizard, then I built from there. I used https://github.com/gephi/gephi  on
> GitHub as a kind of model. So now I have my parent project, the app
> project, the branding project and all my modules. I checked the various
> pom.xml. Running "mvn validate" is a success, and the projects structure in
> the IDE is OK.
> 
> BUT... I can't build ! Using "BUild with dependencies" on the app project, I
> get error messages like:
> 
> The POM for org.jjazz:org.jjazz.utilities:jar:1.0-SNAPSHOT is missing, no
> dependency information available The POM for
> org.netbeans.api:org.openide.actions:jar:RELEASE170 is missing, no
> dependency information available...
> 
> Using the "Solve project problems" menu, I understood that the dependencies
> are not found because they are not available in my local repository. But to
> be in the repository I need to compile the module, which depends on other
> modules etc... The only modules I was able to compile are the few ones with
> no dependencies at all, so only those were copied in the local repository.
> 
> I expected Maven (or rather the reactor plugin) to parse the module
> dependency tree and infer the appropriate compilation order, like Ant
> did... What do I miss ?
> 
> 
> Jerome
> PS: I used a bash script to automate the migration process as much as
> possible. When I'm done I'll be happy to share it -there is not much info
> on the web...





-
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: Migrating NB platform app to maven

2023-05-15 Thread Jerome Lelasseux
d}
    UndoManager
    ${project.version}
    
    
    ${project.groupId}
    Utilities
    ${project.version}
    
    
    ${project.groupId}
    Diff
    ${project.version}
    
    
    ${project.groupId}
    FluidSynthEmbeddedSynth
    ${project.version}
    
    
    ${project.groupId}
    FluidSynthJava
    ${project.version}
    
    
    ${project.groupId}
    YamJJazz
    ${project.version}
    
    
    ${project.groupId}
    YjzCreator
    ${project.version}
    
    
    
    
    
    org.apache.netbeans.utilities
    nbm-maven-plugin
    
    
    
    org.apache.maven.plugins
    maven-surefire-plugin
    2.12.2
    
    
    ${all.clusters}
    ${brandingToken}
    
    
    
    
    
    
    
    deployment
    
    
    
    org.apache.netbeans.utilities
    nbm-maven-plugin
    
    
    extra
    
    autoupdate
    webstart-app
    build-installers
    
    
    
    
    
    
    
    




=modules/ActiveSong/pom.xml


http://maven.apache.org/POM/4.0.0; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd;>
    4.0.0
    
    org.jjazz
    jjazzlab-parent
    1.0-SNAPSHOT
    ../../pom.xml
    
    ActiveSong
    nbm
    
    
    
    org.apache.netbeans.utilities
    nbm-maven-plugin
    
      
    org.jjazz.activesong.api
    
    
    true
    
    
    org.apache.maven.plugins
    maven-jar-plugin
    
    
    
${project.build.outputDirectory}/META-INF/MANIFEST.MF
    
    
    
    
    
    
    
    org.netbeans.api
    org-netbeans-api-annotations-common
    ${netbeans.version}
    
    
    org.netbeans.api
    org-openide-windows
    ${netbeans.version}
    
    
    org.netbeans.api
    org-openide-util
    ${netbeans.version}
    
    
    org.netbeans.api
    org-openide-util-ui
    ${netbeans.version}
    
    
    org.netbeans.api
    org-openide-util-lookup
    ${netbeans.version}
    
    
    org.netbeans.api
    org-openide-awt
    ${netbeans.version}
    
    
    org.netbeans.api
    org-netbeans-modules-settings
    ${netbeans.version}
        
     
    ${project.groupId} 
    org.jjazz.chordleadsheet 
    ${project.version}  
      
     
    ${project.groupId} 
    org.jjazz.midi 
    ${project.version}  
      
     
    ${project.groupId} 
    org.jjazz.midimix 
    ${project.version}  
      
     
    ${project.groupId} 
    org.jjazz.musiccontrol 
    ${project.version}  
      
     
    ${project.groupId} 
    org.jjazz.outputsynth 
    ${project.version}  
      
     
    ${project.groupId} 
    org.jjazz.rhythm 
    ${project.version}  
      
     
    ${project.groupId} 
    org.jjazz.rhythmmusicgeneration 
    ${project.version}  
      
     
    ${project.groupId} 
    org.jjazz.song 
    ${project.version}  
      
     
    ${project.groupId} 
    org.jjazz.songcontext 
    ${project.version}  
      
     
    ${project.groupId} 
    org.jjazz.songstructure 
    ${project.version}  
      
     
    ${project.groupId} 
    org.jjazz.utilities 
    ${project.version}  
     
    
    
    UTF-8
    



Le lundi 15 mai 2023 à 22:40:56 UTC+2, Greenberg, Gary 
 a écrit :  
 
 
You should provide your POM file here. Than we’ll be able to help you.
 
  

Migrating NB platform app to maven

2023-05-15 Thread Jerome Lelasseux
I try to migrate my Ant-based NB platform app (~70 modules) to Maven, but I'm 
new to Maven, so forgive the newbie question.

I created a new empty NB platform app with a sample module from the NB wizard, 
then I built from there. I used https://github.com/gephi/gephi  on GitHub as a 
kind of model.
So now I have my parent project, the app project, the branding project and all 
my modules. I checked the various pom.xml. Running "mvn validate" is a success, 
and the projects structure in the IDE is OK.

BUT... I can't build ! Using "BUild with dependencies" on the app project, I 
get error messages like:

The POM for org.jjazz:org.jjazz.utilities:jar:1.0-SNAPSHOT is missing, no 
dependency information available
The POM for org.netbeans.api:org.openide.actions:jar:RELEASE170 is missing, no 
dependency information available...

Using the "Solve project problems" menu, I understood that the dependencies are 
not found because they are not available in my local repository. But to be in 
the repository I need to compile the module, which depends on other modules 
etc... The only modules I was able to compile are the few ones with no 
dependencies at all, so only those were copied in the local repository.

I expected Maven (or rather the reactor plugin) to parse the module dependency 
tree and infer the appropriate compilation order, like Ant did... 
What do I miss ? 


Jerome
PS: I used a bash script to automate the migration process as much as possible. 
When I'm done I'll be happy to share it -there is not much info on the web...







Re: Git branch display

2023-03-25 Thread Jerome Lelasseux
 Not exactly what you ask, but the project tooltip shows the current branch, as 
shown below



Jerome


Le samedi 25 mars 2023 à 18:15:22 UTC+1, Admin @ Goodun 
 a écrit :  
 
 Is there a way of getting NetBeans to (always) display the git branch I
currently am switched to?

Mark
(v17)

-
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

How to programmatically access to the TopComponent tab ?

2023-03-17 Thread Jerome Lelasseux
Hi,
I have several TopComponents opened in editor mode. I'd like to be able to drag 
an item from the content of TopComponent TC1 to TopComponent TC2. I can make it 
work (using the Swing DnD framework) if TC1 or TC2 is undocked.

But if they are both docked, how to do it ? 

Setting my own TransferHandler on the target TopComponent does not work in this 
case, I assume because the "tab" part does not inherit the handler. So how to 
access the TopComponent "tab" part (I assume  JComponent) ?
Thanks!






TopComponent position in mode

2023-01-26 Thread Jerome Lelasseux
Is there a way to programmatically add a (non-singleton) TopComponent at a 
specified index in a mode ? 

I know @TopComponent.Registration(...position)  but it only works for singleton 
component. And WindowManager.topComponentOpenAtTabPosition() is protected!
ThanksJerome


Floating TopComponent without tab

2023-01-18 Thread Jerome Lelasseux
Hi, 

I use a TopComponent as a Midi editor window. There can be several Midi editor 
windows. 

I can float a Midi editor TopComponent using 
WindowManager.setTopComponentFloating(), but it is shown as a tab 
("NewSong-User1") within an enclosing window, as shown in the picture below.


I'd like that each MidiEditor TopComponent be a distinct floating window (so no 
need for tab system). Is it possible ?   

Side question, how can I access the enclosing window of the floating 
TopComponent to call Window.setAlwaysOnTop(true) on it ? 


Jerome


-
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 API to install plugin from local .nbm file ?

2022-04-28 Thread Jerome Lelasseux
 I think I found the doc I was looking for: 
https://bits.netbeans.org/dev/javadoc/org-netbeans-modules-autoupdate-services/overview-summary.html#install-new-functionality
 and 
https://bits.netbeans.org/dev/javadoc/org-netbeans-modules-autoupdate-services/org/netbeans/api/autoupdate/OperationContainer.html
 Now I need to test it...




Le jeudi 28 avril 2022, 13:35:18 UTC+2, Jerome Lelasseux 
 a écrit :  
 
  Yes, but without using the Plugins dialog.


Le jeudi 28 avril 2022, 01:00:39 UTC+2, Laszlo Kishalmi 
 a écrit :  
 
  
You mean: Tools > Plugins > Downloaded > Add Plugins... ?
 
 On 4/27/22 14:26, Jerome Lelasseux wrote:
  
 
 Is there a Netbeans API to install a plugin from a local .nbm file ?    I know 
that the feature is supported (eg autoupdate), but I can't find the appropriate 
API...
  
  The scenario is that a user bought and downloaded a plugin (.nbm file from a 
3rd-party web site), and in my NB platform app he would select an "upgrade" 
menu entry, then select the .nbm file and voila. 
  
  
  
  
  
  
  
   

Re: Netbeans API to install plugin from local .nbm file ?

2022-04-28 Thread Jerome Lelasseux
 Yes, but without using the Plugins dialog.


Le jeudi 28 avril 2022, 01:00:39 UTC+2, Laszlo Kishalmi 
 a écrit :  
 
  
You mean: Tools > Plugins > Downloaded > Add Plugins... ?
 
 On 4/27/22 14:26, Jerome Lelasseux wrote:
  
 
 Is there a Netbeans API to install a plugin from a local .nbm file ?    I know 
that the feature is supported (eg autoupdate), but I can't find the appropriate 
API...
  
  The scenario is that a user bought and downloaded a plugin (.nbm file from a 
3rd-party web site), and in my NB platform app he would select an "upgrade" 
menu entry, then select the .nbm file and voila. 
  
  
  
  
  
  
  
 

Netbeans API to install plugin from local .nbm file ?

2022-04-27 Thread Jerome Lelasseux
Is there a Netbeans API to install a plugin from a local .nbm file ?    I know 
that the feature is supported (eg autoupdate), but I can't find the appropriate 
API...

The scenario is that a user bought and downloaded a plugin (.nbm file from a 
3rd-party web site), and in my NB platform app he would select an "upgrade" 
menu entry, then select the .nbm file and voila.









Problem enabling JDK17 jdk.incubator.foreign on NB13

2022-04-04 Thread Jerome Lelasseux
I have a Netbeans module which uses jdk.incubator.foreign from JDK17. It does 
compile OK when I add "--add-modules=jdk.incubator.foreign" in the module 
properties/Compiling options, but the NB editor still marks import statements 
with errors:

import jdk.incubator.foreign.CLinker;   is marked "package is not visible. 
Package jdk.incubator.foreign is declared in module jdk.incubator.foreign, 
which is not in the module graph".

Note that editor does not mark an error when I use the class in the code (eg. 
"var cLinkerInstance = CLinker.getInstance();"), but autocomplete is not 
available on the class, which is really not convenient.


Thanks for your help.Jerome




TopComponent question

2022-01-28 Thread Jerome Lelasseux
Hi, In my NB platform application I use annotations to have a unique 
TopComponent always opened at startup and not closable by user:
...
@TopComponent.Description(    preferredID = "MixConsoleTopComponent",
    persistenceType = TopComponent.PERSISTENCE_ALWAYS    
)
@TopComponent.Registration(mode = "explorer", openAtStartup = true, position = 
1)
...public final class MixConsoleTopComponent extends TopComponent{
    public MixConsoleTopComponent()
    {        ...
    putClientProperty(TopComponent.PROP_CLOSING_DISABLED, 
Boolean.TRUE);    ...}
...

It works well 99% of the time.
But if it happens there is a bug in the MixConsoleTopComponent constructor, the 
TopComponent is not opened, and when user leaves the application the window 
configuration (WindowManager.wswmgr file) is saved with no 
MixConsoleTopComponent. When user restarts the app, even if the bug is gone, 
the MixConsoleTopComponent will not appear anymore.
Is there a simple way to solve this ? 


Re : Re: Happy holidays all

2021-12-24 Thread Jerome Lelasseux
And another thank you for all the Apache Netbeans team.
Jerome


Envoyé depuis Yahoo Mail pour iPhone


Le vendredi, décembre 24, 2021, 6:47 PM, jose.rodrig...@cenpalab.cu a écrit :

December 24, 2021 12:23 PM, "Geertjan Wielenga"  wrote:

> Hi all,
> 
> Happy holidays all. :-)
> 
> It’s been another great year of quarterly Apache NetBeans releases. In the 
> coming year, we’re
> looking forward to and can expect:
> 


Thanks Geertjan and likewise to you and all here on the list.

I would like to also take the time to thank all those involved with the Apache 
Netbeans project for the good work that you put into my goto IDE for java. 
Specially since I had to step back from participating as a tester a while back 
due to my own work load.

Regards,
Joe1962


-
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: The Options ruban remains white with DarkLaf

2021-11-19 Thread Jerome Lelasseux
 Adding the 2nd non-API module solved the problem, thanks Neil!
This really needs to be documented somewhere. I could add an entry "How to 
enable FlatLaf in your NB platform application?" in the Apache Netbeans FAQ. 
But what is the process to do this ? 

Jerome


Le jeudi 18 novembre 2021, 21:14:22 UTC+1, Neil C Smith 
 a écrit :  
 
 On Thu, 18 Nov 2021 at 19:56, Jerome Lelasseux  wrote:
> The FlatLaf module was already a dependency.

You might need to make sure you have both FlatLaf modules as
dependencies.  At some point I added the non-API one in to fix
something, but I can't remember if this was it.  If you're using the
Ant build, you can find it by selecting to show non-API modules.

> FYI I submitted an issue on the FlatLaf GitHub as well.

This is unlikely a bug in FlatLaf.  It seems to be a bug where the
FlatLaf customs in the IDE module are not being triggered correctly.
eg. 
https://github.com/apache/netbeans/blob/master/platform/o.n.swing.laf.flatlaf/src/org/netbeans/swing/laf/flatlaf/FlatLFCustoms.java#L59

Maybe stick a breakpoint on that, launch with the debugger and see
what's happening.

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: The Options ruban remains white with DarkLaf

2021-11-18 Thread Jerome Lelasseux
 Thank you Neil. 

I removed the 2nd line and L is installed OK. But the Options ribbon remains 
white.  The FlatLaf module was already a dependency.

FYI I submitted an issue on the FlatLaf GitHub as well.


Le lundi 15 novembre 2021, 23:43:23 UTC+1, Neil C Smith 
 a écrit :  
 
 

On Mon, 15 Nov 2021, 21:15 Jerome Lelasseux,  wrote:

 Sorry I meant FlatLaf Dark.
I use the following in ModuleInstall::validate()

NbPreferences.root().node("laf").put("laf", "com.formdev.flatlaf.FlatDarkLaf");
UIManager.installLookAndFeel(new UIManager.LookAndFeelInfo("FlatLaf Dark", 
FlatDarkLaf.class.getName()));

Try removing the second line. Leave the FlatLaf module to install the look and 
feel. If that's not enough also add dependencies in that module on the FlatLaf 
modules. See eg. 
https://github.com/praxis-live/praxis-live/blob/master/praxis.live.laf/src/org/praxislive/ide/laf/Installer.java#L47
 This works fine for me.
Best wishes,
Neil


  

Re: The Options ruban remains white with DarkLaf

2021-11-15 Thread Jerome Lelasseux
 I checked the PR code and I think I found the issue. 
nb.options.categories.tabPanelBackground color property seems to be not 
defined, so it returns white.


netbeans/platform/options.api/src/org/netbeans/modules/options/OptionsPanel.java:
 private Color getTabPanelBackground() {
Color uiColor = 
UIManager.getColor("nb.options.categories.tabPanelBackground"); //NOI18N
if (uiColor != null) {
return uiColor;
}

if( useUIDefaultsColors() ) {// true for Metal or Nimbus only
Color res = UIManager.getColor( "Tree.background" ); //NOI18N
if( null == res )
res = Color.white;
return new Color( res.getRGB() );
}
return Color.white;
}

If I add in my app 
licationUIManager.put("nb.options.categories.tabPanelBackground", 
Color.ORANGE); the Options ribbon becomes orange.

Le lundi 15 novembre 2021, 22:15:40 UTC+1, Jerome Lelasseux 
 a écrit :  
 
  Sorry I meant FlatLaf Dark.
I use the following in ModuleInstall::validate()

NbPreferences.root().node("laf").put("laf", "com.formdev.flatlaf.FlatDarkLaf");
UIManager.installLookAndFeel(new UIManager.LookAndFeelInfo("FlatLaf Dark", 
FlatDarkLaf.class.getName())); 

I tried the 2 options mentionned in the PR (below), it had some effect but not 
on the Options white ribbon...
-J-Dflatlaf.useWindowDecorations=false \
-J-Dflatlaf.menuBarEmbedded=false





Le lundi 15 novembre 2021, 16:46:14 UTC+1, Neil C Smith 
 a écrit :  
 
 On Sun, 14 Nov 2021 at 19:54, Jerome Lelasseux
 wrote:
> I made a new release of my Netbeans platform application (NB 12.5, 
> JDK11.0.13, DarkLaf) and I noticed that the Options ruban is now white (see 
> image attached). It was dark when I built the previous release using NB12.3 
> (and it's also dark in the Options dialog of NB12.5 when using DarkLaf).
>
> I could not find any change in my code that could explain this. If someone 
> has an idea where I should search...

What is DarkLaf?  Darcula or FlatLaf Dark?

How are you setting the Look and Feel?  Some things changed in this
area with https://github.com/apache/netbeans/pull/2872 that might be
affected.

Best wishes,

Neil


Re: The Options ruban remains white with DarkLaf

2021-11-15 Thread Jerome Lelasseux
 Sorry I meant FlatLaf Dark.
I use the following in ModuleInstall::validate()

NbPreferences.root().node("laf").put("laf", "com.formdev.flatlaf.FlatDarkLaf");
UIManager.installLookAndFeel(new UIManager.LookAndFeelInfo("FlatLaf Dark", 
FlatDarkLaf.class.getName())); 

I tried the 2 options mentionned in the PR (below), it had some effect but not 
on the Options white ribbon...
-J-Dflatlaf.useWindowDecorations=false \
-J-Dflatlaf.menuBarEmbedded=false





Le lundi 15 novembre 2021, 16:46:14 UTC+1, Neil C Smith 
 a écrit :  
 
 On Sun, 14 Nov 2021 at 19:54, Jerome Lelasseux
 wrote:
> I made a new release of my Netbeans platform application (NB 12.5, 
> JDK11.0.13, DarkLaf) and I noticed that the Options ruban is now white (see 
> image attached). It was dark when I built the previous release using NB12.3 
> (and it's also dark in the Options dialog of NB12.5 when using DarkLaf).
>
> I could not find any change in my code that could explain this. If someone 
> has an idea where I should search...

What is DarkLaf?  Darcula or FlatLaf Dark?

How are you setting the Look and Feel?  Some things changed in this
area with https://github.com/apache/netbeans/pull/2872 that might be
affected.

Best wishes,

Neil
  

The Options ruban remains white with DarkLaf

2021-11-14 Thread Jerome Lelasseux
Hi,
I made a new release of my Netbeans platform application (NB 12.5, JDK11.0.13, 
DarkLaf) and I noticed that the Options ruban is now white (see image 
attached). It was dark when I built the previous release using NB12.3 (and it's 
also dark in the Options dialog of NB12.5 when using DarkLaf). 

I could not find any change in my code that could explain this. If someone has 
an idea where I should search...

ThanksJerome

-
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 Platform "Golden Path"

2021-07-08 Thread Jerome Lelasseux
 Chris,
I devevelop an Ant-based Netbeans platform application 
(https://github.com/jjazzboss/JJazzLab-X) and had to follow this path too. 

I use only 2 external libraries that are packed in wrapper modules. I let 
Netbeans build the launchers and I have a shell script that prepare the 
packages for each OS, bundling a JRE (I was hesitant at first, it adds ~40MB, 
but in the end it works well, most of my users don't even know it's a Java 
app), using Innosetup with code signing for Win, and zip for Linux and Mac.

Jerome

Le mercredi 7 juillet 2021 à 21:24:30 UTC+2, Chris Marusich 
 a écrit :  
 
 Hi,

What's the current "best practice" or "golden path" for building and
distributing a NetBeans Platform application and managing its
dependencies (e.g., from Maven central)?  That's a big general question,
so I'll ask some specifics:

- Should I ever try to use JPMS modules when building a NetBeans
Platform application?  I've found that in my projects (which are
NetBeans Maven-based projects, not NetBeans Platform projects), when I
use JPMS modules, it can cause problems for NetBeans [1], so I wonder if
it's really wise to even try mixing JPMS modules with NetBeans projects
at this time, let alone NetBeans Platform projects.

- Should I ever try to make a Maven-based NetBeans Platform application?
I see there are Maven templates in NetBeans that offer to create a
Maven-based NetBeans Platform project.  However, all the examples online
and in books that I've seen so far do NOT use Maven.  In spite of this,
recent emails on this list have suggested that Maven-based NetBeans
projects are generally preferred over the older Ant-based project types.
So I'm a bit confused about what the currently prevailing wisdom on this
matter is, in the case of NetBeans Platform projects.  Perhaps Maven can
be used to build NetBeans Platform applications/modules or not,
depending on the situation.  As a beginner in the world of NetBeans
Platform, I just want to try making a NetBeans Platform project using
whatever approach is more likely to work without trouble and remain
supported by the community.  But what approach might that be?

- If I want to use a library that is available from Maven central in my
NetBeans Platform application, is the best option to just manually
download the JAR file, manually create a NetBeans Platform "wrapper
module" for the JAR, and then use the "wrapper module" in my
application?  I tried using the nbm-maven-plugin to use dependencies
from Maven in a simple NetBeans Platform application, but I encountered
problems and couldn't figure out how to get it to work.  So to me it
feels like the answer to this question is "yes, at the moment you should
manage your JARs manually in order to have the best developer experience
when working on a NetBeans Platform application," but I'm not sure.  I'm
curious to hear the opinions of people who have more experience with the
NetBeans Platform.

- If I want to build a stand-alone release of my NetBeans Platform
application that I can distribute to an end user, what's a good way to
do it?  It seems that some of the features in NetBeans that build a
stand-alone release will only work when your project is not a
Maven-based NetBeans Platform application.  Additionally, although
recent developments like jlink and jpackage have made it somewhat easier
to produce stand-alone application bundles that don't require the user
to first install a JRE, which is nice, it seems that these tools
sometimes require the use of JPMS modules, which can be problematic in
NetBeans (see above).  And in any case NetBeans does not yet seem to
expose any way to take advantage of these new tools.  So what IS the
most common way that people build a release version of a NetBeans
Platform application, anyway?
  
Ultimately, I just don't understand what the current "best practice" or
"golden path" is for using NetBeans Platform.  I'd like to know, though.
I am happy to help improve the tutorials, but the problem is that even
after reading various tutorials and documentation, and even after
experimenting quite a bit on my own, I don't even understand what the
path of least resistance is supposed to be.

Footnotes:
[1] 
http://mail-archives.apache.org/mod_mbox/netbeans-users/202010.mbox/%3c87sg9wgt19@gmail.com%3E

-- 
Chris
  

Re: removing the "new project" support for Ant projects

2021-04-20 Thread Jerome Lelasseux
 I have an ant-based NB platform application, moving to Maven is on my to-do 
list, but I know nothing about Maven. Some time ago I tried to find relevant 
help but I just found generic "move to maven" infos, so I gave up.


> That said, perhaps we could get a write up on someone going through the 
> process on some of the common NB Ant projects to show how it's done.
That would be great. No need to be super detailed, but at least the main steps, 
so I understand the path and the traps to avoid.

I found this, but is it still valid ? (2013). And it seems for a single-module 
project 
 http://netbeans.apache.org/wiki/DevFaqMavenHowToMigrateFromANT.asciidoc


Jerome


Le mardi 20 avril 2021 à 20:19:17 UTC+2, Will Hartung 
 a écrit :  
 
 

On Tue, Apr 20, 2021 at 10:10 AM Lisa Ruby  
wrote:

  For those of you who have used Maven for a long time it may seem simple and 
straightforward, but for those of us who haven't it's not. I've struggled to 
try and understand it and figure out how to use it for my software project and 
gave up. And it's a huge amount of overhead, extra disk space usage, and more 
bits and pieces to keep track of that isn't justifiable for small simple 
projects. ANT works just fine for me, and I will keep using it for as long as I 
possibly can. I need to focus my time on getting my software out, not on the 
tools I have to use to do it. 


There are several issues, depending on your project.
If you have a "simple" Ant project, it's mostly a matter of copying your code 
over, resolving the dependencies (i.e. correlating the libraries you use to the 
ones in the repository), and building.
The singular "huge" amount of overhead for Maven is the large index that's 
routinely downloaded from Maven Central, cataloging all of the available 
libraries. It's a large download that's uncompressed on the file system (> 1GB).
Outside of that, Maven is lightweight.
Ant is faster, to be sure, but Maven is "fast enough" for most cases.
For complicated projects, anything goes. Maven is a declarative system. "This 
is what I want done" vs Ants imperative system "This is what I want to do". 
There is an absolute paradigm mismatch between the two, but that does not mean 
it's not reconcilable.
The other side of the coin is that, technically, this isn't the place for 
converting Ant to Maven. That's a "Ant" problem or "Maven" problem, not 
necessarily an IDE problem.
That said, perhaps we could get a write up on someone going through the process 
on some of the common NB Ant projects to show how it's done. An automated 
system would likely be more complicated and less effective than a list of steps 
and heuristics that someone can go through. No ideal, to be sure.
If you'd like to contact me directly with specifics about your project, maybe I 
can help you prototype a project transition.

That said, as I mentioned in the other thread, I don't think that NB should 
give up legacy support of such projects, just perhaps deprecating the "new 
projects". 

Regards,
Will Hartung
  

Re: [netbeans-platform] How to integrate UTF-8 .properties files efficiently?

2021-01-01 Thread Jerome Lelasseux
 > With that, we could only recommend to take a break, go for running, ride a 
 > bike, etc.The best programmer advise indeed ! ;-)
I finally made a dirty hack: manually replacing the NbBundle .class files from 
org-openide-util.jar directly in the Netbeans/platform/lib folder ! It works 
fine.

I initially tried to do it in a cleaner way, using this page 
http://wiki.netbeans.org/DevFaqModulePatching   but could not make it work 
(valid for NB6 only?).
Yes, I'll make my first Netbeans PR to start 2021 :-)
And best wishes to all the NB team.

Jerome




Le samedi 26 décembre 2020 à 18:21:56 UTC+1, Laszlo Kishalmi 
 a écrit :  
 
  
Well, can you create a PR to see what would be your fix?
 Also unfortunately the " I've tried many things but no success." carries only 
information about your frustration. With that, we could only recommend to take 
a break, go for running, ride a bike, etc.
 
 On 12/26/20 8:52 AM, Jerome Lelasseux wrote:
  
 
 Well I've managed to alter my Ant build process to add UTF8>ISO5589-1  
transcoding, but at the end of th day it's really not efficient...
  
  I came back to the source of the problem and checked NbBundle.java (part of 
org.openide.util/Base Utilities API module). It turns out it's easy to make it 
support UTF-8 as well, so I made the fix.
  
  Now I have trouble using this updated Netbeans code in my RCP application. 
I've tried many things but no success. What are the main steps to achieve this 
? 
  
  Jerome 
  
  
  
  Le mercredi 23 décembre 2020 à 11:26:45 UTC+1, Jerome Lelasseux 
 a écrit :  
  
   > Well since unfortunately the encoding of a property file is set as 
ISO-8859-1 in it spec, I'd use a generator step in the build which would 
translate the UTF-8 characters into \u of the final Bundle.properties. 
 
 OK I've managed to use the -post-compile extension point to transcode the 
resource bundles in modules. 
 But how to do it for branding localized resource bundles ? I could not find 
any "hook" in the build scripts, it looks like it's a builtin task (see below 
from harness/suite.xml)
 
     
     
     
      
     
     


Re: [netbeans-platform] How to integrate UTF-8 .properties files efficiently?

2020-12-26 Thread Jerome Lelasseux
 Well I've managed to alter my Ant build process to add UTF8>ISO5589-1  
transcoding, but at the end of th day it's really not efficient...

I came back to the source of the problem and checked NbBundle.java (part of 
org.openide.util/Base Utilities API module). It turns out it's easy to make it 
support UTF-8 as well, so I made the fix.

Now I have trouble using this updated Netbeans code in my RCP application. I've 
tried many things but no success. What are the main steps to achieve this ?

Jerome



Le mercredi 23 décembre 2020 à 11:26:45 UTC+1, Jerome Lelasseux 
 a écrit :  
 
 > Well since unfortunately the encoding of a property file is set as 
 > ISO-8859-1 in it spec, I'd use a generator step in the build which would 
 > translate the UTF-8 characters into \u of the final Bundle.properties.

OK I've managed to use the -post-compile extension point to transcode the 
resource bundles in modules.
But how to do it for branding localized resource bundles ? I could not find any 
"hook" in the build scripts, it looks like it's a builtin task (see below from 
harness/suite.xml)

    
    
    
    
    
    
  

Re: [netbeans-platform] How to integrate UTF-8 .properties files efficiently?

2020-12-23 Thread Jerome Lelasseux
> Well since unfortunately the encoding of a property file is set as ISO-8859-1 
> in it spec, I'd use a generator step in the build which would translate the 
> UTF-8 characters into \u of the final Bundle.properties.

OK I've managed to use the -post-compile extension point to transcode the 
resource bundles in modules.
But how to do it for branding localized resource bundles ? I could not find any 
"hook" in the build scripts, it looks like it's a builtin task (see below from 
harness/suite.xml)

    
    
    
    
    
    


Re: [netbeans-platform] programmatically call "Show Only Editor" on startup

2020-12-22 Thread Jerome Lelasseux
 What error do you get ?


Le mardi 22 décembre 2020 à 22:32:23 UTC+1, Ralf Eichinger 
 a écrit :  
 
 I tried
@Override
  public void componentOpened() {
    Action action = 
FileUtil.getConfigObject("Actions/Window/org-netbeans-core-windows-actions-ShowEditorOnlyAction.instance",
 Action.class);
    action.actionPerformed(new ActionEvent(this, 0, "dummy"));
  }
in my TopComponent class of my netbeans platform app.(this class: 
https://github.com/datazuul/eazy-bookscanner/blob/main/core/src/main/java/com/datazuul/bookscanner/core/MainTopComponent.java
 )
sadly, no success.
Where to place it? how to call it?

On Tue, Dec 22, 2020 at 10:23 AM Patrik Karlström  wrote:

Better yet, don't use tabs!

https://blogs.oracle.com/geertjan/farewell-to-space-consuming-weird-tabs
aka NoTabsTabDisplayerUI


Den mån 21 dec. 2020 kl 14:18 skrev Ralf Eichinger :
>
> I am developing a netbeans RELEASE90 platform based application.
> all gui is placed in editor area.
> Is there a way to programmatically call "Show Only Editor" (like in the
> "view"-menu)
> on startup of application?
>
>



-- 
Ralf EichingerGeorg-Lindau-Str. 580634 Münchentel: 089 / 2375 6862mobil: 0152 / 
5368 5735email: ralf.eichin...@gmail.com  

Re: [netbeans-platform] How to integrate UTF-8 .properties files efficiently?

2020-12-21 Thread Jerome Lelasseux
> Well since unfortunately the encoding of a property file is set as ISO-8859-1 
> in it spec,
At least for JDK 11 the API says the opposite : 
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/PropertyResourceBundle.html,
 see the API paragraph.
And indeed it's what I experiment: if I use ResourceBundle.getBundle(Class, 
Module),getString(key), it does automatically read UTF-8 or ISO strings (I made 
a test with both encodings in a single.properties file).
If I use NbBundle.getMessage() then it always expects ISO, that's why I don't 
use it. The problem is that I can't alter the behavior of the Netbeans internal 
stuff which still works the "old way". This impacts branding localization or 
action displayname declared via @ActionRegistration(lazy=true).



> I'd use a generator step in the build which would translate the UTF-8 
> characters into \u of the final Bundle.properties.
Yes, this is what I should try in the meantime... I'm not familiar with the And 
build-script, which target should I start with ? 




Le lundi 21 décembre 2020 à 16:14:33 UTC+1, Laszlo Kishalmi 
 a écrit :  
 
  
Well since unfortunately the encoding of a property file is set as ISO-8859-1 
in it spec, I'd use a generator step in the build which would translate the 
UTF-8 characters into \u of the final Bundle.properties.
 
 On 12/21/20 6:56 AM, Jerome Lelasseux wrote:
  
 
 I use the crowdin.com platform (free for open-source!) to get the translations 
done for my Netbeans RCP application. It gets synchronized automatically to 
GitHub nicely. 
  
  The problem is that I pull UFT-8 encoded Bundle*.properties, and the RCP 
platform expects ISO-8859-1 encoding, so special characters got messed up.
  
  Do you guys have experience how to integrate this seamlessly ?   (ideally by 
programmatically alter the behavior of the RCP framework so that UFT-8 is used 
to read .properties)
  
  
  Thanks. Jerome
  
  
  
  
 

[netbeans-platform] How to integrate UTF-8 .properties files efficiently?

2020-12-21 Thread Jerome Lelasseux
I use the crowdin.com platform (free for open-source!) to get the translations 
done for my Netbeans RCP application. It gets synchronized automatically to 
GitHub nicely. 

The problem is that I pull UFT-8 encoded Bundle*.properties, and the RCP 
platform expects ISO-8859-1 encoding, so special characters got messed up.

Do you guys have experience how to integrate this seamlessly ?   (ideally by 
programmatically alter the behavior of the RCP framework so that UFT-8 is used 
to read .properties)


Thanks. Jerome






Netbeans menus File, Edit... do not get localized

2020-12-18 Thread Jerome Lelasseux
When I run my RCP application with

run.args.extra=--locale fr:FR 

I get my own UI menu items localized but not Netbeans ones remain in english, 
like bar menu headers "File" or "Edit", the action "Exit", etc.

What do I miss ?

I use Netbeans 12.0


Localization issue with MenuBar(DataFolder) + declarative action registrations

2020-12-16 Thread Jerome Lelasseux
Hi
I use the menuBar(DataFolder) constructor to automatically build a MenuBar from 
actions registered in the layer.xml:

menuBar = new 
MenuBar(DataFolder.findFolder(FileUtil.getConfigFile("MyMenuBar")));

And below is an example of the ImportMix action in the "MixFile" submenu:

@ActionID(category = "MixConsole", id = 
"org.jjazz.ui.mixconsole.actions.importmix")
@ActionRegistration(displayName = "#CTL_ImportMix", lazy = true)
@ActionReferences(
    {
    @ActionReference(path = "MyMenuBar/MixFile", position = 200)
    })
public class ImportMix extends AbstractAction



This works well and I can localize the ImportMix action name. 

However how to localize the submenu name ?  ("MixFile" in the example)




Re: NetBeans RCP

2020-07-10 Thread Jerome Lelasseux
 Kristian, 

It might help you to see other Netbeans RCP app examples, like 
https://github.com/praxis-live/praxis-live  from Neil C Smith, or my JJazzLab 
repo https://github.com/jjazzboss/JJazzLab-X


Jerome



Le vendredi 10 juillet 2020 à 12:26:52 UTC+2, Kristian Rink 
 a écrit :  
 
 Thanks guys. Gonna take a look and see how far it gets me.

Best,

Kristian

Am 10.07.20 um 10:31 schrieb Geertjan Wielenga:
> This is still good:
>
> https://leanpub.com/nbp4beginners
>
> Gj
>
> On Fri, 10 Jul 2020 at 10:27, Emilian Bold  > wrote:
>
>    I think one of the books has recently been updated given the
>    Apache move.
>
>    Still, things haven't changed that much on the Platform side so any
>    older reference will /kinda/ work just as well.
>
>    The lack of JavaHelp and JavaFX not being part of the JRE are going to
>    be your biggest concerns.
>

-
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: How to use the new FlatLaf look & feel in a Netbeans application ?

2020-06-25 Thread Jerome Lelasseux
 Understood, thanks for the links!

Le jeudi 25 juin 2020 à 10:08:55 UTC+2, Neil C Smith 
 a écrit :  
 
 On Thu, 25 Jun 2020 at 00:40, Laszlo Kishalmi  
wrote:
> NbPreferences.root().node( "laf" ).put( "laf", 
> "com.formdev.flatlaf.FlatDarkLaf" ); Somewhere really early, probably at an 
> @OnStart marked runnable.

This probably needs to be done in ModuleInstall::validate - @OnStart
is too late to work consistently, unless behaviour has changed
recently.

You can see use of validate() in eg.
https://github.com/Revivius/nb-darcula/blob/master/src/main/java/com/revivius/nb/darcula/Installer.java#L29
and 
https://github.com/praxis-live/praxis-live/blob/v2.3.3/praxis.live.laf/src/net/neilcsmith/praxis/live/laf/Installer.java#L53

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: How to use the new FlatLaf look & feel in a Netbeans application ?

2020-06-25 Thread Jerome Lelasseux
 Thanks, it works. 

Le jeudi 25 juin 2020 à 01:40:03 UTC+2, Laszlo Kishalmi 
 a écrit :  
 
  
Right now Flatlaf is part of the platform, so it is available for the platform 
based applications as well.
 
If you would like to use it as default probably the best would be to add the 
call of:
 
NbPreferences.root().node( "laf" ).put( "laf", 
"com.formdev.flatlaf.FlatDarkLaf" ); Somewhere really early, probably at an 
@OnStart marked runnable.
 
 On 6/24/20 3:07 PM, Jerome Lelasseux wrote:
  
 
 Hi, 
  I use NB 11.3 which includes the new FlatLaf dark look & feel. I can use it 
for the IDE, but how to use it in my Netbeans platform app ? 
  Jerome
 

How to use the new FlatLaf look & feel in a Netbeans application ?

2020-06-24 Thread Jerome Lelasseux
Hi,
I use NB 11.3 which includes the new FlatLaf dark look & feel. I can use it for 
the IDE, but how to use it in my Netbeans platform app ?
Jerome


How to block a global shortcut action on a TopComponent ?

2020-06-23 Thread Jerome Lelasseux
In my NB application I have always enabled actions for which a global shortcut 
is defined using annotations such as @ActionReference(path = "Shortcuts", name 
= "SPACE"). It works fine.
I'd like these global shortcuts to NOT work when a specific TopComponent is 
active. Is there a way to do it in a generic way ? 













Re: Command line parameter with JUnit

2020-06-20 Thread Jerome Lelasseux
 Thanks emi. That was it.
But I'm only half way: where are the logged messages during unit tests ?? When 
I run my platform app normally I find them in 
netbeans-user-dir/var/log/messages.log, but is there a .log file for unit 
tests? I've searched for one but without success...


Le samedi 20 juin 2020 à 19:17:16 UTC+2, Emilian Bold 
 a écrit :  
 
 Maybe just plain -D

--emi

On Sat, Jun 20, 2020 at 7:48 PM Jerome Lelasseux
 wrote:
>
> I need to change the logging level of some files during unit tests (NB 11.3).
>
> According to this wiki page 
> http://wiki.netbeans.org/DevRunningTestsPlatformApp   it's possible to add 
> command line parameters for unit tests using the "test.run.args" property.
>
> But when I add  "test.run.args=-J-DMyLogger.level=200" in 
> module/nbproject/project.properties, the unit test fails:
>
> Unrecognized option: -J-DMyLogger.level=200
> Error: Could not create the Java Virtual Machine.
> Error: A fatal exception has occurred. Program will exit.
>
> Is there another way to do it ?
>
>
>
>
  

Command line parameter with JUnit

2020-06-20 Thread Jerome Lelasseux
I need to change the logging level of some files during unit tests (NB 11.3).

According to this wiki page http://wiki.netbeans.org/DevRunningTestsPlatformApp 
  it's possible to add command line parameters for unit tests using the 
"test.run.args" property.

But when I add  "test.run.args=-J-DMyLogger.level=200" in 
module/nbproject/project.properties, the unit test fails:

Unrecognized option: -J-DMyLogger.level=200
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Is there another way to do it ?






No logging in NB output window

2020-05-17 Thread Jerome Lelasseux
Hi,
I remember that with Netbeans8/JDK 8, when I ran my java program from Netbeans 
the logging output was shown in the Netbeans output window. And when an 
exception occured the stack trace was shown with hyperlinks to code source, 
which was super convenient.
Today I use Netbeans 11.3 with AdoptOpenJDK11 (Win10 x64), and the output 
window only shows the Ant build process output, but nothing after the run 
command. I have to manually open messages.log and I loose the hyperlinks, which 
makes debugging tedious.

I checked that property netbeans.logger.console=true is used. I also found this 
old bug which describes the exact same issue but was solved a long time ago... 
177820 – No logging in output window during execution

| 
| 
|  | 
177820 – No logging in output window during execution


 |

 |

 |




Any idea ?

Thanks.

Jerome




Re: Generate missing switch cases for an enum

2020-03-19 Thread Jerome Lelasseux
 got it thanks !

Le jeudi 19 mars 2020 à 20:00:34 UTC+1, Jan Lahoda  a 
écrit :  
 
 On Thu, Mar 19, 2020 at 6:52 PM Emilian Bold  wrote:

seems like a neat feature to add to Java too...


It does seem work for Java for me - if I have a switch, which is missing some 
possible cases, and I put the cursor inside the "switch" (or after it), there 
is a lightbulb on the left, and when I press Alt-Enter (or click on the 
lightbulb), and choose "Add missing case clauses", the missing cases are 
generated for me.
Jan


--emi

On Thu, Mar 19, 2020 at 6:18 PM Jerome Lelasseux
 wrote:
>
> I just realized the annoucement below was specific for C/C++... I use java.
>
> Le jeudi 19 mars 2020 à 17:14:25 UTC+1, Jerome Lelasseux 
>  a écrit :
>
>
> Hi,
>
> Since 8.1 Netbeans seems able to generate missing switch clauses:
> http://wiki.netbeans.org/NewAndNoteworthyNB81#Generate_missing_switch_clauses
>
> How to access it ?
>
> I tried ctrl-space in various places, alt-insert, without success.
>
>
>

-
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: Generate missing switch cases for an enum

2020-03-19 Thread Jerome Lelasseux
 I just realized the annoucement below was specific for C/C++... I use java.

Le jeudi 19 mars 2020 à 17:14:25 UTC+1, Jerome Lelasseux 
 a écrit :  
 
 Hi,
Since 8.1 Netbeans seems able to generate missing switch 
clauses:http://wiki.netbeans.org/NewAndNoteworthyNB81#Generate_missing_switch_clauses
How to access it ? 

I tried ctrl-space in various places, alt-insert, without success.



  

Generate missing switch cases for an enum

2020-03-19 Thread Jerome Lelasseux
Hi,
Since 8.1 Netbeans seems able to generate missing switch 
clauses:http://wiki.netbeans.org/NewAndNoteworthyNB81#Generate_missing_switch_clauses
How to access it ? 

I tried ctrl-space in various places, alt-insert, without success.





Re: Autoupdate problem

2020-03-04 Thread Jerome Lelasseux
 Yes. It was a normal behavior actually.

Once an update is read, there is by default a 1 week delay before checking 
again for an update. But NB still scans the remote updates.xml upon EACH 
startup, that's why I was misleaded. The scan is to compare the date within 
updates.xml with the last local update.

This page was useful: http://wiki.netbeans.org/FaqPluginManagerCustomization
Jerome


Le mercredi 4 mars 2020 à 13:53:26 UTC+1, Peter Hull 
 a écrit : 
Hi Jerome,
Did you ever fix this issue?
Peter

On Thu, 13 Feb 2020 at 22:32, Jerome Lelasseux  wrote:
>
> I see the "Comparing versions" log lines only upon first start after fresh 
> install (when I removed AppData/Local/jjazzlab and AppData/Roaming/jjazzlab).
>
> When the problem occurs (it does not detect the 2nd round of update) logging 
> is:
>
>
> FINEST [org.netbeans.modules.autoupdate.ui.actions.AutoupdateSettings]: Read 
> preferences from userdir 1.0.4.1
> FINEST [org.netbeans.modules.autoupdate.ui.actions.AutoupdateSettings]: Store 
> current version 1.0.4.1 for future import.
> FINER [org.netbeans.modules.autoupdate.ui.actions.AutoupdateSettings]: Old 
> IDE Identity Prefix:
> FINER [org.netbeans.modules.autoupdate.ui.actions.AutoupdateSettings]: Old 
> IDE Identity ID: 09aa34575-946a-4afe-b7d6-d672b9610476
> FINER [org.netbeans.modules.autoupdate.ui.actions.AutoupdateSettings]: No new 
> prefix.
> FINER [org.netbeans.modules.autoupdate.ui.actions.AutoupdateSettings]: 
> netbeans.default_userdir_root: 
> C:\Users\Administrateur.000\AppData\Roaming\jjazzlab
> FINE [org.netbeans.modules.autoupdate.ui.actions.AutoupdateSettings]: Does OS 
> specific C:\Users\Administrateur.000\AppData\Roaming\jjazzlab\.superId exist? 
> true
> FINE [org.netbeans.modules.autoupdate.ui.actions.AutoupdateSettings]: Does 
> C:\Users\Administrateur.000\AppData\Roaming\jjazzlab\.superId exist? true
> FINEST [org.netbeans.modules.autoupdate.ui.actions.AutoupdateSettings]: 
> getPeriod () returns 2
> ...
> FINE [org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogCache]: 
> getCacheDirectory: 
> C:\Users\Administrateur.000\AppData\Local\jjazzlab\Cache\1.0.4.1\catalogcache
> FINE [org.netbeans.modules.autoupdate.services.UpdateUnitProviderImpl]: 
> Customized Provider org_jjazzlab_base_update_center
> FINEST [org.netbeans.modules.autoupdate.ui.actions.ShowNotifications]: 
> Checking notification for JJazzLab Update Center
> FINER 
> [org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogParser]: Is 
> GZIP https://www.jjazzlab.com/autoupdate/updates.xml ? false
> FINE 
> [org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogParser]: 
> Start parsing https://www.jjazzlab.com/autoupdate/updates.xml at 1581631266556
> FINER 
> [org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogParser]: 
> Successfully read time 08/52/20/13/02/2020
> FINE 
> [org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogParser]: End 
> parsing https://www.jjazzlab.com/autoupdate/updates.xml at 1581631266579
>
> I made some experimentations. To make it work again, I need to manually 
> remove the autoupdate.properties file in 
> AppData\Roaming\jjazzlab\1.0.4.1\config\Preferences\org\netbeans\modules. 
> Then if I start jjazzlab it detects the 2nd round of updates and apply them. 
> I have no idea why... I copied below the content of my autoupdate.properties.
>
> expiration=1.0.4.1
> ideIdentity=0b37d59a7-9cb5-4914-aa67-5203a71cb133
> lastCheckTime=1581632362428
> org_jjazzlab_base_update_center_lastCheckTime=1581632362428
> plugin.manager.first.class.modules=
> qualifiedId=0b37d59a7-9cb5-4914-aa67-5203a71cb133_c2e68cdf-5652-4cd8-adec-0d2fa47366f1
> superId=c2e68cdf-5652-4cd8-adec-0d2fa47366f1
>
>
> Maybe I do something wrong when I upload the 2nd round of NBM files on the 
> server ? When I publish a new update, I just delete the previous 
> NBM+updates.xml files on the server and replace them with the new ones which 
> where automatically generated by the NB "Packages as NBM" command.
>
>
>
> Le mercredi 12 février 2020 à 20:21:15 UTC+1, Peter Hull 
>  a écrit :
>
>
> On Wed, 12 Feb 2020 at 17:27, Jerome Lelasseux  wrote:
> > Maybe you viewed the xml file using the builtin Firefox viewer which hides 
> > the XML declaration part...
> Well I have learnt something anyway - yes I was using firefox.
>
> Looking at the code you should be seeing log lines like
> [exec] FINER [org.netbeans.modules.autoupdate.services.Utilities]:
> Comparing versions: 1.0.compareTo(1.0) = 0
> just after the "End parsing", what do you see  when you try?
>
> Also (slightly weirdly) the time stamp is parsed using
> SimpleDateFormat, with a format of "ss/mm/hh/d

Re: Autoupdate problem

2020-02-13 Thread Jerome Lelasseux
 I see the "Comparing versions" log lines only upon first start after fresh 
install (when I removed AppData/Local/jjazzlab and AppData/Roaming/jjazzlab).
When the problem occurs (it does not detect the 2nd round of update) logging is:

FINEST [org.netbeans.modules.autoupdate.ui.actions.AutoupdateSettings]: Read 
preferences from userdir 1.0.4.1
FINEST [org.netbeans.modules.autoupdate.ui.actions.AutoupdateSettings]: Store 
current version 1.0.4.1 for future import.
FINER [org.netbeans.modules.autoupdate.ui.actions.AutoupdateSettings]: Old IDE 
Identity Prefix: 
FINER [org.netbeans.modules.autoupdate.ui.actions.AutoupdateSettings]: Old IDE 
Identity ID: 09aa34575-946a-4afe-b7d6-d672b9610476
FINER [org.netbeans.modules.autoupdate.ui.actions.AutoupdateSettings]: No new 
prefix.
FINER [org.netbeans.modules.autoupdate.ui.actions.AutoupdateSettings]: 
netbeans.default_userdir_root: 
C:\Users\Administrateur.000\AppData\Roaming\jjazzlab
FINE [org.netbeans.modules.autoupdate.ui.actions.AutoupdateSettings]: Does OS 
specific C:\Users\Administrateur.000\AppData\Roaming\jjazzlab\.superId exist? 
true
FINE [org.netbeans.modules.autoupdate.ui.actions.AutoupdateSettings]: Does 
C:\Users\Administrateur.000\AppData\Roaming\jjazzlab\.superId exist? true
FINEST [org.netbeans.modules.autoupdate.ui.actions.AutoupdateSettings]: 
getPeriod () returns 2...
FINE [org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogCache]: 
getCacheDirectory: 
C:\Users\Administrateur.000\AppData\Local\jjazzlab\Cache\1.0.4.1\catalogcache
FINE [org.netbeans.modules.autoupdate.services.UpdateUnitProviderImpl]: 
Customized Provider org_jjazzlab_base_update_center
FINEST [org.netbeans.modules.autoupdate.ui.actions.ShowNotifications]: Checking 
notification for JJazzLab Update Center
FINER [org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogParser]: 
Is GZIP https://www.jjazzlab.com/autoupdate/updates.xml ? false
FINE [org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogParser]: 
Start parsing https://www.jjazzlab.com/autoupdate/updates.xml at 1581631266556
FINER [org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogParser]: 
Successfully read time 08/52/20/13/02/2020
FINE [org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogParser]: 
End parsing https://www.jjazzlab.com/autoupdate/updates.xml at 1581631266579
I made some experimentations. To make it work again, I need to manually remove 
the autoupdate.properties file in 
AppData\Roaming\jjazzlab\1.0.4.1\config\Preferences\org\netbeans\modules. Then 
if I start jjazzlab it detects the 2nd round of updates and apply them. I have 
no idea why... I copied below the content of my autoupdate.properties. 

expiration=1.0.4.1
ideIdentity=0b37d59a7-9cb5-4914-aa67-5203a71cb133
lastCheckTime=1581632362428
org_jjazzlab_base_update_center_lastCheckTime=1581632362428
plugin.manager.first.class.modules=
qualifiedId=0b37d59a7-9cb5-4914-aa67-5203a71cb133_c2e68cdf-5652-4cd8-adec-0d2fa47366f1
superId=c2e68cdf-5652-4cd8-adec-0d2fa47366f1


Maybe I do something wrong when I upload the 2nd round of NBM files on the 
server ? When I publish a new update, I just delete the previous 
NBM+updates.xml files on the server and replace them with the new ones which 
where automatically generated by the NB "Packages as NBM" command. 



Le mercredi 12 février 2020 à 20:21:15 UTC+1, Peter Hull 
 a écrit :  
 
 On Wed, 12 Feb 2020 at 17:27, Jerome Lelasseux  wrote:
> Maybe you viewed the xml file using the builtin Firefox viewer which hides 
> the XML declaration part...
Well I have learnt something anyway - yes I was using firefox.

Looking at the code you should be seeing log lines like
[exec] FINER [org.netbeans.modules.autoupdate.services.Utilities]:
Comparing versions: 1.0.compareTo(1.0) = 0
just after the "End parsing", what do you see  when you try?

Also (slightly weirdly) the time stamp is parsed using
SimpleDateFormat, with a format of "ss/mm/hh/dd/MM/" but
re-formatted straight away into a String using "/MM/dd" - so maybe
you need to be at least one day ahead before it sees an update?
(haven't looked into this)
https://github.com/apache/netbeans/blob/e198d0dade337c1dbc27adbbdfd5d12f621a7712/platform/autoupdate.services/src/org/netbeans/modules/autoupdate/updateprovider/AutoupdateCatalogParser.java#L394-L406
https://github.com/apache/netbeans/blob/e198d0dade337c1dbc27adbbdfd5d12f621a7712/platform/autoupdate.services/src/org/netbeans/modules/autoupdate/services/Utilities.java#L1403-L1407
(I guess you knew this already)
Pete

-
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: Autoupdate problem

2020-02-12 Thread Jerome Lelasseux
@Pete 
No there is a XML declaration + DTD in my updates.xml, I've checked again. 
Maybe you viewed the xml file using the builtin Firefox viewer which hides the 
XML declaration part...
If the XML was malformed I guess it would not work at all: in my case it works 
fine for the 1st update (with a clean NB user dir). There must be something in 
the user dir which prevents the next update, I checked the autoupdate 
preferences but was not able to find something abnormal...



Le mercredi 12 février 2020 à 14:05:58 UTC+1, Peter Hull 
 a écrit :  
 
 I don't know the answer, but looking at the NB update center, the XML
does start with an XML declaration and a DTD (see below), whereas
yours does not. Maybe the DTD needs to be added?
Pete
http://www.netbeans.org/dtds/autoupdate-catalog-2_6.dtd;>

On Wed, 12 Feb 2020 at 10:43, Geertjan Wielenga  wrote:
>
> If I could, I would help, I just don't know -- and have no way to reproduce. 
> Maybe someone else with a NetBeans Platform app with a Plugin Manager etc, 
> other than the IDE itself, can advise.
>
> Gj
>
> On Tue, Feb 11, 2020 at 11:26 PM Jerome Lelasseux 
>  wrote:
>>
>> Hello,
>>
>> I have set up an autoupdate center for my NB application (Windows JDK11.1). 
>> After a fresh install of an (old) app, the new modules are detected, user is 
>> notified and the app is automatically updated.
>>
>> If I generate yet another change (change code of one module, increase module 
>> spec in manifest, generate new NBM file, upload new updates.xml and NBM on 
>> the updatecenter), then the app does not detect the change. I don't 
>> understand why...
>>
>> I tried -J-Dorg.netbeans.modules.autoupdate.level=FINEST to understand what 
>> happens, but it just says:
>> ...
>> FINE 
>> [org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogParser]: 
>> Start parsing https://www.jjazzlab.com/autoupdate/updates.xml at 
>> 1581459244163
>> FINER 
>> [org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogParser]: 
>> Successfully read time 59/47/21/11/02/2020
>> FINE 
>> [org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogParser]: 
>> End parsing https://www.jjazzlab.com/autoupdate/updates.xml at 1581459244210
>> ...
>>
>> So it scans the updates.xml but does not detect the updated module.
>>
>> If I delete the user directory (where some update info is stored), then the 
>> changes are detected again.
>>
>> Thanks for your help.
>>
>> Jerome
>>
>>

-
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

  

Autoupdate problem

2020-02-11 Thread Jerome Lelasseux
Hello,
I have set up an autoupdate center for my NB application (Windows JDK11.1). 
After a fresh install of an (old) app, the new modules are detected, user is 
notified and the app is automatically updated.
If I generate yet another change (change code of one module, increase module 
spec in manifest, generate new NBM file, upload new updates.xml and NBM on the 
updatecenter), then the app does not detect the change. I don't understand 
why... 

I tried -J-Dorg.netbeans.modules.autoupdate.level=FINEST to understand what 
happens, but it just says:...
FINE [org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogParser]: 
Start parsing https://www.jjazzlab.com/autoupdate/updates.xml at 1581459244163
FINER [org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogParser]: 
Successfully read time 59/47/21/11/02/2020
FINE [org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogParser]: 
End parsing https://www.jjazzlab.com/autoupdate/updates.xml at 1581459244210...
So it scans the updates.xml but does not detect the updated module.

If I delete the user directory (where some update info is stored), then the 
changes are detected again.
Thanks for your help.

Jerome




Internationalization with Netbeans

2020-02-04 Thread Jerome Lelasseux
Hi, 

I need to internationalize my Netbeans platform app and I've never done this 
before, I have a few questions.

I tried the Netbeans internationalization (NB11.1) wizard which looks very 
convenient, except that the wizard ignores the // NOI18N comment, so I have to 
manually uncheck all the strings which do not need translation. Is it normal ? 
What tool is using //NOI18N ?
Also regarding in-file declarations such as 
@Messages("CTL_ChangeQuantization=Quantization..."), I understand I need to 
manually add the key in each localized property bundle. I have the feeling that 
actually it's more convenient to not use @Messages(), and rather hard-code the 
strings then use the Wizard to convert them into properties. Am I right or do I 
miss something ? 

Jerome


Re: A Package for Generating Robust RCP Installers Using Maven

2019-11-21 Thread Jerome Lelasseux
 Thank you ! I wish I had this 2 month ago, I already had to make my own 
installer generation process... 


Le jeudi 21 novembre 2019 à 03:40:07 UTC+1, William Reynolds 
 a écrit :  
 
 For my application, I've had need of some reliable, reusable NBI 
installer scripts, so I've implemented some:

https://github.com/wnreynoldsWork/InstallersWithEmbeddedJVM.git

Here is the README:

This is a demonstration of a Netbeans Rich Client Platform (RCP)
application that shows how to embed a JRE into the installer that will
be used by the application.  The package works around numerous bugs in
the current Netbeans Installer (NBI) harness. See the JIRA issues:

https://issues.apache.org/jira/browse/NETBEANS-1157
https://issues.apache.org/jira/browse/NETBEANS-1145
https://issues.apache.org/jira/browse/NETBEANS-3332

The application consists of a trivial window (module HiMom), a branding
module, and an application module, where all of the action happens. The
objective is for the application module to be droppable into any RCP
application, providing robust NBI installers for Windows and Linux.

The application package enables Windows installers to work on modern
versions of Java.  The application is built using Maven and the
nbm-maven-plugin, however, the modified harness files should be usable
with an ant build, with some modification of the embedded properties.

All of the custom NBI files are found in
application/src/main/resources/dist.  The package includes two binary
JREs, one for windows (jre.exe) and one for linux (jre-linux). It would
have been nice to download and build these from the package, but that was
sufficiently complex with Maven/Ant that it destroyed any educational
benefit. Bot files are self-extracting zips, so if you rename them to
"jre.zip" or "jre-linux.zip", you will be able to examine their contents.

Much of this was guided by an old post of Geertjan Wielenga at
https://blogs.oracle.com/geertjan/installing-the-jre-via-an-applications-installer-via-windows
and the article at https://dzone.com/articles/including-jre-in-nbi. These
posts provide instructions on how to construct the sfx JRE files. Note
that the linux JRE is expected to have the jre under a directory called
"jre", while the windows JRE is expected the directories bin/, conf/,
lib/ and legal/ to be top level directories in the zip.

Currently only linux and windows have been tested. MacOS might work.

The pom provides several configuration variables, in the application pom 
under the nbm-maven-plugin configuration:

     
     
true
     
true
     
true
     
true
     
     true
     
false

The package works around bugs in the NBI in several ways. If the
configuration variable hackEngineJar is set to "true" in the pom,
the NBI engine will be modified during the installation.  The package
includes modifications of the NBI engine classes CommonLauncher and
CreateNativeLauncherAction. These will be compiled and put in the engine
jar during the install process. CreateNativeLauncherAction supports
a property specifying information on a "compatible" Java that will be
embedded in the installer and used to validate the JRE being used.

The other trick is that the test file TestJDK is replaced in the engine
jar. This version returns a java version string that is compatible with
the one embedded in the installer, and will not be rejected by the buggy
NBI code.

In addition, the package corrects numerous textual errors in the various
ant scripts and config files in the harness. See the pom to enable/disable
these fixes.

Finally, the package provides a means to test new windows installer
"launchers". Place the candidate launcher, called "nlw.exe" in
main/src/resources/installers, set testWindowLauncher to true and
hackEngineJar to false. If this yields a working installer, the nlw.exe
is good.

A useful trick when diagnosing a windows installer is to run it
"installerName --verbose --output installLog". installLog will have a full
transcript of the install process.  If you have set hackEngineJar, you
will see the "fake" version numbers that are generated by the installer.

I hope this is helpful.

-- 
William Reynolds, Ph.D.
Stellar Science, LLC
wnreyno...@stellarscience.com
www.stellarscience.com
877-763-8268 x710 (v)

  

Re: Netbeans app. package on Mac OSX "Application incomplete or damaged"

2019-10-24 Thread Jerome Lelasseux
 Thanks Malcom I fixed it.

Le mercredi 16 octobre 2019 à 23:49:17 UTC+2, Malcolm Fitzgerald 
 a écrit :  
 
 The app's Contents folder doesn't contain some things typically found inside 
the package contents of a Mac app such as: _CodeSignature folder, Info.plist, 
MacOS folder, or PkgInfo file. 
Malcolm



On 17/10/2019, at 10:17 AM, Jerome Lelasseux  
wrote:
Hello,
I work on Win 10 Netbeans 11, AdoptOpenJDK11. I created a Mac distribution 
package for my Netbeans platform application :
1/ I run the built-in "buid-mac" target in build.xml, it creates the 
dist/jjazzlab.app directory
2/ I add 2 directories in jjazzlab.app/Contents/Resources/jjazzlab: "jdk" (from 
AdoptOpenJDK), and "examples" with application sample files.3/ I update 
jjazzlab/etc/jjazzlab.conf to set jdkhome to "jdk" an set default_mac_userdir 
and default_cachedir
4/ I zip -yr jjazzlab.app. 

When I test the package on a Mac, I can not open the package, error is 
"Application is incomplete or damaged". If I ctrl-click "Show package 
contents", navigate to jjazzlab/bin and start the jjazzlab launcher, it works 
fine. I checked the info.plist which looks OK to me...

I tested the same thing using the original jjazzlab.app built by Netbeans at 
step1, without modification:  then the package on Mac can be started without 
the "Application is incomplete or damaged" ! 

What do I miss ?
The Mac package can be downloaded from the http://www.jjazzlab.com  Download 
page.
Thanks


  

Netbeans app. package on Mac OSX "Application incomplete or damaged"

2019-10-16 Thread Jerome Lelasseux
Hello,
I work on Win 10 Netbeans 11, AdoptOpenJDK11. I created a Mac distribution 
package for my Netbeans platform application :
1/ I run the built-in "buid-mac" target in build.xml, it creates the 
dist/jjazzlab.app directory
2/ I add 2 directories in jjazzlab.app/Contents/Resources/jjazzlab: "jdk" (from 
AdoptOpenJDK), and "examples" with application sample files.3/ I update 
jjazzlab/etc/jjazzlab.conf to set jdkhome to "jdk" an set default_mac_userdir 
and default_cachedir
4/ I zip -yr jjazzlab.app. 

When I test the package on a Mac, I can not open the package, error is 
"Application is incomplete or damaged". If I ctrl-click "Show package 
contents", navigate to jjazzlab/bin and start the jjazzlab launcher, it works 
fine. I checked the info.plist which looks OK to me...

I tested the same thing using the original jjazzlab.app built by Netbeans at 
step1, without modification:  then the package on Mac can be started without 
the "Application is incomplete or damaged" ! 

What do I miss ?
The Mac package can be downloaded from the http://www.jjazzlab.com  Download 
page.
Thanks


Re: JJazzLab : a music application based on the Netbeans Platform

2019-10-06 Thread Jerome Lelasseux
 If you connect JJazzLab output to VMPK input, it won't produce any sound. You 
will just see the notes being pressed on the virtual keyboard when VMPK 
receives Midi Messages from JJazzLab.

This is because VMPK is like JJazzLab, it does not produce any sound itself, 
you need to connect a Midi sound device (synth, virtual instrument, etc.) to 
their output.
Maybe you wanted to use VMPK to play chords in real time, like with an arranger 
keyboard. But JJazzLab is not designed to function this way. For this you 
should use software such as Varranger or one-man-band.




JJazzLab must be connected to a Midi sound device 

Le dimanche 6 octobre 2019 à 13:47:54 UTC+2, Lucio Crusca 
 a écrit :  
 
 Il 04/10/19 23:48, Jerome Lelasseux ha scritto:
> 
> It's here: https://www.jjazzlab.com    (NOT www.jazzlab.com !)
> 
> If you're a musician and practice your instrument using backing tracks (maybe 
> with apps like Band in a box or iReal Pro, or with backing tracks from 
> YouTube), then you might be interested to try, and I would love to get your 
> feedback (and bug reports!).
> 

That's absolutely awesome, thank you!

About the tests: it works out of the box on Debian GNU/Linux sid, but I wasn't 
able to connect it to VMPK configured as MIDI input, maybe my fault, maybe a 
little documentation is lacking on both ends. I'm going to test it on Windows 
as soon as I have it running.




-
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: JJazzLab : a music application based on the Netbeans Platform

2019-10-05 Thread Jerome Lelasseux
 Fixed.

Le samedi 5 octobre 2019 à 18:38:32 UTC+2, Neil C Smith 
 a écrit :  
 
 

On Sat, 5 Oct 2019, 17:09 Geertjan Wielenga,  wrote:

Yes, I simply renamed the clusters file in etc to jazzlab.sh.clusters to fix 
this.

Yes, the cluster file is looked up based on the executable name, so renaming it 
is a bug on any os. Presumably this isn't picking up the right .conf file 
either?!
Incidentally, this is a really useful feature in some circumstances - eg. it's 
how PraxisLIVE can have multiple launchers that do different things by loading 
a different config and set of clusters for each.
Best wishes, 
Neil

  

Re: JJazzLab : a music application based on the Netbeans Platform

2019-10-05 Thread Jerome Lelasseux
 Really !!? How did you do that ? 

Some time ago I tried creating the Mac installer but I could not manage to make 
it work on a Mac -but I don't know at all the Mac OS.


Le samedi 5 octobre 2019 à 13:51:13 UTC+2, Geertjan Wielenga 
 a écrit :  
 
 
In addition to the questions below, note I have the app up and running on Mac.
Gj
On Sat, 5 Oct 2019 at 11:40, Geertjan Wielenga  wrote:

Looks really cool.
Are the standard from iReal Pro included (or can they be imported) and how does 
it compare with Band-in-a-box?
Thanks,
Gj

On Sat, Oct 5, 2019 at 10:37 AM Emma Atkinson  wrote:

Hi Jerome
I like the look and fancy giving it a spin. (My MIDI programs don't evolve pass 
the prototype stage, I'm sorry to say).
I didn't find system requirements on your website. Is your program compatible 
with a 32-bit JRE?
Are you particularly seeking Windows users or would feedback using other 32 bit 
Linux on a old netbook be helpful too?
Emma

On Sat, 5 Oct 2019, 08:37 Jerome Lelasseux,  wrote:

 Thanks. I did some googling and checked the GlobalSign website, I only found a 
free SSL certificate (for website), not for code signing. I also found Certum 
which does "cheap" code signing for open source projects, but it's the 
entry-level certificate, not the EV level certificate.

Le samedi 5 octobre 2019 à 01:03:00 UTC+2, Emilian Bold 
 a écrit :  
 
 Don't know what the proper channel is (Twitter?) but GlobalSign gives
away free EV code signing certificates for open-source
software/developers.

--emi

On Sat, Oct 5, 2019 at 12:57 AM Jerome Lelasseux
 wrote:
>
> Dear Netbeans family,
>
> After many many (too many) evenings and week-ends spent learning and coding, 
> I'm proud to make the 1st release of my free music application based on the 
> Netbeans Platform.
>
> It's here: https://www.jjazzlab.com   (NOT www.jazzlab.com !)
>
> If you're a musician and practice your instrument using backing tracks (maybe 
> with apps like Band in a box or iReal Pro, or with backing tracks from 
> YouTube), then you might be interested to try, and I would love to get your 
> feedback (and bug reports!).
>
> If you're not a musician but you're a Windows user, you can also help in 2 
> minutes:  just download and install the app, then deinstall. You will 
> probably get a Windows Smart Screen alert, don't worry, click on the "more 
> info" text and you'll see the "Run Anyway" button. Explanations below.
>
>
> Windows Smart Screen problem:
> Although I spent 80$ buying a 1 year code signing certificate from DigiCert, 
> my installer is still blocked by Windows Smart Screen because Microsoft 
> security servers don't have enough data (=people downloading the app and 
> successfully installing it on Windows) to assess my installer's "reputation". 
> So it's a chicken and egg problem : I need many people to install my app to 
> remove the blocking by Windows, but Windows scares most people to do so ! I 
> was recommended one solution: buy the 600$/year EV code signing certificate, 
> obviously I would prefer to avoid this solution for a software I provide for 
> free...
>
> Of course don't hesitate to forward the link to your musician friends, or add 
> a link to www.jjazzlab.com.
>
> Thank you
>
> Jerome
>

-
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: JJazzLab : a music application based on the Netbeans Platform

2019-10-05 Thread Jerome Lelasseux
 > Are the standard from iReal Pro included (or can they be imported)Not yet, 
 > but it's on my todo list. Some time ago I looked to iRealPro file format but 
 > it's proprietary and I could not find info how to import it.


>  how does it compare with Band-in-a-box?
- More dynamic backing tracks
JJazzLab rhythms can have unlimited variations with different intensity. In 
this first release there are a few rhythms with 8 main variations + intros and 
endings. I think it's often 2 main variations (A-B) for Band In A Box styles. 
The initial idea was to be able to start a solo slowly, like with a real band, 
and gradually build the atmosphere. 

- Rhythmic accents
This makes a big difference when you play some songs, there are a few examples 
in the videos. 

- Open architectureAny developer can plug in a rhythm generation engine (e.g. 
which could interpret BIAB or iReal Pro files, or an AI-based engine).  
JJazzLab is acually just a user-friendly distribution of the JJazzLab-X 
platform with an example of music generation engine which reads Yamaha style 
files. 
- Much simpler UI

A clear downside of JJazzLab is that it does not come with its own sound 
engine, so if you have a crappy sound device, you'll get crappy sounds...

Jerome



Le samedi 5 octobre 2019 à 11:40:26 UTC+2, Geertjan Wielenga 
 a écrit :  
 
 Looks really cool.
Are the standard from iReal Pro included (or can they be imported) and how does 
it compare with Band-in-a-box?
Thanks,
Gj

On Sat, Oct 5, 2019 at 10:37 AM Emma Atkinson  wrote:

Hi Jerome
I like the look and fancy giving it a spin. (My MIDI programs don't evolve pass 
the prototype stage, I'm sorry to say).
I didn't find system requirements on your website. Is your program compatible 
with a 32-bit JRE?
Are you particularly seeking Windows users or would feedback using other 32 bit 
Linux on a old netbook be helpful too?
Emma

On Sat, 5 Oct 2019, 08:37 Jerome Lelasseux,  wrote:

 Thanks. I did some googling and checked the GlobalSign website, I only found a 
free SSL certificate (for website), not for code signing. I also found Certum 
which does "cheap" code signing for open source projects, but it's the 
entry-level certificate, not the EV level certificate.

Le samedi 5 octobre 2019 à 01:03:00 UTC+2, Emilian Bold 
 a écrit :  
 
 Don't know what the proper channel is (Twitter?) but GlobalSign gives
away free EV code signing certificates for open-source
software/developers.

--emi

On Sat, Oct 5, 2019 at 12:57 AM Jerome Lelasseux
 wrote:
>
> Dear Netbeans family,
>
> After many many (too many) evenings and week-ends spent learning and coding, 
> I'm proud to make the 1st release of my free music application based on the 
> Netbeans Platform.
>
> It's here: https://www.jjazzlab.com   (NOT www.jazzlab.com !)
>
> If you're a musician and practice your instrument using backing tracks (maybe 
> with apps like Band in a box or iReal Pro, or with backing tracks from 
> YouTube), then you might be interested to try, and I would love to get your 
> feedback (and bug reports!).
>
> If you're not a musician but you're a Windows user, you can also help in 2 
> minutes:  just download and install the app, then deinstall. You will 
> probably get a Windows Smart Screen alert, don't worry, click on the "more 
> info" text and you'll see the "Run Anyway" button. Explanations below.
>
>
> Windows Smart Screen problem:
> Although I spent 80$ buying a 1 year code signing certificate from DigiCert, 
> my installer is still blocked by Windows Smart Screen because Microsoft 
> security servers don't have enough data (=people downloading the app and 
> successfully installing it on Windows) to assess my installer's "reputation". 
> So it's a chicken and egg problem : I need many people to install my app to 
> remove the blocking by Windows, but Windows scares most people to do so ! I 
> was recommended one solution: buy the 600$/year EV code signing certificate, 
> obviously I would prefer to avoid this solution for a software I provide for 
> free...
>
> Of course don't hesitate to forward the link to your musician friends, or add 
> a link to www.jjazzlab.com.
>
> Thank you
>
> Jerome
>

-
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 : Re: JJazzLab : a music application based on the Netbeans Platform

2019-10-05 Thread Jerome Lelasseux
Thanks Emma.

I bundled a jre in the windows installer, so the app is using its own jre to 
avoid compatibility problems. If you have a 32-bit windows then you must use 
the 32-bit installer.
I do more tests on Windows than on Linux, so yes feedback on Linux is welcome. 
Note that I did not bundle a Jre in the Linux zip, because I don’t know well 
the different Linux variants and I thought Linux users would know how to 
install a jre.

Envoyé depuis Yahoo Mail pour iPhone


Le samedi, octobre 5, 2019, 10:29 AM, Emma Atkinson  
a écrit :

Hi Jerome
I like the look and fancy giving it a spin. (My MIDI programs don't evolve pass 
the prototype stage, I'm sorry to say).
I didn't find system requirements on your website. Is your program compatible 
with a 32-bit JRE?
Are you particularly seeking Windows users or would feedback using other 32 bit 
Linux on a old netbook be helpful too?
Emma

On Sat, 5 Oct 2019, 08:37 Jerome Lelasseux,  wrote:

 Thanks. I did some googling and checked the GlobalSign website, I only found a 
free SSL certificate (for website), not for code signing. I also found Certum 
which does "cheap" code signing for open source projects, but it's the 
entry-level certificate, not the EV level certificate.

Le samedi 5 octobre 2019 à 01:03:00 UTC+2, Emilian Bold 
 a écrit :  
 
 Don't know what the proper channel is (Twitter?) but GlobalSign gives
away free EV code signing certificates for open-source
software/developers.

--emi

On Sat, Oct 5, 2019 at 12:57 AM Jerome Lelasseux
 wrote:
>
> Dear Netbeans family,
>
> After many many (too many) evenings and week-ends spent learning and coding, 
> I'm proud to make the 1st release of my free music application based on the 
> Netbeans Platform.
>
> It's here: https://www.jjazzlab.com   (NOT www.jazzlab.com !)
>
> If you're a musician and practice your instrument using backing tracks (maybe 
> with apps like Band in a box or iReal Pro, or with backing tracks from 
> YouTube), then you might be interested to try, and I would love to get your 
> feedback (and bug reports!).
>
> If you're not a musician but you're a Windows user, you can also help in 2 
> minutes:  just download and install the app, then deinstall. You will 
> probably get a Windows Smart Screen alert, don't worry, click on the "more 
> info" text and you'll see the "Run Anyway" button. Explanations below.
>
>
> Windows Smart Screen problem:
> Although I spent 80$ buying a 1 year code signing certificate from DigiCert, 
> my installer is still blocked by Windows Smart Screen because Microsoft 
> security servers don't have enough data (=people downloading the app and 
> successfully installing it on Windows) to assess my installer's "reputation". 
> So it's a chicken and egg problem : I need many people to install my app to 
> remove the blocking by Windows, but Windows scares most people to do so ! I 
> was recommended one solution: buy the 600$/year EV code signing certificate, 
> obviously I would prefer to avoid this solution for a software I provide for 
> free...
>
> Of course don't hesitate to forward the link to your musician friends, or add 
> a link to www.jjazzlab.com.
>
> Thank you
>
> Jerome
>

-
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: JJazzLab : a music application based on the Netbeans Platform

2019-10-05 Thread Jerome Lelasseux
 Thanks. I did some googling and checked the GlobalSign website, I only found a 
free SSL certificate (for website), not for code signing. I also found Certum 
which does "cheap" code signing for open source projects, but it's the 
entry-level certificate, not the EV level certificate.

Le samedi 5 octobre 2019 à 01:03:00 UTC+2, Emilian Bold 
 a écrit :  
 
 Don't know what the proper channel is (Twitter?) but GlobalSign gives
away free EV code signing certificates for open-source
software/developers.

--emi

On Sat, Oct 5, 2019 at 12:57 AM Jerome Lelasseux
 wrote:
>
> Dear Netbeans family,
>
> After many many (too many) evenings and week-ends spent learning and coding, 
> I'm proud to make the 1st release of my free music application based on the 
> Netbeans Platform.
>
> It's here: https://www.jjazzlab.com   (NOT www.jazzlab.com !)
>
> If you're a musician and practice your instrument using backing tracks (maybe 
> with apps like Band in a box or iReal Pro, or with backing tracks from 
> YouTube), then you might be interested to try, and I would love to get your 
> feedback (and bug reports!).
>
> If you're not a musician but you're a Windows user, you can also help in 2 
> minutes:  just download and install the app, then deinstall. You will 
> probably get a Windows Smart Screen alert, don't worry, click on the "more 
> info" text and you'll see the "Run Anyway" button. Explanations below.
>
>
> Windows Smart Screen problem:
> Although I spent 80$ buying a 1 year code signing certificate from DigiCert, 
> my installer is still blocked by Windows Smart Screen because Microsoft 
> security servers don't have enough data (=people downloading the app and 
> successfully installing it on Windows) to assess my installer's "reputation". 
> So it's a chicken and egg problem : I need many people to install my app to 
> remove the blocking by Windows, but Windows scares most people to do so ! I 
> was recommended one solution: buy the 600$/year EV code signing certificate, 
> obviously I would prefer to avoid this solution for a software I provide for 
> free...
>
> Of course don't hesitate to forward the link to your musician friends, or add 
> a link to www.jjazzlab.com.
>
> Thank you
>
> Jerome
>

-
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
  

JJazzLab : a music application based on the Netbeans Platform

2019-10-04 Thread Jerome Lelasseux
Dear Netbeans family,
After many many (too many) evenings and week-ends spent learning and coding, 
I'm proud to make the 1st release of my free music application based on the 
Netbeans Platform. 

It's here: https://www.jjazzlab.com    (NOT www.jazzlab.com !)
If you're a musician and practice your instrument using backing tracks (maybe 
with apps like Band in a box or iReal Pro, or with backing tracks from 
YouTube), then you might be interested to try, and I would love to get your 
feedback (and bug reports!).

If you're not a musician but you're a Windows user, you can also help in 2 
minutes:  just download and install the app, then deinstall. You will probably 
get a Windows Smart Screen alert, don't worry, click on the "more info" text 
and you'll see the "Run Anyway" button. Explanations below.


Windows Smart Screen problem: 
Although I spent 80$ buying a 1 year code signing certificate from DigiCert, my 
installer is still blocked by Windows Smart Screen because Microsoft security 
servers don't have enough data (=people downloading the app and successfully 
installing it on Windows) to assess my installer's "reputation". So it's a 
chicken and egg problem : I need many people to install my app to remove the 
blocking by Windows, but Windows scares most people to do so ! I was 
recommended one solution: buy the 600$/year EV code signing certificate, 
obviously I would prefer to avoid this solution for a software I provide for 
free...

Of course don't hesitate to forward the link to your musician friends, or add a 
link to www.jjazzlab.com.

Thank you

Jerome


Re : Re: Java 8 still on Java.com

2019-10-01 Thread Jerome Lelasseux
If you search the mail archive I asked the same question just a few weeks 
ago...  
Following advises here I ended up :- creating an Ant target which depends on 
the built-in target that generate the standard NB zip installer, - and calls a 
bash script which prepare the distribution packages: copy the files from the 
zip, include a jre, update etc/myapp.conf to point to the bundled jre, run 
innosetup compiler+code signing (for windows).
Look at praxislive code on github from Neil c Smith, it was a good starting 
point for me.
Jerome

Envoyé depuis Yahoo Mail pour iPhone


Le mardi, octobre 1, 2019, 3:05 AM, Derik Devecchio  
a écrit :

Emillian,
Thanks for getting back to me.    I am not trying to re-invent “write once run 
anywhere”.    I accept that everything is going to need an installer now.The 
question is, how do I get from “Clean and Build” to  .EXE file that includes a 
JRE?   

You said "For Windows/macOS you probably can use something cross platform 
(seethe NetBeans installer), “  
Do you mean the installer for Netbeans?  Or do you mean installers for OSX and 
Windows?

but you will run into the problem of digitally signing your app

That is a good point.  I had not thought of that.

—derik






On Sep 30, 2019, at 12:20 PM, Emilian Bold  wrote:
Well, there is a public facing Java distribution such as AdoptOpenJDK
and many Linux distros provide their own (see 
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.jchoice.eu=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY=sRQt0MZb0dUUHASasyKDy5c_gUle6iLsp6tUkf-OpCc=
 ).
So, at least on Linux, you will have some form of Java in their
repositories. Although even there there's nothing stopping you to ship
your own runtime (as part of something like 
https://urldefense.proofpoint.com/v2/url?u=http-3A__snapcraft.io=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY=tFOZsRRrzPuhzZW48XWAsduCgxI_R1hkW0Uot_qWGBU=
 or manually).

But Java is no longer something users install / update.

Supporting all the Unix-like OSes seems like a non-trivial job in
itself. The NetBeans installer is just a 
https://urldefense.proofpoint.com/v2/url?u=http-3A__linux-2Dx64.sh=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY=XwiporXmMd6KO0T77eE-8ebQmMoQ9ogI8_JwrnsYZ7M=
 file, not a
rpm/deb.

For Windows/macOS you probably can use something cross platform (see
the NetBeans installer), but you will run into the problem of
digitally signing your app. For that I don't know of a cross platform
solution.

So, for example, although I build CoolBeans on a Linux build server, I
still have to digitally sign the installer on a Mac and on a Windows
machine.

--emi

On Mon, Sep 30, 2019 at 9:15 PM Derik Devecchio
 wrote:




On Sep 30, 2019, at 9:55 AM, Emilian Bold 

 wrote:

Java is no longer an user-facing product, it's middleware.



Okay, that sounds like an improvement from where I am standing, but…  Can 
Netbeans help me with that now?

The last time I looked into bundling the JRE with my program, I think it was in 
the early release days of Java9 (Netbeans 8.2 was still the IDE of choice). 
You could specify such a build, but it required linking the IDE to 3rd party 
software.   Also, at the time, it required that you have a development station 
for each OS.   You couldn’t make Windows apps on a Mac and visa versa, to say 
nothing of the dozen or so flavors of Linux out there.   To make matters worse, 
at the time, the required third party software was different for each OS.   
There were many competing options for each OS, each with dozens different 
options that need to be (a) learned and (b) configured correctly for each of 
your development stations.   Finally, creating the installer was a multi-step 
process for each OS.   As I said, this was shortly after the release of Java9 - 
so it was years ago.


Has the state of the art advanced since that time?    I am thinking maybe a 
plugin for Netbeans that allows me to tick off the OS’s I want to support with 
a menu option to build all the installers when I am ready to distribute.   
Maybe I need a separate installer plugin for each OS that includes binaries of 
the JRE for that OS?

And what about the Unix-like OS’s?   I just assumed that if you used unix at 
all, then you were smart enough to install the JRE.  But if there /is/ no 
public facing JRE, and I need to provide that for them, then wouldn’t I need to 
provide a separate installer for each and every Unix-like OS on the market?   
There 

Re : Re: Error Illegal reflective access by org.netbeans.ProxyURLStreamHandlerFactory

2019-09-20 Thread Jerome Lelasseux
Just to understand, what is the potential impact of this warning on the 
application ?


Envoyé depuis Yahoo Mail pour iPhone


Le vendredi, septembre 20, 2019, 4:35 PM, Neil C Smith  
a écrit :

On Fri, 20 Sep 2019 at 15:26, Jerome Lelasseux
 wrote:
> When I start the launcher of my platform app from the command line I notice 
> the error below, although my program runs fine.
>
> $ ./JJazzLab64.exe
> WARNING: An illegal reflective access operation has occurred
...
> On Google a lot of people experienced this error on Linux because of problems 
> between Netbeans 8 and JDK>8. Solution for them was to use NB8+JDK8.

It's not an error, just a warning.  Are you using your own
configuration file in etc/jjazzlab.conf ?  You can add the relevant
--add-opens etc.  The IDE has similar at
https://github.com/apache/netbeans/blob/master/nb/ide.launcher/netbeans.conf#L65
 Or you can ignore it for now.

Actually, NetBeans itself still has a similar warning.

And we should probably update the RCP default conf file?

Best wishes,

Neil





Error Illegal reflective access by org.netbeans.ProxyURLStreamHandlerFactory

2019-09-20 Thread Jerome Lelasseux
Hello,
When I start the launcher of my platform app from the command line I notice the 
error below, although my program runs fine.
$ ./JJazzLab64.exeWARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.netbeans.ProxyURLStreamHandlerFactory 
(file:/C:/Users/ll/Desktop/JJazzLab/platform/lib/boot.jar) to field 
java.net.URL.handler
WARNING: Please consider reporting this to the maintainers of 
org.netbeans.ProxyURLStreamHandlerFactory
WARNING: Use --illegal-access=warn to enable warnings of further illegal 
reflective access operations
WARNING: All illegal access operations will be denied in a future release

On Google a lot of people experienced this error on Linux because of problems 
between Netbeans 8 and JDK>8. Solution for them was to use NB8+JDK8.

In my case I'm using Win10 with NB11, and both NB11 and my application use 
AdoptOpenJDK11.0.4. Any idea ?



Re: How to generate Javadoc for a module suite ?

2019-09-19 Thread Jerome Lelasseux
My answer to my own question.  I think it's not optimal since it puts *all* of 
the platform JARs in the javadoc classpath. But it does the job.


Content of an Ant target to be put in the module suite build.xml.


  
   
    
      
        
      
         
    
          
      
    
  


---

Le mardi 17 septembre 2019 à 22:33:28 UTC+2, Jerome Lelasseux 
 a écrit :  
 
 Using the IDE I can generate a javadoc project by project (module by module). 
But how to do it on a module suite?  Any help welcome.

I tried adding an Ant target for this (reusing part of the PraxisLive 
build.xml) to do this but it does not work :  I don't know how to get the 
-classpath parameters for the Ant javadoc command, i.e. retrieve the list of NB 
platform jars used by my code.  I'm new to Ant and to the NB build harness...


  

Re: Releasing a Netbeans platform application to the general public

2019-09-17 Thread Jerome Lelasseux
 Thank you I'll try this week with InnoSetup.
> I'd be very interested to hear more about the underlying architecture
> in use - I write / maintain a variety of audio and media Java
> libraries as well.I will open source all the infrastructure code. Note that 
> it is a 100% Midi based application.


Le mardi 17 septembre 2019 à 17:53:54 UTC+2, Neil C Smith 
 a écrit :  
 
 On Sun, 15 Sep 2019 at 22:06, Jerome Lelasseux
 wrote:
> 1/ bundle a JRE and it must be OpenJDK
> or
> 2/ have the installer check if a JRE is there, and if not, ask user to 
> install a JRE on its own (then he can choose Oracle or whatever). I assume 
> that after JRE installation my Netbeans app will automatically find this JRE ?

Definitely go with 1!

> InnoSetup is probably be a good idea: I guess it's more powerful and flexible 
> than Netbeans installers, but I'm concerned by the time needed to learn yet 
> another topic... Does InnoSetup simplifies the "installer signing" ?

If it's any use, my InnoSetup file is here -
https://github.com/praxis-live/praxis-live/blob/master/resources/pl-installer.iss.template
 It's fairly simple, really, and could do more, but does the job.  I
only recently stopped running this manually and templated it for use
with Ant - only replaces ${app.version}

Should be easy enough to adapt and experiment with.  It's more
flexible more easily than the NetBeans installer, and handles things
like in-place upgrades and shortcut icons much more simply.  But the
primary benefit is not having to rely on the embedded JRE to run.  In
fact, I did start looking at the possibility of a NetBeans IDE
installer with it that could offer to download the JDK as part of the
installation process.

> As some of you seem curious, here is a video I just finished today. It's a 
> private link for preview only, because web site is not online yet, etc.
> https://youtu.be/v80Wm6joYxs

Looks great!  My own first degree (some time ago) was in music, and I
can think of at least one other person around here who should
appreciate a jazz application on NetBeans platform! :-)

Reminds me a little of Frinika, which at one point had a fork on to
NetBeans RCP.  And there's also Blue of course.

I'd be very interested to hear more about the underlying architecture
in use - I write / maintain a variety of audio and media Java
libraries as well.

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

  

How to generate Javadoc for a module suite ?

2019-09-17 Thread Jerome Lelasseux
Using the IDE I can generate a javadoc project by project (module by module). 
But how to do it on a module suite?  Any help welcome.

I tried adding an Ant target for this (reusing part of the PraxisLive 
build.xml) to do this but it does not work :  I don't know how to get the 
-classpath parameters for the Ant javadoc command, i.e. retrieve the list of NB 
platform jars used by my code.  I'm new to Ant and to the NB build harness...




Re : Re: Releasing a Netbeans platform application to the general public

2019-09-17 Thread Jerome Lelasseux
I agree... I think it was working like you said when I started my project many 
(many) years ago, but since then context has changed a lot, Windows does not 
embed anymore java by default, etc


Envoyé depuis Yahoo Mail pour iPhone


Le mardi, septembre 17, 2019, 12:05 PM, Judi Rastall  a écrit 
:

I have been following this thread with interest as I am building a 
project for distribution into the hobby market. I am a hobbyist and I am 
having to learn Java along the way but that's another story.

I thought the whole point of Java is that it is cross-platform and that 
each user would install the JRE appropriate to their platform's OS. 
Attempting to bundle a JRE with the distribution has to be platform 
specific which defeats the object? I was under the impression that, if 
you tried to launch the jar file and it could not find a JRE, it would 
prompt to download.

Judi R



-
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: Releasing a Netbeans platform application to the general public

2019-09-15 Thread Jerome Lelasseux
 Thanks all for your feedback.
I checked the new Oracle license : I understood that I can use JRE on my own 
computer, but I can NOT bundle it and redistribute it. 

So I have the following choices:
1/ bundle a JRE and it must be OpenJDKor
2/ have the installer check if a JRE is there, and if not, ask user to install 
a JRE on its own (then he can choose Oracle or whatever). I assume that after 
JRE installation my Netbeans app will automatically find this JRE ? 


InnoSetup is probably be a good idea: I guess it's more powerful and flexible 
than Netbeans installers, but I'm concerned by the time needed to learn yet 
another topic... Does InnoSetup simplifies the "installer signing" ?

As some of you seem curious, here is a video I just finished today. It's a 
private link for preview only, because web site is not online yet, etc.
https://youtu.be/v80Wm6joYxs




Le dimanche 15 septembre 2019 à 21:59:03 UTC+2, Emilio G. C. 
 a écrit :  
 
 Something else to note, if you bundle the JRE, make sure Oracle's new 
licensing fits your case. I must admit I don't quite understand it fully, but 
in the case of the newest Java 8 releases, it might be something to consider.

Emilio

From: Jerome Lelasseux 
Sent: Sunday, September 15, 2019 14:36
To: Emilian Bold 
Cc: NetBeans Mailing 
Subject: Re: Releasing a Netbeans platform application to the general public I 
see. I thought most Windows users had a JRE installed...
Bundling a JRE adds 40MB to my 18MB package, it's a pity... Is there a way to 
do it simply directly from Netbeans ? I'll need 2 different packages for 
32/64bits ? Same for the signing process, no idea from where to start, I'll 
Google it but if you have some good pointer this will help !
Thank you.


Le dimanche 15 septembre 2019 à 18:11:27 UTC+2, Emilian Bold 
 a écrit :

Especially for non technical users you can assume they will have no Java so you 
must include a JRE. I recommend AdoptOpenJDK 11.
Signed installers would be nice if you don't want Windows to scare away your 
users.

--emi
dum., 15 sept. 2019, 18:22 Jerome Lelasseux  a 
scris:

Hello,
I develop in my spare time a Netbeans platform music application targeted at 
individual musicians (professional or amateur). The application is based on 
NB11/Java7. I test it on Win10(x64) and on a Linux Mint distribution, though I 
expect most of the users will be on Windows. At the beginning I won't release a 
Mac version.

In a few weeks I will put it online for the first time, and I'm interested to 
get recommendations from experienced people regarding possible 
installation/configuration problems on user machines.

For example is it realistic to assume that most users will have Oracle JRE7 
already installed ? Is it better to embed a JRE in my download package ? etc.

ThanksJerome






  

Re: Releasing a Netbeans platform application to the general public

2019-09-15 Thread Jerome Lelasseux
 I see. I thought most Windows users had a JRE installed...
Bundling a JRE adds 40MB to my 18MB package, it's a pity... Is there a way to 
do it simply directly from Netbeans ? I'll need 2 different packages for 
32/64bits ? Same for the signing process, no idea from where to start, I'll 
Google it but if you have some good pointer this will help !
Thank you.


Le dimanche 15 septembre 2019 à 18:11:27 UTC+2, Emilian Bold 
 a écrit :  
 
 Especially for non technical users you can assume they will have no Java so 
you must include a JRE. I recommend AdoptOpenJDK 11.
Signed installers would be nice if you don't want Windows to scare away your 
users.

--emi
dum., 15 sept. 2019, 18:22 Jerome Lelasseux  a 
scris:

Hello,
I develop in my spare time a Netbeans platform music application targeted at 
individual musicians (professional or amateur). The application is based on 
NB11/Java7. I test it on Win10(x64) and on a Linux Mint distribution, though I 
expect most of the users will be on Windows. At the beginning I won't release a 
Mac version.

In a few weeks I will put it online for the first time, and I'm interested to 
get recommendations from experienced people regarding possible 
installation/configuration problems on user machines.

For example is it realistic to assume that most users will have Oracle JRE7 
already installed ? Is it better to embed a JRE in my download package ? etc.

ThanksJerome






  

Re: Releasing a Netbeans platform application to the general public

2019-09-15 Thread Jerome Lelasseux
I mentionned Java7 as a minimum version, actually the application works fine 
with JDK12 too.

Le dimanche 15 septembre 2019 à 17:41:33 UTC+2, Thomas Wolf 
 a écrit :  
 
 I can’t speak for general users, but in enterprises you can’t assume Java - 
much less an ancient one like 7.   I don’t even think that’s available for 
download anymore, is it?  If that’s all you’ve tested with, i think you’d have 
to include it with your installation.
Just my opinion, of course.tom

On Sep 15, 2019, at 11:22 AM, Jerome Lelasseux  
wrote:



Hello,
I develop in my spare time a Netbeans platform music application targeted at 
individual musicians (professional or amateur). The application is based on 
NB11/Java7. I test it on Win10(x64) and on a Linux Mint distribution, though I 
expect most of the users will be on Windows. At the beginning I won't release a 
Mac version.

In a few weeks I will put it online for the first time, and I'm interested to 
get recommendations from experienced people regarding possible 
installation/configuration problems on user machines.

For example is it realistic to assume that most users will have Oracle JRE7 
already installed ? Is it better to embed a JRE in my download package ? etc.

ThanksJerome






  

Releasing a Netbeans platform application to the general public

2019-09-15 Thread Jerome Lelasseux
Hello,
I develop in my spare time a Netbeans platform music application targeted at 
individual musicians (professional or amateur). The application is based on 
NB11/Java7. I test it on Win10(x64) and on a Linux Mint distribution, though I 
expect most of the users will be on Windows. At the beginning I won't release a 
Mac version.

In a few weeks I will put it online for the first time, and I'm interested to 
get recommendations from experienced people regarding possible 
installation/configuration problems on user machines.

For example is it realistic to assume that most users will have Oracle JRE7 
already installed ? Is it better to embed a JRE in my download package ? etc.

ThanksJerome







Re: Netbeans migration 8.2 => 11, annotation processor uncaught exceptions

2019-07-18 Thread Jerome Lelasseux
 I have not found the origin of the problem but I found a workaround: I did a 
clean reinstall of NB11 and this time I did not let NB11 "import settings from 
NB8.2", and everything compiled OK !


Le jeudi 18 juillet 2019 à 21:35:18 UTC+2, Geertjan Wielenga 
 a écrit :  
 
 OK, I'd suggest since you're seeing that, to see if making that change will 
fix this problem.
You're going to encounter a lot of things you need to change, small and large, 
between 8.2 and 11.0, so this is a small step in that direction, please be 
prepared for more.
Gj
On Thu, Jul 18, 2019 at 9:24 PM Jerome Lelasseux  wrote:

 I don't think the message is clear, it does not even mention the file name 
where problem occured...

And I had checked the doc, the enabledOn parameter is only for context aware 
actions, here my action is a simple always-enabled action.


Le jeudi 18 juillet 2019 à 21:06:05 UTC+2, Geertjan Wielenga 
 a écrit :  
 
 The message is clear:

java.lang.annotation.IncompleteAnnotationException: 
org.openide.awt.ActionRegistration missing element enabledOn

See:
http://bits.netbeans.org/dev/javadoc/org-openide-awt/org/openide/awt/ActionRegistration.html#enabledOn--

It sounds like you need to add that attribute to the ActionRegistration 
annotation, everywhere where you're using it.
Gj



On Thu, Jul 18, 2019 at 8:27 PM Jerome Lelasseux  
wrote:

So I tried recompiling my RCP application with Netbeans 11 (Win10, Oracle JDK 
8).

I get these annotation exceptions for all registered actions:

An annotation processor threw an uncaught exception.Consult the following stack 
trace for details.java.lang.annotation.IncompleteAnnotationException: 
org.openide.awt.ActionRegistration missing element enabledOn
    at 
sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:81)
    at com.sun.proxy.$Proxy371.enabledOn(Unknown Source)
    at 
org.netbeans.modules.openide.awt.ActionProcessor.handleProcess(ActionProcessor.java:302)

Here is an example of source code which fails :

@ActionID(category = "Help", id = "org.jjazzlab.base.actions.AboutAction")
@ActionRegistration(displayName = "#CTL_About", lazy=true)
@ActionReference(path = "Menu/Help", position = 2000)
@Messages("CTL_About=About")
public final class AboutAction implements ActionListener
{    
    @Override
    public void actionPerformed(ActionEvent e)
    {
    AboutDialog dialog = new AboutDialog();
    dialog.setVisible(true);
    }
}

I removed all module dependencies and readded them in Netbeans 11 to make sure 
I have the appropriate versions but it did not solve the problem... 

Any idea ? 




Le jeudi 18 juillet 2019 à 15:45:12 UTC+2, Geertjan Wielenga 
 a écrit :  
 
 Stop using 8.2 and use the latest Apache NetBeans instead, see 
netbeans.apache.org.
Gj
On Thu, Jul 18, 2019 at 3:37 PM Jerome Lelasseux  
wrote:

Hello,
Sometimes Netbeans takes forever at startup (more than 5 min of splash screen, 
usually it's about 10-20sec) and I don't understand why. During general use 
(compilation etc) it also became much slower than it used to be. I have not 
done changes to my PC which could explain this, other apps run fine. I tried 
reinstall, cleaning Netbeans cache, disabling antivirus, ...
What should I try to identify the source of the problem ? 

Thank you.


  
 Product Version: NetBeans IDE 8.2 (Build 201610071157) 
 
 Updates: NetBeans IDE is updated to version NetBeans 8.2 Patch 2 
 
 Java: 1.8.0_221; Java HotSpot(TM) 64-Bit Server VM 25.221-b11 
 
 Runtime: Java(TM) SE Runtime Environment 1.8.0_221-b11 
 
 System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb) 
 
 User directory: C:\Users\Administrateur.000\AppData\Roaming\NetBeans\8.2 
 
 Cache directory: C:\Users\Administrateur.000\AppData\Local\NetBeans\Cache\8.2 
  

Jerome

  
  
  

Re: Netbeans migration 8.2 => 11, annotation processor uncaught exceptions

2019-07-18 Thread Jerome Lelasseux
 I don't think the message is clear, it does not even mention the file name 
where problem occured...

And I had checked the doc, the enabledOn parameter is only for context aware 
actions, here my action is a simple always-enabled action.


Le jeudi 18 juillet 2019 à 21:06:05 UTC+2, Geertjan Wielenga 
 a écrit :  
 
 The message is clear:

java.lang.annotation.IncompleteAnnotationException: 
org.openide.awt.ActionRegistration missing element enabledOn

See:
http://bits.netbeans.org/dev/javadoc/org-openide-awt/org/openide/awt/ActionRegistration.html#enabledOn--

It sounds like you need to add that attribute to the ActionRegistration 
annotation, everywhere where you're using it.
Gj



On Thu, Jul 18, 2019 at 8:27 PM Jerome Lelasseux  
wrote:

So I tried recompiling my RCP application with Netbeans 11 (Win10, Oracle JDK 
8).

I get these annotation exceptions for all registered actions:

An annotation processor threw an uncaught exception.Consult the following stack 
trace for details.java.lang.annotation.IncompleteAnnotationException: 
org.openide.awt.ActionRegistration missing element enabledOn
    at 
sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:81)
    at com.sun.proxy.$Proxy371.enabledOn(Unknown Source)
    at 
org.netbeans.modules.openide.awt.ActionProcessor.handleProcess(ActionProcessor.java:302)

Here is an example of source code which fails :

@ActionID(category = "Help", id = "org.jjazzlab.base.actions.AboutAction")
@ActionRegistration(displayName = "#CTL_About", lazy=true)
@ActionReference(path = "Menu/Help", position = 2000)
@Messages("CTL_About=About")
public final class AboutAction implements ActionListener
{    
    @Override
    public void actionPerformed(ActionEvent e)
    {
    AboutDialog dialog = new AboutDialog();
    dialog.setVisible(true);
    }
}

I removed all module dependencies and readded them in Netbeans 11 to make sure 
I have the appropriate versions but it did not solve the problem... 

Any idea ? 




Le jeudi 18 juillet 2019 à 15:45:12 UTC+2, Geertjan Wielenga 
 a écrit :  
 
 Stop using 8.2 and use the latest Apache NetBeans instead, see 
netbeans.apache.org.
Gj
On Thu, Jul 18, 2019 at 3:37 PM Jerome Lelasseux  
wrote:

Hello,
Sometimes Netbeans takes forever at startup (more than 5 min of splash screen, 
usually it's about 10-20sec) and I don't understand why. During general use 
(compilation etc) it also became much slower than it used to be. I have not 
done changes to my PC which could explain this, other apps run fine. I tried 
reinstall, cleaning Netbeans cache, disabling antivirus, ...
What should I try to identify the source of the problem ? 

Thank you.


  
 Product Version: NetBeans IDE 8.2 (Build 201610071157) 
 
 Updates: NetBeans IDE is updated to version NetBeans 8.2 Patch 2 
 
 Java: 1.8.0_221; Java HotSpot(TM) 64-Bit Server VM 25.221-b11 
 
 Runtime: Java(TM) SE Runtime Environment 1.8.0_221-b11 
 
 System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb) 
 
 User directory: C:\Users\Administrateur.000\AppData\Roaming\NetBeans\8.2 
 
 Cache directory: C:\Users\Administrateur.000\AppData\Local\NetBeans\Cache\8.2 
  

Jerome

  
  

Netbeans migration 8.2 => 11, annotation processor uncaught exceptions

2019-07-18 Thread Jerome Lelasseux
So I tried recompiling my RCP application with Netbeans 11 (Win10, Oracle JDK 
8).

I get these annotation exceptions for all registered actions:

An annotation processor threw an uncaught exception.Consult the following stack 
trace for details.java.lang.annotation.IncompleteAnnotationException: 
org.openide.awt.ActionRegistration missing element enabledOn
    at 
sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:81)
    at com.sun.proxy.$Proxy371.enabledOn(Unknown Source)
    at 
org.netbeans.modules.openide.awt.ActionProcessor.handleProcess(ActionProcessor.java:302)

Here is an example of source code which fails :

@ActionID(category = "Help", id = "org.jjazzlab.base.actions.AboutAction")
@ActionRegistration(displayName = "#CTL_About", lazy=true)
@ActionReference(path = "Menu/Help", position = 2000)
@Messages("CTL_About=About")
public final class AboutAction implements ActionListener
{    
    @Override
    public void actionPerformed(ActionEvent e)
    {
    AboutDialog dialog = new AboutDialog();
    dialog.setVisible(true);
    }
}

I removed all module dependencies and readded them in Netbeans 11 to make sure 
I have the appropriate versions but it did not solve the problem... 

Any idea ? 




Le jeudi 18 juillet 2019 à 15:45:12 UTC+2, Geertjan Wielenga 
 a écrit :  
 
 Stop using 8.2 and use the latest Apache NetBeans instead, see 
netbeans.apache.org.
Gj
On Thu, Jul 18, 2019 at 3:37 PM Jerome Lelasseux  
wrote:

Hello,
Sometimes Netbeans takes forever at startup (more than 5 min of splash screen, 
usually it's about 10-20sec) and I don't understand why. During general use 
(compilation etc) it also became much slower than it used to be. I have not 
done changes to my PC which could explain this, other apps run fine. I tried 
reinstall, cleaning Netbeans cache, disabling antivirus, ...
What should I try to identify the source of the problem ? 

Thank you.


  
 Product Version: NetBeans IDE 8.2 (Build 201610071157) 
 
 Updates: NetBeans IDE is updated to version NetBeans 8.2 Patch 2 
 
 Java: 1.8.0_221; Java HotSpot(TM) 64-Bit Server VM 25.221-b11 
 
 Runtime: Java(TM) SE Runtime Environment 1.8.0_221-b11 
 
 System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb) 
 
 User directory: C:\Users\Administrateur.000\AppData\Roaming\NetBeans\8.2 
 
 Cache directory: C:\Users\Administrateur.000\AppData\Local\NetBeans\Cache\8.2 
  

Jerome

  

Re : Re: Netbeans 8.2 became too slow

2019-07-18 Thread Jerome Lelasseux
Ok i will try.


Envoyé depuis Yahoo Mail pour iPhone


Le jeudi, juillet 18, 2019, 3:45 PM, Geertjan Wielenga  a 
écrit :

Stop using 8.2 and use the latest Apache NetBeans instead, see 
netbeans.apache.org.
Gj
On Thu, Jul 18, 2019 at 3:37 PM Jerome Lelasseux  
wrote:

Hello,
Sometimes Netbeans takes forever at startup (more than 5 min of splash screen, 
usually it's about 10-20sec) and I don't understand why. During general use 
(compilation etc) it also became much slower than it used to be. I have not 
done changes to my PC which could explain this, other apps run fine. I tried 
reinstall, cleaning Netbeans cache, disabling antivirus, ...
What should I try to identify the source of the problem ? 

Thank you.


  
 Product Version: NetBeans IDE 8.2 (Build 201610071157) 
 
 Updates: NetBeans IDE is updated to version NetBeans 8.2 Patch 2 
 
 Java: 1.8.0_221; Java HotSpot(TM) 64-Bit Server VM 25.221-b11 
 
 Runtime: Java(TM) SE Runtime Environment 1.8.0_221-b11 
 
 System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb) 
 
 User directory: C:\Users\Administrateur.000\AppData\Roaming\NetBeans\8.2 
 
 Cache directory: C:\Users\Administrateur.000\AppData\Local\NetBeans\Cache\8.2 
  

Jerome






Netbeans 8.2 became too slow

2019-07-18 Thread Jerome Lelasseux
Hello,
Sometimes Netbeans takes forever at startup (more than 5 min of splash screen, 
usually it's about 10-20sec) and I don't understand why. During general use 
(compilation etc) it also became much slower than it used to be. I have not 
done changes to my PC which could explain this, other apps run fine. I tried 
reinstall, cleaning Netbeans cache, disabling antivirus, ...
What should I try to identify the source of the problem ? 

Thank you.


  
 Product Version: NetBeans IDE 8.2 (Build 201610071157) 
 
 Updates: NetBeans IDE is updated to version NetBeans 8.2 Patch 2 
 
 Java: 1.8.0_221; Java HotSpot(TM) 64-Bit Server VM 25.221-b11 
 
 Runtime: Java(TM) SE Runtime Environment 1.8.0_221-b11 
 
 System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb) 
 
 User directory: C:\Users\Administrateur.000\AppData\Roaming\NetBeans\8.2 
 
 Cache directory: C:\Users\Administrateur.000\AppData\Local\NetBeans\Cache\8.2 
  

Jerome


Netbeans API website down ?

2019-05-22 Thread Jerome Lelasseux
Am I the only one to see Netbeans API websites down ? Below are the first 
results when I google "netbeans API", which I've been doing for years without 
any problem...

http://bits.netbeans.org/10.0/javadoc/    => "You don't have permission to 
access /10.0/javadoc/on this server."  (same if I replace 10.0 with 11.0)
https://bits.netbeans.org/dev/javadoc/   same
https://netbeans.org/api   => I see a page with the text below
{
  "projects_href": "https://netbeans.org/api/projects;,
  "services_href": "https://netbeans.org/api/services;,
  "licenses_href": "https://netbeans.org/api/licenses;,
  "content_type": "application/vnd.com.kenai+json"
}

The only site working for me is :http://137.254.56.27/7.2/javadoc/   


Jerome





How to remove the "Customize" menu item from toolbars popupmenu ?

2019-05-07 Thread Jerome Lelasseux
In my RCP app the Customize action from the toolbars popup menu confuses users 
and I'd like to remove it. 

Problem is that the popupmenu is not built from the layer file, it is hardcoded 
(module Core Windows / ToolbarConfiguration.java / method fillToolbarsMenu() 
method)... Is there a workaround ? Thanks.
Jerome



Re: New @ActionState annotation doc ?

2019-05-07 Thread Jerome Lelasseux
 Thank you.

Le mardi 7 mai 2019 à 09:34:08 UTC+2, Geertjan Wielenga 
 a écrit :  
 
 There's a reference to it here, though indeed the link to @ActionState 
indicates that the javadoc is missing:
https://bits.netbeans.org/10.0/javadoc/apichanges.html

On the other hand, there's no point in googling when you know the sources are 
available directly on GitHub, i.e., here in this case, lots of info in there:
https://github.com/apache/netbeans/blob/master/platform/openide.awt/src/org/openide/awt/awt/ActionState.java

Gj
On Tue, May 7, 2019 at 9:25 AM Jerome Lelasseux  
wrote:

Hello,
I switched from 8.2 to 11 and I get warning messages about my now deprecated 
BooleanStateActions. The API doc recommends to use the new @ActionState 
annotation instead, but the ActionState javadoc is missing, and I could not 
find help on Google...

Jerome



  

New @ActionState annotation doc ?

2019-05-07 Thread Jerome Lelasseux
Hello,
I switched from 8.2 to 11 and I get warning messages about my now deprecated 
BooleanStateActions. The API doc recommends to use the new @ActionState 
annotation instead, but the ActionState javadoc is missing, and I could not 
find help on Google...

Jerome




Re: My Netbeans RCP app fails when launched via the Netbeans-generated installer

2019-04-16 Thread Jerome Lelasseux
I finally found a "clean fix": in my Netbeans project/properties/libraries, I 
removed the "Filesystems API 8.0 Compatibility" and "Execution API 
8.Compatibility" modules from the Platform cluster, which were useless for my 
app. 

Now the distribution packages run fine.


I found some explanation, seems like a bug from Netbeans 8.1: 
"asm-all-5.0.1.jar" ismissing in the created "dist/MyApp/platform/core" 
folder...
Found this link: [Bug 257807] New: Cannot run zipped distribution build on top 
of platform 8.1 - heit...@netbeans.org - org.netbeans.autoupdate.issues - 
MarkMail

| 
| 
| 
 | 
[Bug 257807] New: Cannot run zipped distribution build on top of platfor...
 |

 |

 |





   Le lundi 15 avril 2019 à 22:44:38 UTC+2, Jerome Lelasseux 
 a écrit :  
 
 Hello,
My Netbeans RCP application compiles and works fine when started from the IDE 
(Netbeans 11/Win10). 
If I start it using the Netbeans-generated installer, I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: 
org/objectweb/asm/ClassVisitor while loading 
org.openide.filesystems.FileSystem; see 
http://wiki.netbeans.org/DevFaqTroubleshootClassNotFound
at 
org.netbeans.ProxyClassLoader.selfLoadClass(ProxyClassLoader.java:238)
at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:162)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.netbeans.core.startup.CLIOptions.cli(CLIOptions.java:134)
at org.netbeans.core.startup.CLIOptions.cli(CLIOptions.java:73)
at org.netbeans.CLIHandler.notifyHandlers(CLIHandler.java:209)
at org.netbeans.CLIHandler.initialize(CLIHandler.java:494)
at org.netbeans.CLIHandler.initialize(CLIHandler.java:359)
at org.netbeans.MainImpl.execute(MainImpl.java:168)
at org.netbeans.MainImpl.main(MainImpl.java:60)
at org.netbeans.Main.main(Main.java:58)
Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.netbeans.PatchByteCode.patchAsmMethod(PatchByteCode.java:161)
at org.netbeans.PatchByteCode.apply(PatchByteCode.java:152)
at org.netbeans.JarClassLoader.doLoadClass(JarClassLoader.java:226)
at 
org.netbeans.ProxyClassLoader.selfLoadClass(ProxyClassLoader.java:234)
... 10 more
Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.ClassVisitor 
starting from org.netbeans.MainImpl$BootClassLoader@31befd9f with possible 
defining loaders null and declared parents ]
at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:199)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 16 more
Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.ClassVisitor
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:197)
... 17 more
I tried with 2 different computers (Win10), with Netbeans 8 and Netbeans 11, 
same problem. My application uses Java 7.

I've checked http://wiki.netbeans.org/DevFaqTroubleshootClassNotFound as 
mentioned in the error message but I found no "verify-class-linkage" issue when 
I build the app. 

The only external library I use in the application is XStream which was added 
using a Module library wrapper.
I have really no idea what to try to solve this... Thanks for your help.
Jerome Lelasseux
 


My Netbeans RCP app fails when launched via the Netbeans-generated installer

2019-04-15 Thread Jerome Lelasseux
Hello,
My Netbeans RCP application compiles and works fine when started from the IDE 
(Netbeans 11/Win10). 
If I start it using the Netbeans-generated installer, I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: 
org/objectweb/asm/ClassVisitor while loading 
org.openide.filesystems.FileSystem; see 
http://wiki.netbeans.org/DevFaqTroubleshootClassNotFound
at 
org.netbeans.ProxyClassLoader.selfLoadClass(ProxyClassLoader.java:238)
at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:162)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.netbeans.core.startup.CLIOptions.cli(CLIOptions.java:134)
at org.netbeans.core.startup.CLIOptions.cli(CLIOptions.java:73)
at org.netbeans.CLIHandler.notifyHandlers(CLIHandler.java:209)
at org.netbeans.CLIHandler.initialize(CLIHandler.java:494)
at org.netbeans.CLIHandler.initialize(CLIHandler.java:359)
at org.netbeans.MainImpl.execute(MainImpl.java:168)
at org.netbeans.MainImpl.main(MainImpl.java:60)
at org.netbeans.Main.main(Main.java:58)
Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.netbeans.PatchByteCode.patchAsmMethod(PatchByteCode.java:161)
at org.netbeans.PatchByteCode.apply(PatchByteCode.java:152)
at org.netbeans.JarClassLoader.doLoadClass(JarClassLoader.java:226)
at 
org.netbeans.ProxyClassLoader.selfLoadClass(ProxyClassLoader.java:234)
... 10 more
Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.ClassVisitor 
starting from org.netbeans.MainImpl$BootClassLoader@31befd9f with possible 
defining loaders null and declared parents ]
at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:199)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 16 more
Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.ClassVisitor
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:197)
... 17 more
I tried with 2 different computers (Win10), with Netbeans 8 and Netbeans 11, 
same problem. My application uses Java 7.

I've checked http://wiki.netbeans.org/DevFaqTroubleshootClassNotFound as 
mentioned in the error message but I found no "verify-class-linkage" issue when 
I build the app. 

The only external library I use in the application is XStream which was added 
using a Module library wrapper.
I have really no idea what to try to solve this... Thanks for your help.
Jerome Lelasseux