Questions tagged as 'java'

0
answers

Linker error in java library (NetBeans)

I'm having trouble with a library that I imported. What I did was simply extract the zip file from the library and then on Libraries I used the Add Jar / Folder to import the librarian into the project. The error I'm having is the following: N...
asked by 17.10.2017 / 12:04
1
answer

Problem with checkbox and OnItemClick event

I have created a list with checkbox disabled, where the purpose is that when the user clicks on an item in the list, a new screen opens and the check is checked, but I can not make the check automatically marked.    Class ListActivity pu...
asked by 25.10.2017 / 02:14
1
answer

Number problem distinguished in java

package totoloto; import myinputs.*; public class Totoloto { /** * @param args the command line arguments */ public static void main(String[] args) { int aux, k = 0, l, i, j, u; int t = 0, s; int[] x = new int[6]; System.out.p...
asked by 17.10.2017 / 02:40
1
answer

Check if a variable exists in a class [closed]

I'm trying to check if a variable exists in a class. For this I am using the code: try{ clazz.getDeclaredField("id"); } catch(Exception e){ System.out.println(e.getMessage()); } With this I can see without problems. My Problem: W...
asked by 16.10.2017 / 23:07
1
answer

Socket Error in get https request

I use Java 6. I was doing the integration with IBPT and used this code: URL url = new URL("http://iws.ibpt.org.br/api/deolhonoimposto/Produtos?"); InputStream input = url.openStream(); It worked fine, but the web service changed and now th...
asked by 26.10.2017 / 13:30
0
answers

JSF - Interrupt method when closing browser

I have a report that depending on the filter applied may take a long time to finish. On some occasions the user gives up waiting and closing the browser, it happens that the query is still running on tomcat. Is there a way to invalidate the sess...
asked by 26.10.2017 / 13:02
1
answer

Working with tomcat + Eclipse + SublimeText (Frontend)

We are creating a web project using Eclipse (IDE) and SpringMVC. The development team has two people, separated in Front-end and Back-end (we are using GIT for versioning). For the Front-end we would like to use SublimeText instead of Eclipse. B...
asked by 26.10.2017 / 14:32
0
answers

Problem saving month - MySQL Workbench

Good afternoon, I am doing a project management project and I have in the registration form, two date fields, when I enter, when I consult the bank, the dates appear with the wrong month, all indicate month 1. This is the save button code:...
asked by 16.10.2017 / 20:07
2
answers

Swagger2 with SpringBoot. How to separate documentation from source code?

Good afternoon, guys. I am documenting the APIs of a Spring Boot project using Swagger2. There are two ways to document: using a text file (JSON or YML) or using annotations. The problem of using a text file is the difficulty in maintainin...
asked by 24.10.2017 / 19:52
1
answer

Passing values from a class when generating a pdf in JavaFX

Good afternoon, I created a PDF.java, which has the function of generating a pdf, and in another file (FormularioHoteleriosController.java) by clicking on a particular button, I instantiate the PDF.java file in order to generate and open pdf , h...
asked by 02.11.2017 / 13:47