Put the class into a package.

Gj

On Mon, 8 Mar 2021 at 06:23, Zulfi Khan <zulfi6...@yahoo.com.invalid> 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
> <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnetbeans.apache.org%2Fkb%2Fdocs%2Fjava%2Fquickstart.html&data=04%7C01%7CZulfi.Khan%40ttu.edu%7C864b9c2f027546dc1ac208d8e1f16a68%7C178a51bf8b2049ffb65556245d5c173c%7C0%7C0%7C637507774281629011%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=wre%2BxJguGjbpLivNZqTw88lkp96us83eGTYTInQzFrU%3D&reserved=0>
>
> 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
> <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Faskubuntu.com%2Fquestions%2F1196172%2Fnetbeans-doesnt-work-in-18-04&data=04%7C01%7CZulfi.Khan%40ttu.edu%7C2a8cc589ee3e4c71aece08d8dc02fb2f%7C178a51bf8b2049ffb65556245d5c173c%7C0%7C0%7C637501252641303130%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=k6d%2Bfab%2BnQ50iz%2Fcs%2BBDfH4XAnnX51JmBK3tx0%2BPuEw%3D&reserved=0>
>
> 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

Reply via email to