Questions tagged as 'java'

1
answer

Where is my error?

I'm playing a game on Android pretty simple, but I'm having trouble with the interface. I created the interface in xml, and set the java class corresponding to it (setContentView ...), until then ok. But I want it to be called when the Acti...
asked by 19.10.2017 / 03:25
1
answer

Result 0.0 - even with typecast or swapping variable types

I have this method in the secondary class to calculate the median of a vector: public class Funcoes { .... public void setMediana(int[] valores) { double med; Arrays.sort(valores); int meio = valores.length / 2;...
asked by 02.11.2017 / 17:17
1
answer

Prevent object from overwriting the rest in ArrayList

I have two repeating loops that have the function of replacing text with other values. The problem begins when I command to add an object to a ArrayList , in this case the object clone . The addition is in the second loop because...
asked by 30.05.2016 / 17:54
2
answers

JasperReports, Document Contains No Pages?

Hello, I'm newbie to JasperReports and I'm facing a problem in order to generate my first report (a DANFE), everything I've seen on jasper so far involved database, as my application does not use bank I ignored this and I'm trying to pass the dat...
asked by 02.02.2016 / 23:14
1
answer

Problem to execute project [closed]

I can not run my project from the error    "com.android.ide.common.process.ProcessException:   org.gradle.process.internal.ExecException: Process' command   'C: \ Program Files \ Java \ jdk1.7.0_79 \ bin \ java.exe' 'finished with   non-zero...
asked by 30.12.2015 / 00:04
1
answer

I'm having trouble saving the contents of a docx in pdf

I have a Rest method that takes a Word document, replaces the placeholders, and converts it to PDF and saves it to a directory. But I have a NullPointerException that I can not solve, can anyone help? Log Error: 14:35:11,134 ERROR [org.docx...
asked by 28.01.2016 / 18:58
1
answer

How to assign action to Image or Button

I'm developing the homepage of a simple game, what I want is to add a button on the screen where when I click on the game to start, follow below my code of how I'm setting up the menu and bringing the background, the code behind the image I put...
asked by 21.10.2015 / 13:14
1
answer

Errors Unable to build entity manager factory Help aq please

Errors Unable to build entity manager factory in the application. JPA, Hibernate, PostgreSql, MAVEN, Tom Cat and Eclipse. These errors occurred below: nov 03, 2015 8:33:35 PM org.hibernate.ejb.HibernatePersistence logDeprecation WARN: H...
asked by 04.11.2015 / 00:44
1
answer

How to link a link to an object? Servlet

I have a servlet solution, I have a form written in html, save the data in a database, I get this data and I have an html table, in this table it has the attributes of the person object, one of the values of these columns is a link, when the use...
asked by 26.09.2015 / 03:52
1
answer

How to clean an int variable in java?

I'm developing a program that has a menu that if I type 1 register a course and if I type 2 register a student both ifs are working type if I type 1 register a course close the console open again type 2 and type a student happens everything norm...
asked by 12.03.2017 / 17:42