Questions tagged as 'java'

1
answer

Instantiation error for class

Good afternoon, I have looked several times and I do not understand the reason for this error. I need to instantiate the "created variable" that is in the JFrame for the class UserM. It just says that in the line that the "created variable" n...
asked by 04.12.2015 / 18:22
1
answer

Page Numbering Problems with iText

Good afternoon, guys. I need to create reports with iText. Everything was going really well until the time I had to number these reports. I found a reply in someone else's post in the GUJ , but did not work very well. Based on this tutori...
asked by 04.12.2015 / 19:37
1
answer

Android - AsyncTask and ProgressDialog

Hello, guys. I'm starting in the Mobile area recently and I'm having some issues with the user experience issue in my App. In my App, it gets a JSON from the server through a AsyncTask . Below is a well-honed class, but it basically doe...
asked by 01.06.2016 / 05:05
1
answer

Problem to add content in ArrayList

I have an abstract animal class, which feline and canine inherit from it, and I have a client class that has 2 arrays, one to add felines and one to canines. But at the time of adding the feline executable class to the array on a client obj...
asked by 02.06.2016 / 21:23
1
answer

Error: You have an error in your SQL syntax [closed]

I'm developing software for an MVC (Model-view-controller) design video store and there's a problem with not changing people's data. When I change the data of the person it displays the following message: "Error changing data!". Class VideoPe...
asked by 28.10.2015 / 19:58
1
answer

java.lang.NullPointerException: Attempt to invoke virtual method on a null object reference

I'm trying to insert some values in the database, but it's always giving an exception. My class that enters the bank: private String email; private int codigo; private Button btnOkay; private Button btnCancelar; private EditText codigoConf...
asked by 03.06.2016 / 07:00
1
answer

Performing a specific task on a specific date and time

I'm trying to develop a small system that sends an email every Tuesday at 08:00 in the morning. But I'm a bit confused, I can already send the email and check if it's Tuesday, but I do not know if it's correct. The system keeps running,...
asked by 08.09.2015 / 14:37
1
answer

Failed to copy an entire directory and its files

I need to copy an entire directory containing files inside using Java NIO2 with FileChannels . But I can only copy the files into the directory. Here is the code I'm using to copy the files: public static void copiaDestino(File...
asked by 27.08.2015 / 00:33
1
answer

How to generate a jar through ANT?

I'm using Jdeveloper together with Ant, though I came across a pretty boring situation ... I can not generate a functional .jar through the ant. I have already built a build.xml containing the path to main class, however ... whenever I try to...
asked by 14.10.2015 / 23:00
1
answer

PersistenceUnit: fabricaweb2 Unable to build EntityManagerFactory

I have this error below, can not create the EntityManager. I am using maven and the META-INF folder is within src / main / resources in the root folder where the src / main / java entities are. Errors below when I run: log4j:WARN...
asked by 14.10.2015 / 11:03