Where should I put the log4j.properties file?

I wrote a web service project using netbeans 6.7.1 with glassfish v2.1, put log4j.properties to the root dir of project and use: static Logger logger = Logger.getLogger(MyClass.class); in...

Why doesn't my JavaBean icon display?

I'm using Netbeans 6.7.1 on Windows Vista, I've got a JavaBean component that works as it should and this has an associated BeanInfo class where I've set Icon 32x32 Color property to a 32x32 gif...

Can we save the result of PHPUnit test

Is it possible to save the result generated from a PHPUnit test as a text file or as a html file so that we can review it later and send it to concerned person through email? Simply my requirement...

Simple Web Service adding two numbers

I have created a simple Webservice function as shown below; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ws; import...

Why does maven not copy the properties files during the build process?

Nothing I've found has been able to help me solve this one specific case. I recently switched from a plain old java web app project (which was working) to a maven web project. I get the following...

java.io.IOException: mark/reset not supported

try { //String location = dir1.getCanonicalPath()+"\\app_yamb_test1\\mySound.au"; //displayMessage(location); AudioInputStream audio2 =...

How to get the current branch name in Git?

I'm from a Subversion background and, when I had a branch, I knew what I was working on with "These working files point to this branch". But with Git I'm not sure when I am editing a file in...

netbeans c auto popup code completion

I'm using Netbeans 7 to program C. Imagine if I type prin and CTRL+SPACE a popup window will come up with the printf suggestion. How can I make this popup to show as I type? I don't want to use...

NetBeans or Eclipse equivalent of jGrasp's Debug Object Viewers?

Jgrasp has a really cool debug viewer: http://www.jgrasp.org/viewers.html Without any setup, you can see how your objects are interacting visually. It's been really handy for working with linked...

How to Convert FXML to JAVA

I created a .fxml file using javafx scene builder in NetBeans. How can I convert .fxml file in NetBeans to .java? Is that any program to convert it? I am not very good in fxml so I want to use...

How to display data from 2 tables in Netbeans from ORACLE database

I don't know how to properly display data from 2 tables in the TextArea field. I added 2 rows in the database tables but the program displays 4 rows in the textArea instead of 2(duplicate), if I...

Hibernate - MySQL - Connection to DB

I'm trying to connect to a MySQL database using Hibernate 3.6.10 with NetBeans 7.4, but when I try to create a new "Hibernate Mapping Wizard" I reply this error message: Unable to connect: Cannot...

Switch first and last elements of an array Error

For one of my methods, its role is to switch the first and last elements of an array. It worked just fine when I had the array built into the method. But then I decided to just have it read in an...

Git pre-commit hook not running on windows

I'm just starting to look into Git hooks, but I can't seem to get them to run. I set up a local repository, so there is now a '.git' directory in my project folder. I have added a '.cmd' file into...

Can't find /dist directory in Netbeans 8

I'm trying to export a project as a .jar in NetBeans 8, and I realize it's supposed to save automatically. All the sources I've found point out that it should be located in...

Failed to start jboss.deployment.unit."war".POST_MODULE

I created a Maven Project using the RESTful Web Service from Database in NetBeans by following this...

Adding a button that reset all the text fields Netbeans Java

I'm trying to make a simple calculator and i want a reset button when pressed it clears all the text fields. I've already added an addActionListener and and ive already added the button panel just...

package com.amazonaws.services.lambda.runtime does not exist in AWS java sdk 1.10.2

I am trying the Java code example in the Getting Started (Authoring AWS Lambda Code in Java) page, but am stuck as com.amazonaws.services.lambda.runtime pacakge seems to be missing Here is the...

Vaadin SQLSyntaxErrorException using JavaDB/Derby: Encountered "LIMIT" at line 1, column 41

Following this tutorial about Vaadin 7 and SQLContainer I encountered the following problem. I am coding inside Netbeans 8.0.2 and would like to use the embedded JavaDB/Derby database over JDBC in...

The JDK is missing and is required to run some NetBeans modules

Complete error message: The JDK is missing and is required to run some NetBeans modules Please use the --jdkhome command line option to specify a JDK installation or see...

Issue with title in JPanel Titled Border in Netbeans

I am working with Swing in Netbeans, using the GUI Designer. I have created a JPanel on a JFrame. When I create the border for the JPanel, I select Titled Border, and I put in a name and font. The...

Error creating bean with name 'requestMappingHandlerAdapter'

Am creating a simple REST service using Springframework with Tomcat. The response should have to be in json like {"id":"101","name":"Ram"} .When ever I run, am getting the following...

Java Netbeans - Errors not showing up

My Netbeans is not showing up errors in the editor. It's showing errors in the bottom bar. I have no idea how to resolve it. Here's the screenshot:

Selenium throws "NoSuchMethodError" when run on Java web project

I have written some logic with the Selenium library in Java to do some simple web scraping (The logic is not important for this question) that works when run from a simple test file's main()...

Create JAR file using Net Beans including all dependent libs and folders

I have created a JavaFX application using NetBeans IDE and below is my folder structure. I want to a build a single jar file including all dependencies for this jar to work properly. This jar...

Code Templates does not work in NetBeans 11

I just updated from Netbeans 8.2 to 11 and it seems like Code Templates has stopped working. For example, sout + tab should give a System.out.println(...) and psvm + tab should give a public...

dependency.systemPath' for com.sun:tools:jar must specify an absolute path but is ${tools.jar}

i'm trying to compile a web service client generated out of Netbeans 11.2. The following pom.xml is being used: <?xml version="1.0" encoding="UTF-8"?> <project...

Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.2.5.RELEASE:run (default-cli)

I am new to spring boot and am trying to run a application which runs with maven spring-boot:run. I downloaded a spring application from spring initializr and am trying to run that in IntelliJ IDE...

NetBeans doesn't recognize that dependency is a local project - how to fix?

I have two pairs of projects that I develop in NetBeans, both of which have a GUI project, and a library project, where the GUI project depends on the library one. In one of them, NetBeans...

Tomcat - JRE_HOME Environment is not defined properly - Java 11

I am trying to run the project in netbeans 12.2 and using Java 11. JRE is not available in Java 11 How to run tomcat on java 11 I am getting the below error The JRE_HOME environment variable is...