Questions tagged as 'java'

1
answer

error: can not find symbol - maven install with class folder

I have a maven project in eclipse that uses a class folder. This folder has .java and .class. The classes I use in the project are in the build path as class folder, when I do maven install gives me error: [ERROR] location: class PushJobProces...
asked by 11.02.2016 / 13:46
1
answer

Error sending JSON by Socket

When the JSON String is too large, there is a loss of part of the String in the submission. I'm sending it like this: private void btComunicarActionPerformed(java.awt.event.ActionEvent evt) {...
asked by 23.02.2016 / 19:49
1
answer

JPA / Hibernate Entity with Collection for itself

Hello, I have an entity named menu on my system. A menu can be a child of another menu and so on. The table has the following structure: Theentityismappedasfollows:@Entity@NamedQuery(name="Menu.findAll", query="SELECT m FROM Menu m") public...
asked by 02.02.2016 / 14:11
1
answer

Doubts about Select

Hello, I'm doing a user / password check in java and I need to perform a query that checks the database for a login and a password for the type in jTextFields . But I can not get anyone to help me, I'm grateful, to help get a sense of what...
asked by 05.10.2015 / 17:10
2
answers

I believe my error is in arrays, or type conversions, but how to solve?

I'm new to java and I have to do a tetris. In this class in particular, I create 2 control arrays to manage the positions of the pieces on the screen, but it is giving error. Does anyone have some time to help the newbie? package jogo; import...
asked by 08.10.2015 / 02:46
1
answer

Problems with restfull api

I have a Restfull API on the local Apache server that returns a list of users from the database (localhost / api / users). I'm using JSONLint to validate my JSON. When I access via browser I get the result and it is valid in JSONLint, w...
asked by 02.10.2015 / 17:00
1
answer

Java Text Streams

Each object of the student type previously instantiated must be inserted into a vector of objects of type Student. For this exercise you can assume that the vector has a maximum of 5 positions. To create an object of type student from the read l...
asked by 15.03.2017 / 21:04
1
answer

doubts about Regex using Primefaces

I have an input , where when a name is typed in the ex: João Da Silva field, > Regex . In this case, this field must be case sensitive. Now when I put space it does not save. Follow the code: <p:outputLabel value="Nome" for="nome" /...
asked by 20.03.2017 / 20:11
1
answer

JavaFX: pros and cons of MVC, MVP, MVVM, etc.

What standard model-vision (MV) use with JavaFX thinking about scalability and good manutibility? On Google you find people recommending MVC, MVP , MVVM ... maybe there are others. Some say JavaFX is meant to be used with MVC . Others...
asked by 01.06.2018 / 19:06
1
answer

Create a method that receives a generic class?

I've been breaking my head with the Reflection API. I'm writing a class (reader) that reads a CSV file and creates an ArrayList of objects based on CSV. I've done a test class to write the code, but I want to adapt the code so that it works with...
asked by 07.06.2018 / 17:03