Questions tagged as 'netbeans'

3
answers

Error java.lang.NoClassDefFoundError: Caused by: java.lang.ClassNotFoundException: When I execute .jar

I'm developing in Netbeans IDE, when I run IDE everything works fine but when I run clean and build and create .jar when running throws me this exception: Ihavetriedtocompilepackagebypackagebutitstilldidnotwork.Anysuggestionstofixthis?...
asked by 15.01.2015 / 12:52
1
answer

Feedback equal #region Visual Studio

Is there a comment like #region of Visual Studio in PHP with NetBeans?     
asked by 12.08.2015 / 17:52
3
answers

Method in PHP have line limits?

   The method size is 22 rows. (20 Allowed) NetBeans gives me this "warning", why? Is it a PHP rule? What's best: A great method with all the code it needs. Splitting this code into smaller methods Is there an adequate number of r...
asked by 03.07.2017 / 22:55
1
answer

Error in logic control TV - Java

I'm a beginner in java and I'm having a hard time making the btnVolumeUp button increase the counter. First I have this TV class in which I created the methods. public class Televisor { int canal = 0; int volume = 0; boolean ligar =...
asked by 20.04.2015 / 20:57
1
answer

Hibernate + Inheritance

I'm trying for some time a solution to my problem. I have researched a lot but nothing explains me clearly what I need. So I created an example application and I'm making it available from this link: Appliance To run this application, si...
asked by 05.08.2014 / 22:25
2
answers

Error trying to execute a class

This is my first post here on the stack, I'm having trouble running this class on NetBeans. I am using version 1.8.0_40 of Java, I already tried to search for some solution, but I did not find it. public class Dialog1 { /** * @param...
asked by 12.03.2015 / 19:33
1
answer

How to configure Netbeans to work with PHPUnit in a virtualized environment?

I use Netbeans 7.4 on Mac to program. And to not have to install PHP and PHPUnit, I would like to run PHPUnit installed on a virtual machine that has an entire integration environment already configured. This practice has been heavily used, and...
asked by 31.01.2014 / 03:18
1
answer

How to persist a record in the webservice database through restful Java?

I already have a method that takes a json and persists in the Mysql database. I can test it by the interface created by Netbeans, which has a field for inserting a json, but how do I, within a java application, make an http request by passing js...
asked by 06.09.2015 / 07:06
1
answer

Problems with new in Java

Why every time I use new in my class, for example: if(e.getSource() == levelButton) { new PainelNivel().setVisible(true); } Java runs this command ie it shows the class LevelDraw and opens the class from where this command was...
asked by 27.04.2015 / 06:37
1
answer

I can not initialize Tomcat on Netbeans

When I started Tomcat in Netbeans it gave the following error: Using CATALINA_BASE: "C:\Users\chrissian\Desktop\Todo sobre o JAVA\Tomcat\apache-tomcat-7.0.63" Using CATALINA_HOME: "C:\Users\chrissian\Desktop\Todo sobre o JAVA\Tomcat\apache...
asked by 30.07.2015 / 02:25