Questions tagged as 'java'

1
answer

How to search for .exe?

How do I make a Java application that searches for an ".exe" inside a folder and inside that folder has subfolders. I want it to look for myself having subfolders. E returns true or false. For example: C: \ Windows \ ai want to find cmd.ex...
asked by 17.06.2014 / 16:09
1
answer

Object getting null in the middle of the process

I'm developing a system using Java, Maven, Hibernate, PrimeFaces and MySQL database. Within this system, I created a program to record the amount of rainfall that occurs on the day. My table Pluviometro has the fields for (auto increme...
asked by 25.05.2018 / 02:57
2
answers

Only one class can instantiate another class, how to do this?

Hello, I'm doing a UML about an exercise, but I can not do a part of it. The exercise says that only the administrator class can create another collaborator, I wanted to know how I could implement this. Example of what I've done so f...
asked by 30.05.2018 / 20:53
2
answers

Problem with position and size of components

I'm doing a program using the wizard, the famous "click and drag". Most of the project I'm doing on my computer, and I use the command to maximize the screen in the frame, and I set the panels right so that everything fits, but when I continue t...
asked by 28.03.2018 / 00:27
2
answers

How to write a JSP page using characters from other languages?

I'm writing a JSP page that uses Japanese characters and I'm using the get method, but when I switch to the post method it does not work. I already tried using charset = Shift_JIS, but nothing !! JSP page: <%@page contentType="text/html"...
asked by 18.09.2015 / 15:22
1
answer

Optimize insert in MySql table - Java

I have a loop making the sequential insert of millions of rows into a single MySql table. I wonder if it's possible to parallelize the insert or use some feature that increases insert performance. Code: public static java.sql.Connection...
asked by 16.09.2015 / 00:11
1
answer

NoClassDefFoundError error after removing external API (YouTube)

I'm developing a nice project and I came across a difficulty that I could not get out yesterday, the project stopped recognizing all api's, butterknife, YouTube, everything ... The following is the error:    NoClassDefFoundError: Class not...
asked by 28.09.2017 / 11:45
1
answer

Component placement using GridBagLayout

I'm doing a panel and I want to have the following layout: The width of the panel occupies the full width of the frame, and I want to have 4 buttons in the right corner of that panel. I created a panel as container , and within that panel...
asked by 26.04.2014 / 20:31
1
answer

How to retrieve a soapObject from a webservice return

androidHttpTransport.call(SOAP_ACTION4, envelope); SoapObject result = (SoapObject) envelope.getResponse(); System.out.println(result.getProperty("nmConsultor")); return result.toString(); In case I would...
asked by 16.04.2014 / 16:20
1
answer

Pass an object between scenes (screens) JavaFx

The idea of the system is to save some information in a txt file that will be queried by a code in Lisp, a decision tree routine will be performed and will return the result to be displayed in the interface in Java. I have an object that will...
asked by 02.11.2017 / 01:57