Questions tagged as 'java'

1
answer

Problem when creating socket in android to server on pc

I am doing a chat for a project in the grade I am in, I already have a client and server that work in java on the PC. Now I wanted to make a client in mobile version. The point is that I am stuck in the creation of the socket , since it...
asked by 09.11.2017 / 19:41
1
answer

WEB9102: Web Login Failed

My problem is that I am trying to create a login in JSF 2.2 with Java EE 7, Glassfish 4.1.2, PostgreSQL database and I have already configured the realm in glassfish revised tables, fields, files and can not find several times the error so as to...
asked by 12.11.2017 / 01:49
1
answer

No suitable driver found for jdbc: mysql

To which other drivers are referenced or that I am not loading as I am loaded correctly, since if I do it for a main function this loads correctly     
asked by 11.11.2017 / 00:39
2
answers

SQL statement to get the ID of a given entity a name

In SQL, I have a table called COMPANIAS with id_compania and nombre . Given the name, in a variable, I want to find the id_compania that has exactly that name. Method to obtain the ID: public int companiaNombre...
asked by 11.11.2017 / 23:24
3
answers

How to convert to Integer getSelectedItem () from a JComboBox in Java

I tried the following but it does not compile the code: Integer seleccion = (Integer)jcombo.getSelectedItem(); Also with: Integer seleccion = Integer.parseInt(jcombo.getSelectedItem()); and with: Integer seleccion = Integer.valueOf(j...
asked by 12.11.2017 / 04:29
1
answer

Why do I get this error in this java problem? [duplicate]

I do not understand, the exercise gives me 4 errors. The statement of the exercise is as follows: In a class called Coins, the following members are present: to. Two private variables of type called chain country and currency, the value of...
asked by 11.11.2017 / 20:53
1
answer

problems configuring apache tomcat 8.5.24 for java

I'm trying to start apache tomcat 8.5.24 with the information that appears here: link I installed java jdk 9.0.1, I did the variable for java jdk and modified the variable path. I also modified the tomcat-users.xml file to grant the permission...
asked by 26.12.2017 / 19:47
2
answers

enter abstract parameter in interfaces

Good evening, I have a question. How do I add an abstract class in a method done in an interface as parameter? this in order to call implementing the interface can add any type of abstract class. My interface is this public interface DBM { St...
asked by 26.12.2017 / 00:59
1
answer

ProgressDialog does not work in Custom Listener

I have a custom Listener public interface CustomListener { void processDownload(boolean isSuccess,int process,int total); } And the ControllerRequest class where I use the listener , and I have the onProcessDownload method that wil...
asked by 07.11.2017 / 23:37
1
answer

how to convert this date format Tue Jan 10 00:00:00 CST 1984 to format 10/01/1984 in jsf?

I have my variable DateNacimiento of Type Date to which I pass a date that comes from a WS of type XMLGregorianCalendar fechaNacimiento = DateUtils.convertXMLCalenarIntoDate(datosProbatorios.getDatosPersonales().getFxNacimiento()); but when...
asked by 26.12.2017 / 18:11