Re: NetBeans installed but can't execute

2021-03-07 Thread Geertjan Wielenga
Put the class into a package.

Gj

On Mon, 8 Mar 2021 at 06:23, Zulfi Khan  wrote:

>
> Hi,
>
> I ran the remove command but astonishingly when I typed netbeans after the
> removal, it started netbeans 12.2. I have attached the image. I created the
> java mavern project but I can't understand how to write a simple  hello
> world program.
>
> Fortunately some how I got connected with the following link:
>
> https://netbeans.apache.org/kb/docs/java/quickstart.html
> 
>
> I created the hello world project as discussed in the above link but when
> I executed it, I got main class not found error, I have attached the image.
>
>
> Please guide me.
>
> Zulfi.
> On Sunday, March 7, 2021, 08:42:20 AM CST, Laszlo Kishalmi <
> laszlo.kisha...@gmail.com> wrote:
>
>
> Well, first make sure that you have removed the netbeans package with apt:
>
> sudo apt remove netbeans
>
> When that's installed the Snap package does not work
>
>
> Also I've noticed that your JAVA_HOME is bad. It should not point to the
> java executable, but a the directory where Java is being installed. On
> Ubuntu it is usually: /usr/lib/jvm/ java-8-openjdk-amd64 or /usr/lib/jvm/
> java-8-openjdk-amd64
>
> However the best thing you can do is not set the JAVA_HOME at all. So I'd
> recommend to remove the your JAVA_HOME from wherever you set that and
> reboot your machine.
> On 3/6/21 4:10 PM, Zulfi Khan wrote:
>
> Hi,
>
> I am trying to execute NetBeans 10.0 on my Ubuntu 18.04, But my Java
> version is 11.0. I found the following link:
>
>
> https://askubuntu.com/questions/1196172/netbeans-doesnt-work-in-18-04
> 
>
> I installed NetBeans 11 but still I am getting the same problem because it
> is executing NetBeans 10. I don't know how to execute NetBeans 11 classic.
>
>
> My $JAVA_HOME path is set to:
>
> $ echo $JAVA_HOME
>
> /usr/bin/java
>
> I am attaching the image also which can show you all the problems.
> Somebody please guide me.
>
>
> Zulfi.
>
>
> -
> 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: How do I get local terminal to work for cross platform development Windows - Debian Buster

2021-03-07 Thread Geertjan Wielenga
Do you need the Terminal window on the RPi3? Don't you already have a
terminal window there that you can use? How is this blocking you?

Gj

On Sun, Mar 7, 2021 at 11:01 PM frui...@yahoo.co.uk.INVALID
 wrote:

> Thanks for the quick response but I think that you have answered a
> different problem.
> If I run Netbeans on Windows locally and try to open a Terminal Window I
> get the message
> ""Local Terminal requires cygwin. Please install cygwin and restart the
> IDE".
>
> This is annoying but it is not the problem that I am trying to fix (at
> least at the moment).
>
> My problem is that, from Windows, I have opened a project not on the local
> host but on the RPi3. I have then manged to compile, build and run it on
> the RPi3.However if in Netbeans I try to open a terminal window which I
> assume is *on the RPI3* I get the message "Local Terminal is not
> supported on this system" - this is not the same error message as opening a
> terminal on the windows machine.
>
> Are you saying that installing cygwin on the Windows machine would allow
> me to open a terminal window on the Windows machine *and* on the RPi3?
> In my head, at least for now, these are separate issues?
>
>
>
> On Sunday, 7 March 2021, 21:29:24 GMT, Geertjan Wielenga <
> geertjan.wiele...@googlemail.com> wrote:
>
>
>
> https://ourcodeworld.com/articles/read/680/how-to-configure-an-integrated-terminal-command-prompt-in-netbeans-for-windows
>
> Gj
>
> On Sun, Mar 7, 2021 at 10:25 PM frui...@yahoo.co.uk.INVALID
>  wrote:
>
> I am running Apache Netbeans 12.2 on Windows 10.
> My target machine runs Raspberry Pi OS (Debian Buster).
>
> I have managed to develop a very simple C program using Netbeans on the
> Windows machine and to get it to compile and build on the RPi3.
> When I run it though the output in the Netbeans output window is
> incorrect, instead of "\n" appearing as a Carriage Return (CR) and Line
> Feed (LF) only the LFs appear.
>
> If, in NetBeans on the Windows machine, I try to open a terminal window I
> get the message "Local terminal is not supported on this system".
>
> What is the problem, how can I get Netbeans running on the Windows machine
> to open a terminal window on the Linux machine ?
>
>
>


Re: How do I get local terminal to work for cross platform development Windows - Debian Buster

2021-03-07 Thread frui...@yahoo.co.uk.INVALID
 Thanks for the quick response but I think that you have answered a different 
problem.If I run Netbeans on Windows locally and try to open a Terminal Window 
I get the message 
""Local Terminal requires cygwin. Please install cygwin and restart the IDE".
This is annoying but it is not the problem that I am trying to fix (at least at 
the moment).

My problem is that, from Windows, I have opened a project not on the local host 
but on the RPi3. I have then manged to compile, build and run it on the 
RPi3.However if in Netbeans I try to open a terminal window which I assume is 
on the RPI3 I get the message "Local Terminal is not supported on this system" 
- this is not the same error message as opening a terminal on the windows 
machine.
Are you saying that installing cygwin on the Windows machine would allow me to 
open a terminal window on the Windows machine and on the RPi3?In my head, at 
least for now, these are separate issues?


On Sunday, 7 March 2021, 21:29:24 GMT, Geertjan Wielenga 
 wrote:  
 
 
https://ourcodeworld.com/articles/read/680/how-to-configure-an-integrated-terminal-command-prompt-in-netbeans-for-windows

Gj
On Sun, Mar 7, 2021 at 10:25 PM frui...@yahoo.co.uk.INVALID 
 wrote:

I am running Apache Netbeans 12.2 on Windows 10.My target machine runs 
Raspberry Pi OS (Debian Buster).
I have managed to develop a very simple C program using Netbeans on the Windows 
machine and to get it to compile and build on the RPi3.When I run it though the 
output in the Netbeans output window is incorrect, instead of "\n" appearing as 
a Carriage Return (CR) and Line Feed (LF) only the LFs appear.
If, in NetBeans on the Windows machine, I try to open a terminal window I get 
the message "Local terminal is not supported on this system".
What is the problem, how can I get Netbeans running on the Windows machine to 
open a terminal window on the Linux machine ?


  

Re: How do I get local terminal to work for cross platform development Windows - Debian Buster

2021-03-07 Thread Geertjan Wielenga
https://ourcodeworld.com/articles/read/680/how-to-configure-an-integrated-terminal-command-prompt-in-netbeans-for-windows

Gj

On Sun, Mar 7, 2021 at 10:25 PM frui...@yahoo.co.uk.INVALID
 wrote:

> I am running Apache Netbeans 12.2 on Windows 10.
> My target machine runs Raspberry Pi OS (Debian Buster).
>
> I have managed to develop a very simple C program using Netbeans on the
> Windows machine and to get it to compile and build on the RPi3.
> When I run it though the output in the Netbeans output window is
> incorrect, instead of "\n" appearing as a Carriage Return (CR) and Line
> Feed (LF) only the LFs appear.
>
> If, in NetBeans on the Windows machine, I try to open a terminal window I
> get the message "Local terminal is not supported on this system".
>
> What is the problem, how can I get Netbeans running on the Windows machine
> to open a terminal window on the Linux machine ?
>
>
>


How do I get local terminal to work for cross platform development Windows - Debian Buster

2021-03-07 Thread frui...@yahoo.co.uk.INVALID
I am running Apache Netbeans 12.2 on Windows 10.My target machine runs 
Raspberry Pi OS (Debian Buster).
I have managed to develop a very simple C program using Netbeans on the Windows 
machine and to get it to compile and build on the RPi3.When I run it though the 
output in the Netbeans output window is incorrect, instead of "\n" appearing as 
a Carriage Return (CR) and Line Feed (LF) only the LFs appear.
If, in NetBeans on the Windows machine, I try to open a terminal window I get 
the message "Local terminal is not supported on this system".
What is the problem, how can I get Netbeans running on the Windows machine to 
open a terminal window on the Linux machine ?



Re: [Netbeans Platform] Error when activating XML Text Editor in a new project

2021-03-07 Thread Geertjan Wielenga
Indeed, that’s not what the NetBeans Platform is for. It is an advanced
framework for handling complex task, definitely not a beginner’s tool.

Just like you shouldn’t start with power tools in other fields, i.e., don’t
start with the chainsaws if you’re getting started with basic carpentry.

But also don’t walk out of the carpenter’s meetings just because you’re
uncomfortable with the chainsaw. :-)

Gj

On Sun, 7 Mar 2021 at 18:15, Richard  wrote:

> I don't want to build an application. I am a beginner, I want to learn, I
> have a book for beginners where the examples are simple and supposed to be
> runnable, but some of them are not. My question is very simple : how the
> XML editor can be activated in a very simple project without modules ? The
> method given in the book does not work, and the only help I get here is
> "try disabling modules one by one until it works". OK, I give up and I
> unsubscribe this list.
>
> Richard.
>
> Le 07/03/2021 à 18:05, Geertjan Wielenga a écrit :
>
>
> Don’t use the book like that. It is not there to follow step by step. It
> is there as a guide to implement the application you want to build.
>
> As you can see, what you’re doing doesn’t work. You can continue being
> frustrated or use the book and the NetBeans Platform in the way they’re
> meant to be used — especially if you’re putting an IDE together, start with
> what there already is rather than developing from scratch.
>
> And with the book, ask yourself what it is you’re going to be developing
> and then use the book to guide you with that.
>
> Gj
>
> On Sun, 7 Mar 2021 at 17:59, Richard  wrote:
>
>> The answer is very simple : I don't want to build an application, I just
>> want to follow the examples in the book step by step. You suggested me to
>> purchase this book and to read it carefully, that is what I am doing.
>>
>> In chapter 1, we are just testing the effect of selecting ide modules in
>> the library on a sample project built from scratch that contains no module
>> : activating the Image editor, activating the Utilities module, etc... and
>> seeing how menus are modified and haw images can be edited. Using the
>> sample code downloaded from the link given in the book gives the same
>> result as my project built from scratch.
>>
>> As I said in the previous mail, the approach that you suggest for the XML
>> editor is very long and not understandable for a beginner : how can I guess
>> which modules are not needed ? For most of them, I have no idea of what
>> they are doing ! I thought that at least the error message could help in
>> finding the missing modules, but it does not help.
>>
>> I was trying this approach for almost an hour but I could not identify
>> the missing modules.
>>
>> OK, forget this mail, I give up with NB Platform.
>>
>>
>> Richard
>>
>> Le 07/03/2021 à 17:14, Geertjan Wielenga a écrit :
>>
>>
>> The question is what it is you’re trying to achieve here. Given what
>> you’re trying to do right now, your approach could be considered to be
>> “wrong”, i.e., start by thinking of the larger idea of the application
>> you’re trying to build and the features you need for that.
>>
>> A better approach than building up an IDE from scratch, as you seem to be
>> doing, is to start from the full IDE and remove the parts you don’t need.
>> It’s the exact opposite to what you’re doing, please consider it.
>>
>> Gj
>>
>> On Sun, 7 Mar 2021 at 17:10, Richard  wrote:
>>
>>> Thank you Geertjan
>>>
>>> This is a simple exercise to look at the possibilities that each ide
>>> module can give. I tried successfully the image editor and the Utilities
>>> module, but it is clear that some other ide modules need to be selected for
>>> the XML editor since I can run with all ide modules selected.
>>>
>>> But how can I find the missing modules ? Of course, I could start with
>>> all ide modules selected and try to unselect one module at each run until
>>> it fails, but it would take a very long time. How the error message can
>>> help ?
>>>
>>>
>>> Richard
>>>
>>> Le 07/03/2021 à 17:03, Geertjan Wielenga a écrit :
>>>
>>>
>>> Your usage may vary with that book. All the principles and ideas are
>>> correct, but some individual instructions may be outdated.
>>>
>>> Gj
>>>
>>> On Sun, 7 Mar 2021 at 16:57, Richard  wrote:
>>>
 Hello.

 Running Netbeans 12.0 with OpenJDK11 on Linux Mint 19.3 x64.

 Trying to run some examples in chapter 1 of the nbp4beginners book. I
 just created a sample project without any module, and tried to select
 some modules from the ide cluster in the properties-libraries window,
 such as Image or Utilities. All is OK.

 Then I followed the 1.2.5.5 chapter in order to activate the XML Text
 editor :

 > 1.2.5.5 XML Editor
 > Users may need to edit XML files of one kind or another in your
 > application. In the ide cluster, select XML
 > Text Editor and you will be prompted via the red Resolve button to
 > include other 

Re: [Netbeans Platform] Error when activating XML Text Editor in a new project

2021-03-07 Thread Richard
I don't want to build an application. I am a beginner, I want to learn, 
I have a book for beginners where the examples are simple and supposed 
to be runnable, but some of them are not. My question is very simple : 
how the XML editor can be activated in a very simple project without 
modules ? The method given in the book does not work, and the only help 
I get here is "try disabling modules one by one until it works". OK, I 
give up and I unsubscribe this list.

Richard.

Le 07/03/2021 à 18:05, Geertjan Wielenga a écrit :


Don’t use the book like that. It is not there to follow step by step. 
It is there as a guide to implement the application you want to build.


As you can see, what you’re doing doesn’t work. You can continue being 
frustrated or use the book and the NetBeans Platform in the way 
they’re meant to be used — especially if you’re putting an IDE 
together, start with what there already is rather than developing from 
scratch.


And with the book, ask yourself what it is you’re going to be 
developing and then use the book to guide you with that.


Gj

On Sun, 7 Mar 2021 at 17:59, Richard > wrote:


The answer is very simple : I don't want to build an application,
I just want to follow the examples in the book step by step. You
suggested me to purchase this book and to read it carefully, that
is what I am doing.

In chapter 1, we are just testing the effect of selecting ide
modules in the library on a sample project built from scratch that
contains no module : activating the Image editor, activating the
Utilities module, etc... and seeing how menus are modified and haw
images can be edited. Using the sample code downloaded from the
link given in the book gives the same result as my project built
from scratch.

As I said in the previous mail, the approach that you suggest for
the XML editor is very long and not understandable for a beginner
: how can I guess which modules are not needed ? For most of them,
I have no idea of what they are doing ! I thought that at least
the error message could help in finding the missing modules, but
it does not help.

I was trying this approach for almost an hour but I could not
identify the missing modules.

OK, forget this mail, I give up with NB Platform.


Richard

Le 07/03/2021 à 17:14, Geertjan Wielenga a écrit :


The question is what it is you’re trying to achieve here. Given
what you’re trying to do right now, your approach could be
considered to be “wrong”, i.e., start by thinking of the larger
idea of the application you’re trying to build and the features
you need for that.

A better approach than building up an IDE from scratch, as you
seem to be doing, is to start from the full IDE and remove the
parts you don’t need. It’s the exact opposite to what you’re
doing, please consider it.

Gj

On Sun, 7 Mar 2021 at 17:10, Richard mailto:rgreno...@gmail.com>> wrote:

Thank you Geertjan

This is a simple exercise to look at the possibilities that
each ide module can give. I tried successfully the image
editor and the Utilities module, but it is clear that some
other ide modules need to be selected for the XML editor
since I can run with all ide modules selected.

But how can I find the missing modules ? Of course, I could
start with all ide modules selected and try to unselect one
module at each run until it fails, but it would take a very
long time. How the error message can help ?


Richard

Le 07/03/2021 à 17:03, Geertjan Wielenga a écrit :


Your usage may vary with that book. All the principles and
ideas are correct, but some individual instructions may be
outdated.

Gj

On Sun, 7 Mar 2021 at 16:57, Richard mailto:rgreno...@gmail.com>> wrote:

Hello.

Running Netbeans 12.0 with OpenJDK11 on Linux Mint 19.3 x64.

Trying to run some examples in chapter 1 of the
nbp4beginners book. I
just created a sample project without any module, and
tried to select
some modules from the ide cluster in the
properties-libraries window,
such as Image or Utilities. All is OK.

Then I followed the 1.2.5.5 chapter in order to activate
the XML Text
editor :

> 1.2.5.5 XML Editor
> Users may need to edit XML files of one kind or
another in your
> application. In the ide cluster, select XML
> Text Editor and you will be prompted via the red
Resolve button to
> include other XML-related NetBeans
> modules

Some other related modules are selected when clicking
the "Resolve"
button, all seems to be OK, but 

Re: [Netbeans Platform] Tutorials are unusable since transition to Apache

2021-03-07 Thread frui...@yahoo.co.uk.INVALID
 I am also a newbie to NetBeans and I would like to use it for C/C++, and I am 
actually having a bit of success though with one or two snags.If I could find 
tutorials covering general, language independent, use of the Netbeans interface 
and also basic C/C++ use I would give them a go.I cannot promise to give 
feedback, but I will try.
RegardsFruitpi

On Saturday, 6 March 2021, 23:28:57 GMT, Geertjan Wielenga 
 wrote:  
 
 Because on GitHub, the format and language used is Asciidoc, not HTML. And 
that is where the tutorials are now, on GitHub. We created a tool that converts 
from HTML to Asciidoc and that process did not go perfectly, so the screenshots 
are messed up, and we need to manually fix that.
Indeed, pointing out errors in the doc is a BIG contribution. And, sure, the 
users list is fine for that.
The more mails you send, ideally one mail per tutorial, the more of a 
contributor you will be to Apache NetBeans.
Gj
On Sun, Mar 7, 2021 at 12:23 AM Richard  wrote:

  Thank you all for your answers and the links.
 
 Geertjan, I do not understand why the transfer to Apache is so complex and 
needs to change from html format to asciidoc format, thus removing the 
screenshots, but this is beyond the scope of this mail. Of course, screenshots 
are welcome, but not needed if the text of the tutorial gives enough details 
and is OK. Thank you for the cleaned piece of code, I could rebuild and run the 
XML tutorial.
 
 I cannot contribute to improve tutorials if I do not understand them, as my 
knowledge in Java and Netbeans is rather low. But I consider that pointing out 
errors in the doc is also a contribution. Maybe the users list is not the right 
place to do that, but I don't want to do anymore and create a new account on 
github in order to contribute, at least until I have a better knowledge to be 
efficient.
 
 Maybe you think that I am only a "consumer", but I am still at the learning 
stage with the Netbeans Platform. I am reading the nbp4beginners book, and I 
need also good tutorials. But you can't say that I am only a "consumer" : I 
know what is an open source project and a community, and I am a contributor for 
the community of Apache OpenOffice and LibreOffice users for which I spent most 
of my free time using Netbeans to develop and update a JavaDesktop tool that 
helps to repair corrupted documents (ODFRepar tool).
 
 Richard
 
 Le 06/03/2021 à 20:58, Geertjan Wielenga a écrit :
  
Everything as it was before worked fine for you. Not for me. :-) I was 
working on them all on my own -- and that is not how open source is supposed to 
work.  
  We're in Apache now, which means you get involved -- you don't say "I do not 
know where and how to fill an issue", instead you say: "Where do I go and how 
do I fill out an issue?" 
  And that is here: 
  
https://issues.apache.org/jira/projects/NETBEANS/issues/NETBEANS-5397?filter=allopenissues
  
  Also, all the tutorials are now on GitHub. Including the one you're referring 
to: 
  
https://github.com/apache/netbeans-website/blob/master/netbeans.apache.org/src/content/tutorials/nbm-xmleditor.asciidoc
  
  I've already fixed the broken code via this pull request, as a result of your 
mail: 
  https://github.com/apache/netbeans-website/pull/532
  
  Nothing here is "rather disappointing" -- everything is in progress, 
including the tutorials. The big difference now is that you're in a project 
where you're no longer a consumer, you're a contributor. 
  Yes, the tutorials have been transferred from HTML to Asciidoc on GitHub and 
the process is far from complete. Your mail has motivated me to commit to 
working on one of the NetBeans Platform tutorials per day, it will take a while 
to get everything up to scratch -- and a simple copy and paste of the tutorials 
would not have done the trick, since the old ones were HTML and the new ones 
are Asciidoc on GitHub -- so that you can now contribute too. 
  Welcome to Apache. :-) 
  Gj 
  
  On Sat, Mar 6, 2021 at 8:51 PM Richard Grenon  wrote:
  
 Hello Geertjan. 
 Netbeans Platform concepts are not easy to understand (I have purchased the 
book for beginners), and wrong tutorials are rather discouraging.  
  I do not know where and how to fill an issue, and I discovered the problem 
for the XML editor tutorial this evening. The old tutorial has gone and the new 
one is wrong. You can have a look on this tutorial that is rather short.  
  Only the first screenshot for creating the project is correct. All following 
screenshots do not follow the text, and some of them seem to be from other 
applications.  
  Finally, the short piece of code given for the method is melted with html 
links, so it is unreadable. 
  I cannot provide correct screenshots and code because I have erased my first 
test of this tutorial, and the html page with the correct old version of the 
tutorial has gone. 
  I do not know if other Apache tutorials are wrong, but the transfer of this 
one is rather 

Re: [Netbeans Platform] Error when activating XML Text Editor in a new project

2021-03-07 Thread Geertjan Wielenga
Don’t use the book like that. It is not there to follow step by step. It is
there as a guide to implement the application you want to build.

As you can see, what you’re doing doesn’t work. You can continue being
frustrated or use the book and the NetBeans Platform in the way they’re
meant to be used — especially if you’re putting an IDE together, start with
what there already is rather than developing from scratch.

And with the book, ask yourself what it is you’re going to be developing
and then use the book to guide you with that.

Gj

On Sun, 7 Mar 2021 at 17:59, Richard  wrote:

> The answer is very simple : I don't want to build an application, I just
> want to follow the examples in the book step by step. You suggested me to
> purchase this book and to read it carefully, that is what I am doing.
>
> In chapter 1, we are just testing the effect of selecting ide modules in
> the library on a sample project built from scratch that contains no module
> : activating the Image editor, activating the Utilities module, etc... and
> seeing how menus are modified and haw images can be edited. Using the
> sample code downloaded from the link given in the book gives the same
> result as my project built from scratch.
>
> As I said in the previous mail, the approach that you suggest for the XML
> editor is very long and not understandable for a beginner : how can I guess
> which modules are not needed ? For most of them, I have no idea of what
> they are doing ! I thought that at least the error message could help in
> finding the missing modules, but it does not help.
>
> I was trying this approach for almost an hour but I could not identify the
> missing modules.
>
> OK, forget this mail, I give up with NB Platform.
>
>
> Richard
>
> Le 07/03/2021 à 17:14, Geertjan Wielenga a écrit :
>
>
> The question is what it is you’re trying to achieve here. Given what
> you’re trying to do right now, your approach could be considered to be
> “wrong”, i.e., start by thinking of the larger idea of the application
> you’re trying to build and the features you need for that.
>
> A better approach than building up an IDE from scratch, as you seem to be
> doing, is to start from the full IDE and remove the parts you don’t need.
> It’s the exact opposite to what you’re doing, please consider it.
>
> Gj
>
> On Sun, 7 Mar 2021 at 17:10, Richard  wrote:
>
>> Thank you Geertjan
>>
>> This is a simple exercise to look at the possibilities that each ide
>> module can give. I tried successfully the image editor and the Utilities
>> module, but it is clear that some other ide modules need to be selected for
>> the XML editor since I can run with all ide modules selected.
>>
>> But how can I find the missing modules ? Of course, I could start with
>> all ide modules selected and try to unselect one module at each run until
>> it fails, but it would take a very long time. How the error message can
>> help ?
>>
>>
>> Richard
>>
>> Le 07/03/2021 à 17:03, Geertjan Wielenga a écrit :
>>
>>
>> Your usage may vary with that book. All the principles and ideas are
>> correct, but some individual instructions may be outdated.
>>
>> Gj
>>
>> On Sun, 7 Mar 2021 at 16:57, Richard  wrote:
>>
>>> Hello.
>>>
>>> Running Netbeans 12.0 with OpenJDK11 on Linux Mint 19.3 x64.
>>>
>>> Trying to run some examples in chapter 1 of the nbp4beginners book. I
>>> just created a sample project without any module, and tried to select
>>> some modules from the ide cluster in the properties-libraries window,
>>> such as Image or Utilities. All is OK.
>>>
>>> Then I followed the 1.2.5.5 chapter in order to activate the XML Text
>>> editor :
>>>
>>> > 1.2.5.5 XML Editor
>>> > Users may need to edit XML files of one kind or another in your
>>> > application. In the ide cluster, select XML
>>> > Text Editor and you will be prompted via the red Resolve button to
>>> > include other XML-related NetBeans
>>> > modules
>>>
>>> Some other related modules are selected when clicking the "Resolve"
>>> button, all seems to be OK, but running the project fails, and I get an
>>> error message (see the attached document). This message does not help me
>>> in finding which module is missing.
>>>
>>> Trying again with selecting the whole ide cluster (all ide modules are
>>> selected), and running again the project is fine : I get a colored
>>> syntax when opening xml files, and there is a contextual menu for XML
>>> options.
>>>
>>> So, selecting only the XML Text editor module and the related modules by
>>> the "Resolve" button is not enough. Could anybody help me in finding
>>> what modules are really needed ? I join the log file that contains the
>>> errors.
>>>
>>> Note for Geertjan : this is NOT the tutorial that we discussed yesterday
>>> and that works perfectly :)
>>>
>>> Richard
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>>> For additional commands, e-mail: 

Re: [Netbeans Platform] Error when activating XML Text Editor in a new project

2021-03-07 Thread Richard
The answer is very simple : I don't want to build an application, I just 
want to follow the examples in the book step by step. You suggested me 
to purchase this book and to read it carefully, that is what I am doing.


In chapter 1, we are just testing the effect of selecting ide modules in 
the library on a sample project built from scratch that contains no 
module : activating the Image editor, activating the Utilities module, 
etc... and seeing how menus are modified and haw images can be edited. 
Using the sample code downloaded from the link given in the book gives 
the same result as my project built from scratch.


As I said in the previous mail, the approach that you suggest for the 
XML editor is very long and not understandable for a beginner : how can 
I guess which modules are not needed ? For most of them, I have no idea 
of what they are doing ! I thought that at least the error message could 
help in finding the missing modules, but it does not help.


I was trying this approach for almost an hour but I could not identify 
the missing modules.


OK, forget this mail, I give up with NB Platform.

Richard

Le 07/03/2021 à 17:14, Geertjan Wielenga a écrit :


The question is what it is you’re trying to achieve here. Given what 
you’re trying to do right now, your approach could be considered to be 
“wrong”, i.e., start by thinking of the larger idea of the application 
you’re trying to build and the features you need for that.


A better approach than building up an IDE from scratch, as you seem to 
be doing, is to start from the full IDE and remove the parts you don’t 
need. It’s the exact opposite to what you’re doing, please consider it.


Gj

On Sun, 7 Mar 2021 at 17:10, Richard > wrote:


Thank you Geertjan

This is a simple exercise to look at the possibilities that each
ide module can give. I tried successfully the image editor and the
Utilities module, but it is clear that some other ide modules need
to be selected for the XML editor since I can run with all ide
modules selected.

But how can I find the missing modules ? Of course, I could start
with all ide modules selected and try to unselect one module at
each run until it fails, but it would take a very long time. How
the error message can help ?


Richard

Le 07/03/2021 à 17:03, Geertjan Wielenga a écrit :


Your usage may vary with that book. All the principles and ideas
are correct, but some individual instructions may be outdated.

Gj

On Sun, 7 Mar 2021 at 16:57, Richard mailto:rgreno...@gmail.com>> wrote:

Hello.

Running Netbeans 12.0 with OpenJDK11 on Linux Mint 19.3 x64.

Trying to run some examples in chapter 1 of the nbp4beginners
book. I
just created a sample project without any module, and tried
to select
some modules from the ide cluster in the properties-libraries
window,
such as Image or Utilities. All is OK.

Then I followed the 1.2.5.5 chapter in order to activate the
XML Text
editor :

> 1.2.5.5 XML Editor
> Users may need to edit XML files of one kind or another in
your
> application. In the ide cluster, select XML
> Text Editor and you will be prompted via the red Resolve
button to
> include other XML-related NetBeans
> modules

Some other related modules are selected when clicking the
"Resolve"
button, all seems to be OK, but running the project fails,
and I get an
error message (see the attached document). This message does
not help me
in finding which module is missing.

Trying again with selecting the whole ide cluster (all ide
modules are
selected), and running again the project is fine : I get a
colored
syntax when opening xml files, and there is a contextual menu
for XML
options.

So, selecting only the XML Text editor module and the related
modules by
the "Resolve" button is not enough. Could anybody help me in
finding
what modules are really needed ? I join the log file that
contains the
errors.

Note for Geertjan : this is NOT the tutorial that we
discussed yesterday
and that works perfectly :)

Richard


-
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] Error when activating XML Text Editor in a new project

2021-03-07 Thread Geertjan Wielenga
Nothing at all, no.

Gj

On Sun, 7 Mar 2021 at 17:34, Eric Bresie  wrote:

> Does this have anything to do with removal of XML binding in Java 11
> timeframe?  And maybe need to add a dependency for this to the project?
>
> See
> https://stackoverflow.com/questions/43574426/how-to-resolve-java-lang-noclassdeffounderror-javax-xml-bind-jaxbexception
>
>
> On Sun, Mar 7, 2021 at 10:14 AM Geertjan Wielenga
>  wrote:
>
>>
>> The question is what it is you’re trying to achieve here. Given what
>> you’re trying to do right now, your approach could be considered to be
>> “wrong”, i.e., start by thinking of the larger idea of the application
>> you’re trying to build and the features you need for that.
>>
>> A better approach than building up an IDE from scratch, as you seem to be
>> doing, is to start from the full IDE and remove the parts you don’t need.
>> It’s the exact opposite to what you’re doing, please consider it.
>>
>> Gj
>>
>> On Sun, 7 Mar 2021 at 17:10, Richard  wrote:
>>
>>> Thank you Geertjan
>>>
>>> This is a simple exercise to look at the possibilities that each ide
>>> module can give. I tried successfully the image editor and the Utilities
>>> module, but it is clear that some other ide modules need to be selected for
>>> the XML editor since I can run with all ide modules selected.
>>>
>>> But how can I find the missing modules ? Of course, I could start with
>>> all ide modules selected and try to unselect one module at each run until
>>> it fails, but it would take a very long time. How the error message can
>>> help ?
>>>
>>>
>>> Richard
>>>
>>> Le 07/03/2021 à 17:03, Geertjan Wielenga a écrit :
>>>
>>>
>>> Your usage may vary with that book. All the principles and ideas are
>>> correct, but some individual instructions may be outdated.
>>>
>>> Gj
>>>
>>> On Sun, 7 Mar 2021 at 16:57, Richard  wrote:
>>>
 Hello.

 Running Netbeans 12.0 with OpenJDK11 on Linux Mint 19.3 x64.

 Trying to run some examples in chapter 1 of the nbp4beginners book. I
 just created a sample project without any module, and tried to select
 some modules from the ide cluster in the properties-libraries window,
 such as Image or Utilities. All is OK.

 Then I followed the 1.2.5.5 chapter in order to activate the XML Text
 editor :

 > 1.2.5.5 XML Editor
 > Users may need to edit XML files of one kind or another in your
 > application. In the ide cluster, select XML
 > Text Editor and you will be prompted via the red Resolve button to
 > include other XML-related NetBeans
 > modules

 Some other related modules are selected when clicking the "Resolve"
 button, all seems to be OK, but running the project fails, and I get an
 error message (see the attached document). This message does not help
 me
 in finding which module is missing.

 Trying again with selecting the whole ide cluster (all ide modules are
 selected), and running again the project is fine : I get a colored
 syntax when opening xml files, and there is a contextual menu for XML
 options.

 So, selecting only the XML Text editor module and the related modules
 by
 the "Resolve" button is not enough. Could anybody help me in finding
 what modules are really needed ? I join the log file that contains the
 errors.

 Note for Geertjan : this is NOT the tutorial that we discussed
 yesterday
 and that works perfectly :)

 Richard


 -
 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
>>>
>>>
>>> --
> Eric Bresie
> ebre...@gmail.com
>


Re: [Netbeans Platform] Error when activating XML Text Editor in a new project

2021-03-07 Thread Eric Bresie
Does this have anything to do with removal of XML binding in Java 11
timeframe?  And maybe need to add a dependency for this to the project?

See
https://stackoverflow.com/questions/43574426/how-to-resolve-java-lang-noclassdeffounderror-javax-xml-bind-jaxbexception


On Sun, Mar 7, 2021 at 10:14 AM Geertjan Wielenga
 wrote:

>
> The question is what it is you’re trying to achieve here. Given what
> you’re trying to do right now, your approach could be considered to be
> “wrong”, i.e., start by thinking of the larger idea of the application
> you’re trying to build and the features you need for that.
>
> A better approach than building up an IDE from scratch, as you seem to be
> doing, is to start from the full IDE and remove the parts you don’t need.
> It’s the exact opposite to what you’re doing, please consider it.
>
> Gj
>
> On Sun, 7 Mar 2021 at 17:10, Richard  wrote:
>
>> Thank you Geertjan
>>
>> This is a simple exercise to look at the possibilities that each ide
>> module can give. I tried successfully the image editor and the Utilities
>> module, but it is clear that some other ide modules need to be selected for
>> the XML editor since I can run with all ide modules selected.
>>
>> But how can I find the missing modules ? Of course, I could start with
>> all ide modules selected and try to unselect one module at each run until
>> it fails, but it would take a very long time. How the error message can
>> help ?
>>
>>
>> Richard
>>
>> Le 07/03/2021 à 17:03, Geertjan Wielenga a écrit :
>>
>>
>> Your usage may vary with that book. All the principles and ideas are
>> correct, but some individual instructions may be outdated.
>>
>> Gj
>>
>> On Sun, 7 Mar 2021 at 16:57, Richard  wrote:
>>
>>> Hello.
>>>
>>> Running Netbeans 12.0 with OpenJDK11 on Linux Mint 19.3 x64.
>>>
>>> Trying to run some examples in chapter 1 of the nbp4beginners book. I
>>> just created a sample project without any module, and tried to select
>>> some modules from the ide cluster in the properties-libraries window,
>>> such as Image or Utilities. All is OK.
>>>
>>> Then I followed the 1.2.5.5 chapter in order to activate the XML Text
>>> editor :
>>>
>>> > 1.2.5.5 XML Editor
>>> > Users may need to edit XML files of one kind or another in your
>>> > application. In the ide cluster, select XML
>>> > Text Editor and you will be prompted via the red Resolve button to
>>> > include other XML-related NetBeans
>>> > modules
>>>
>>> Some other related modules are selected when clicking the "Resolve"
>>> button, all seems to be OK, but running the project fails, and I get an
>>> error message (see the attached document). This message does not help me
>>> in finding which module is missing.
>>>
>>> Trying again with selecting the whole ide cluster (all ide modules are
>>> selected), and running again the project is fine : I get a colored
>>> syntax when opening xml files, and there is a contextual menu for XML
>>> options.
>>>
>>> So, selecting only the XML Text editor module and the related modules by
>>> the "Resolve" button is not enough. Could anybody help me in finding
>>> what modules are really needed ? I join the log file that contains the
>>> errors.
>>>
>>> Note for Geertjan : this is NOT the tutorial that we discussed yesterday
>>> and that works perfectly :)
>>>
>>> Richard
>>>
>>>
>>> -
>>> 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
>>
>>
>> --
Eric Bresie
ebre...@gmail.com


Re: [Netbeans Platform] Error when activating XML Text Editor in a new project

2021-03-07 Thread Geertjan Wielenga
The question is what it is you’re trying to achieve here. Given what you’re
trying to do right now, your approach could be considered to be “wrong”,
i.e., start by thinking of the larger idea of the application you’re trying
to build and the features you need for that.

A better approach than building up an IDE from scratch, as you seem to be
doing, is to start from the full IDE and remove the parts you don’t need.
It’s the exact opposite to what you’re doing, please consider it.

Gj

On Sun, 7 Mar 2021 at 17:10, Richard  wrote:

> Thank you Geertjan
>
> This is a simple exercise to look at the possibilities that each ide
> module can give. I tried successfully the image editor and the Utilities
> module, but it is clear that some other ide modules need to be selected for
> the XML editor since I can run with all ide modules selected.
>
> But how can I find the missing modules ? Of course, I could start with all
> ide modules selected and try to unselect one module at each run until it
> fails, but it would take a very long time. How the error message can help ?
>
>
> Richard
>
> Le 07/03/2021 à 17:03, Geertjan Wielenga a écrit :
>
>
> Your usage may vary with that book. All the principles and ideas are
> correct, but some individual instructions may be outdated.
>
> Gj
>
> On Sun, 7 Mar 2021 at 16:57, Richard  wrote:
>
>> Hello.
>>
>> Running Netbeans 12.0 with OpenJDK11 on Linux Mint 19.3 x64.
>>
>> Trying to run some examples in chapter 1 of the nbp4beginners book. I
>> just created a sample project without any module, and tried to select
>> some modules from the ide cluster in the properties-libraries window,
>> such as Image or Utilities. All is OK.
>>
>> Then I followed the 1.2.5.5 chapter in order to activate the XML Text
>> editor :
>>
>> > 1.2.5.5 XML Editor
>> > Users may need to edit XML files of one kind or another in your
>> > application. In the ide cluster, select XML
>> > Text Editor and you will be prompted via the red Resolve button to
>> > include other XML-related NetBeans
>> > modules
>>
>> Some other related modules are selected when clicking the "Resolve"
>> button, all seems to be OK, but running the project fails, and I get an
>> error message (see the attached document). This message does not help me
>> in finding which module is missing.
>>
>> Trying again with selecting the whole ide cluster (all ide modules are
>> selected), and running again the project is fine : I get a colored
>> syntax when opening xml files, and there is a contextual menu for XML
>> options.
>>
>> So, selecting only the XML Text editor module and the related modules by
>> the "Resolve" button is not enough. Could anybody help me in finding
>> what modules are really needed ? I join the log file that contains the
>> errors.
>>
>> Note for Geertjan : this is NOT the tutorial that we discussed yesterday
>> and that works perfectly :)
>>
>> Richard
>>
>>
>> -
>> 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] Error when activating XML Text Editor in a new project

2021-03-07 Thread Richard

Thank you Geertjan

This is a simple exercise to look at the possibilities that each ide 
module can give. I tried successfully the image editor and the Utilities 
module, but it is clear that some other ide modules need to be selected 
for the XML editor since I can run with all ide modules selected.


But how can I find the missing modules ? Of course, I could start with 
all ide modules selected and try to unselect one module at each run 
until it fails, but it would take a very long time. How the error 
message can help ?


Richard

Le 07/03/2021 à 17:03, Geertjan Wielenga a écrit :


Your usage may vary with that book. All the principles and ideas are 
correct, but some individual instructions may be outdated.


Gj

On Sun, 7 Mar 2021 at 16:57, Richard > wrote:


Hello.

Running Netbeans 12.0 with OpenJDK11 on Linux Mint 19.3 x64.

Trying to run some examples in chapter 1 of the nbp4beginners book. I
just created a sample project without any module, and tried to select
some modules from the ide cluster in the properties-libraries window,
such as Image or Utilities. All is OK.

Then I followed the 1.2.5.5 chapter in order to activate the XML Text
editor :

> 1.2.5.5 XML Editor
> Users may need to edit XML files of one kind or another in your
> application. In the ide cluster, select XML
> Text Editor and you will be prompted via the red Resolve button to
> include other XML-related NetBeans
> modules

Some other related modules are selected when clicking the "Resolve"
button, all seems to be OK, but running the project fails, and I
get an
error message (see the attached document). This message does not
help me
in finding which module is missing.

Trying again with selecting the whole ide cluster (all ide modules
are
selected), and running again the project is fine : I get a colored
syntax when opening xml files, and there is a contextual menu for XML
options.

So, selecting only the XML Text editor module and the related
modules by
the "Resolve" button is not enough. Could anybody help me in finding
what modules are really needed ? I join the log file that contains
the
errors.

Note for Geertjan : this is NOT the tutorial that we discussed
yesterday
and that works perfectly :)

Richard


-
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] Error when activating XML Text Editor in a new project

2021-03-07 Thread Geertjan Wielenga
Your usage may vary with that book. All the principles and ideas are
correct, but some individual instructions may be outdated.

Gj

On Sun, 7 Mar 2021 at 16:57, Richard  wrote:

> Hello.
>
> Running Netbeans 12.0 with OpenJDK11 on Linux Mint 19.3 x64.
>
> Trying to run some examples in chapter 1 of the nbp4beginners book. I
> just created a sample project without any module, and tried to select
> some modules from the ide cluster in the properties-libraries window,
> such as Image or Utilities. All is OK.
>
> Then I followed the 1.2.5.5 chapter in order to activate the XML Text
> editor :
>
> > 1.2.5.5 XML Editor
> > Users may need to edit XML files of one kind or another in your
> > application. In the ide cluster, select XML
> > Text Editor and you will be prompted via the red Resolve button to
> > include other XML-related NetBeans
> > modules
>
> Some other related modules are selected when clicking the "Resolve"
> button, all seems to be OK, but running the project fails, and I get an
> error message (see the attached document). This message does not help me
> in finding which module is missing.
>
> Trying again with selecting the whole ide cluster (all ide modules are
> selected), and running again the project is fine : I get a colored
> syntax when opening xml files, and there is a contextual menu for XML
> options.
>
> So, selecting only the XML Text editor module and the related modules by
> the "Resolve" button is not enough. Could anybody help me in finding
> what modules are really needed ? I join the log file that contains the
> errors.
>
> Note for Geertjan : this is NOT the tutorial that we discussed yesterday
> and that works perfectly :)
>
> Richard
>
>
> -
> 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


[Netbeans Platform] Error when activating XML Text Editor in a new project

2021-03-07 Thread Richard

Hello.

Running Netbeans 12.0 with OpenJDK11 on Linux Mint 19.3 x64.

Trying to run some examples in chapter 1 of the nbp4beginners book. I 
just created a sample project without any module, and tried to select 
some modules from the ide cluster in the properties-libraries window, 
such as Image or Utilities. All is OK.


Then I followed the 1.2.5.5 chapter in order to activate the XML Text 
editor :



1.2.5.5 XML Editor
Users may need to edit XML files of one kind or another in your 
application. In the ide cluster, select XML
Text Editor and you will be prompted via the red Resolve button to 
include other XML-related NetBeans

modules


Some other related modules are selected when clicking the "Resolve" 
button, all seems to be OK, but running the project fails, and I get an 
error message (see the attached document). This message does not help me 
in finding which module is missing.


Trying again with selecting the whole ide cluster (all ide modules are 
selected), and running again the project is fine : I get a colored 
syntax when opening xml files, and there is a contextual menu for XML 
options.


So, selecting only the XML Text editor module and the related modules by 
the "Resolve" button is not enough. Could anybody help me in finding 
what modules are really needed ? I join the log file that contains the 
errors.


Note for Geertjan : this is NOT the tutorial that we discussed yesterday 
and that works perfectly :)


Richard

---
>Log Session: Sunday, March 7, 2021 at 4:23:14 PM Central European Standard Time
>System Info: 
  Product Version = MyNbp 12.0-u2-ba34c2dabd3091a6ee93cfde08a653816a7e19ea
  Operating System= Linux version 4.15.0-136-generic running on amd64
  Java; VM; Vendor= 11.0.10; OpenJDK 64-Bit Server VM 11.0.10+9-Ubuntu-0ubuntu1.18.04; Ubuntu
  Runtime = OpenJDK Runtime Environment 11.0.10+9-Ubuntu-0ubuntu1.18.04
  Java Home   = /usr/lib/jvm/java-11-openjdk-amd64
  System Locale; Encoding = fr_FR (mynbp); UTF-8
  Home Directory  = /home/richard
  Current Directory   = /home/richard/NetBeans12Projects/NBPlatform/MyNbp
  User Directory  = /home/richard/NetBeans12Projects/NBPlatform/MyNbp/build/testuserdir
  Cache Directory = /home/richard/NetBeans12Projects/NBPlatform/MyNbp/build/testuserdir/var/cache
  Installation= /home/richard/NetBeans12Projects/NBPlatform/MyNbp/build/cluster
/home/richard/netbeans-12.0/netbeans/ide
/home/richard/netbeans-12.0/netbeans/platform
/home/richard/netbeans-12.0/netbeans/platform
  Boot & Ext. Classpath   = 
  Application Classpath   = /home/richard/netbeans-12.0/netbeans/platform/lib/boot.jar:/home/richard/netbeans-12.0/netbeans/platform/lib/org-openide-modules.jar:/home/richard/netbeans-12.0/netbeans/platform/lib/org-openide-util-lookup.jar:/home/richard/netbeans-12.0/netbeans/platform/lib/org-openide-util-ui.jar:/home/richard/netbeans-12.0/netbeans/platform/lib/org-openide-util.jar
  Startup Classpath   = /home/richard/netbeans-12.0/netbeans/platform/core/org-openide-filesystems-compat8.jar:/home/richard/netbeans-12.0/netbeans/platform/core/core.jar:/home/richard/netbeans-12.0/netbeans/platform/core/org-netbeans-libs-asm.jar:/home/richard/netbeans-12.0/netbeans/platform/core/core-base.jar:/home/richard/netbeans-12.0/netbeans/platform/core/org-openide-filesystems.jar:/home/richard/netbeans-12.0/netbeans/platform/core/asm-tree-7.2.jar:/home/richard/netbeans-12.0/netbeans/platform/core/asm-7.2.jar:/home/richard/netbeans-12.0/netbeans/platform/core/asm-commons-7.2.jar:/home/richard/NetBeans12Projects/NBPlatform/MyNbp/build/cluster/core/locale/core_mynbp.jar
---
WARNING [org.netbeans.core.modules]: the modules [org.netbeans.modules.xml.text] use org.netbeans.modules.editor.deprecated.pre65formatting which is deprecated.
WARNING [org.netbeans.core.modules]: the modules [org.netbeans.modules.xml.text] use org.netbeans.modules.editor.structure which is deprecated.
SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.modules.parsing.impl.indexing.IndexingModule$Startup
java.lang.IllegalStateException: No ActiveDocumentProvider instance in global lookup.
	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.(RepositoryUpdater.java:1330)
	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.getDefault(RepositoryUpdater.java:167)
	at org.netbeans.modules.parsing.impl.indexing.IndexingModule$Startup.run(IndexingModule.java:48)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
	at 

Re: NetBeans installed but can't execute

2021-03-07 Thread Laszlo Kishalmi

Well, first make sure that you have removed the netbeans package with apt:

sudo apt remove netbeans

When that's installed the Snap package does not work


Also I've noticed that your JAVA_HOME is bad. It should not point to the 
java executable, but a the directory where Java is being installed. On 
Ubuntu it is usually: /usr/lib/jvm/ java-8-openjdk-amd64 or 
/usr/lib/jvm/ java-8-openjdk-amd64


However the best thing you can do is not set the JAVA_HOME at all. So 
I'd recommend to remove the your JAVA_HOME from wherever you set that 
and reboot your machine.


On 3/6/21 4:10 PM, Zulfi Khan wrote:


Hi,

I am trying to execute NetBeans 10.0 on my Ubuntu 18.04, But my Java 
version is 11.0. I found the following link:



https://askubuntu.com/questions/1196172/netbeans-doesnt-work-in-18-04 



I installed NetBeans 11 but still I am getting the same problem 
because it is executing NetBeans 10. I don't know how to execute 
NetBeans 11 classic.



My $JAVA_HOME path is set to:

$ echo $JAVA_HOME

/usr/bin/java

I am attaching the image also which can show you all the problems. 
Somebody please guide me.



Zulfi.



-
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