Questions tagged [netbeans-11]

A version of the Apache Netbeans IDE which includes support for Java 12 and Gradle. It was released in March, 2019. Use this tag only for questions that specifically relate to version 11.x of NetBeans. Also, when specifying the "netbeans-11" tag, additionally specify the generic "netbeans" tag to attract a wider audience.

110 questions
41
votes
10 answers

Java with maven wouldn't build: Cannot run program "cmd" "Malformed argument has embedded quote"

I've a fresh install of netbean 11.1. Now I'm trying to build a project but I get the following error output: Cannot run program "cmd" (in directory "C:\projects\open"): Malformed argument has embedded quote: "C:\Program …
busyBee
  • 533
  • 1
  • 5
  • 15
26
votes
1 answer

How to create Java project in Netbeans, without using Maven as default?

I'm currently trying to create a basic Java project. The first option that appears is "Java with Maven", which I already used, but isn't giving me the "Create Main Class" option that I need. I'm using Apache Netbeans IDE 11.0, running on Windows 10,…
Chris Kcas
  • 363
  • 1
  • 3
  • 9
14
votes
6 answers

Netbeans IDE 11 cannot access java.lang Fatal Error: Unable to find package java.lang in classpath or bootclasspath

I downloaded netbeans ide 11 and tried to do a sample hello world project but it is giving me error "cannot access java.lang Fatal Error: Unable to find package java.lang in classpath or bootclasspath" I tried some solutions from stack overflow but…
Ahmad Anis
  • 2,322
  • 4
  • 25
  • 54
10
votes
1 answer

Couldn't install netbeans 11.3 with Java 14 due to Error: "Unsupported JVM version"

I'm trying to install netbeans with Java 14. I'm getting below error - > sudo ./Apache-NetBeans-11.3-bin-linux-x64.sh --javahome /home/raj/.sdkman/candidates/java/current Configuring the installer... Searching for JVM on the system... Unsupported…
user51
  • 8,843
  • 21
  • 79
  • 158
9
votes
2 answers

How do you enable C++17 in Netbeans?

In Tools > Options > C/C++ > Other, there is no option for C++17 as the default standard. How do you compile code that requires C++17?
BrainRenticus
  • 215
  • 3
  • 6
5
votes
2 answers

Why NetBeans 11 shows parameter name beside value while calling a method?

On line 11 the foo() method is called and beside the parameter value it shows the parameter name which i don't want and also there is a weird pink box along with the parameter name. How do i get rid of this. Tried many things on settings and found…
5
votes
2 answers

How to configure netbeans when installed as snap package?

I installed Netbeans 11.2 on Ubuntu 18.04 via snap. Now i want to configure Netbeans, modifying netbeans.conf. This file is placed at /snap/netbeans/current/netbeans/etc/ and is mounted as read-only file system. So i assume you should not edit this…
rmuller
  • 12,062
  • 4
  • 64
  • 92
5
votes
2 answers

@WebServlet fails in Netbeans 11.0 with java.lang.RuntimeException: com.example.NewServlet.(NewServlet.java:1)

Some kind of nightmare - can not launch primitive servlet on Apache Tomcat 9.0.22 (or Glassfish 5.0.1) and Apache NetBeans IDE 11.0 (Build incubator-netbeans-release-404-on-20190319) by using servlet annotations.. Using JDK 1.8u221. Here is the…
Ernestas Gruodis
  • 8,567
  • 14
  • 55
  • 117
5
votes
3 answers

I can not add the weblogic server in netbeans v11

I have installed the Weblogic 12c server and I want to add it to a project in Netbeans 11. When I select "add server" from server instance, the Weblogic server option is not displayed I expected to see the option as shown in the following link…
Alberto D
  • 85
  • 2
  • 5
4
votes
1 answer

Module export error on java.naming to spring.ldap.core even when add-export command is used in pom?

I am trying to upgrade my Java 8 project to Java 11 and have run into quite a few issues while doing so, but I've fixed all the issues except I can't seem to get past this error every time I try to run my project in Netbeans: WARNING: Exception…
Tiamat74
  • 81
  • 1
  • 5
4
votes
2 answers

localhost refuses to connect - ERR_CONNECTION_REFUSED

I have a simple MVC web application where javascript code sends ajax requests to the controller and the controller sends back responses. I built the app 2 years ago and everything used to work fine. Now I tried to run the app again locally and met…
steady_progress
  • 3,311
  • 10
  • 31
  • 62
4
votes
2 answers

Enable Compile on Save option in Netbeans 11

How can I enable Compile on Save in Apache Netbeans IDE 11.0? Output of my java -version java version "11.0.4" 2019-07-16 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.4+10-LTS) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.4+10-LTS,…
sazzad
  • 5,740
  • 6
  • 25
  • 42
3
votes
1 answer

incompatible types: Object is not a functional interface netbeans-11 java

I'm quite new to lambda expression of Java 8 I tried the following and get compile error class Test{ static interface MySupplier { Object supply(); } public static void main(String[] args) { Object v = value(); …
harunaga
  • 141
  • 1
  • 1
  • 10
3
votes
2 answers

Generic "Link Error" while working with Netbeans forms

I have inherited a NetBeans project that I must make some changes too. I do not have a ton of experience in NetBeans and I have an issue with the app. The app is basically an attendance system that uses MySQL to store and retrieve data. My issue…
Steve Weaver
  • 342
  • 1
  • 4
  • 18
3
votes
3 answers

NetBeans Java project - Can’t see Libraries

Disclaimer: I’m literally just learning from scratch how to program. Using NetBeans 11 and JDK 12. In order to follow a tutorial, I need to edit my Libraries settings. However when I right click my project and click properties, there is no…
Nexmo16
  • 137
  • 1
  • 11
1
2 3 4 5 6 7 8