Questions tagged as 'java'

1
answer

Convert wrong string string to be displayed [duplicate]

I have a string in the following format 2017-12-08 , however I need to display it formatted for the user as follows: 08/12/2017 , I thought about using SimpleDateFormat variable is in Date format, and I am not conse...
asked by 08.12.2017 / 17:42
1
answer

Convert project to maven with EAR, what better way?

Hello,Iwouldliketoknowwhatwouldbethebestwaytoconvertthisprojecttomavensothatitcanrecognize"shared.war", "facede.jar" and be bundled as ".ear". I've done some conversions but never with .EAR, could you help me? Thank you!     
asked by 04.01.2018 / 09:57
0
answers

How to use a thread that has died again?

I'm making an application that plays sound effects for an RPG game. The goal is for the application to be able to play multiple sounds simultaneously (a song together with an explosion effect, for example). Each time the user clicks on the bu...
asked by 21.12.2017 / 18:48
1
answer

Error when saving in bank (Unable to build entity manager factory)

I'm trying to implement a registration but when I click the button to save the following error appears in the console: dez 18, 2017 3:49:14 PM org.hibernate.ejb.HibernatePersistence logDeprecation WARN: HHH015016: Encountered a deprecated java...
asked by 18.12.2017 / 19:10
0
answers

Problems installing Netbeans and Javafx on ubuntu 16.04

I'm trying to continue a project (javafx) after formatting my machine with linux Ubuntu 16.04. I installed default-jdk on the terminal before installing full netbeans 8.2 downloaded directly from Oracle's website and when I try to open the proje...
asked by 02.01.2018 / 19:32
1
answer

Jaxb and JPA: class Embeddable Could not determine type for java.util.List

I'm trying to embed a class inside another class. I've already been able to do this in other scenarios, but for the error shown below, I'm not getting it right now. javax.persistence.PersistenceException: [PersistenceUnit: nfse] Unable to buil...
asked by 18.12.2017 / 20:58
1
answer

Error when listing FTP file

Good night everyone, I'm trying to make a simple program that lists the files of an FTP directory, and an error is occurring. package br.com.java; import java.io.IOException; import java.net.SocketException; import org.apache.commons.net.ftp....
asked by 02.01.2018 / 21:31
2
answers

Why can not I delete an object with Hibernate?

I have on a screen a process table and I want to delete one of them. This is a piece of my datatable : <p:column headerText="Excluir" style="width:68px"> <p:commandButton actionListener="#{processoMB.excluir(obj)}" icon="...
asked by 02.01.2018 / 21:34
0
answers

Tomcat 7.0.76 HTTP Status 500

Good evening guys, I'm breaking my head with this CentOS 7.0. The story is as follows: I installed a machine with CentOS 7.0 and installed Tomcat. So much to wonder, I accessed the default page that it confirms the installation. My deve...
asked by 16.12.2017 / 03:18
1
answer

Array of numbers with variable quantity Java Android

I'm doing a program for Android and I want to make an array of integers, but I need to define the quandity of numbers with a variable that has 3 values: 20, 50 and 100. I tried using the code below: private int[] listNumbers1 = new int[maxNumb...
asked by 15.12.2017 / 00:09