Questions tagged as 'java'

2
answers

Difference in Java and JS when creating a class and instantiating it?

I am using JS to perform an API and as much as I try I can not understand why, when making a POST request to create a user, it tells me that User is not a constructor. I am "new" in JS and I have in mind the creation of classes / constructors...
asked by 18.03.2017 / 13:24
1
answer

Get hostname and server port

I have a web application that sends emails with a link to access a module of my application, but I have been doing it in a fixed way with the IP address and port already established. Now my application is going to upload to production, and the p...
asked by 17.03.2017 / 21:53
1
answer

Hibernate LazyInitializationException

I have a problem with my java project when I execute a function generated by the hibernate it returns it correctly, but if I try to access an instance object of another generated class it gives me an error because this is null T...
asked by 21.06.2017 / 18:07
1
answer

Android Studio 2.3 error jdbc mysql connection

Hi, I have downloaded and installed Android Studio 2.3 and I want to make a connection to a remote mysql database. My version of java is the java version "1.7.0_121". I have pasted the file mysql-connector-java-6.0.5-bin.jar in the...
asked by 18.04.2017 / 12:02
1
answer

Listener in JavaFX

Good evening, I have run into a small problem when writing the code of an interface. The part of the code that fails is: final BooleanBinding activarComprobacion = campo1.textProperty().isEqualsTo(""); activarComprobacion.addListener((Observab...
asked by 19.04.2017 / 23:28
1
answer

Configuration error. Class [com.mysql.jdbc.Driver] not found

I have the following problem I hope you can help me. I am working with Wild Hat from Red Hat, although I have already tried it on other servers such as Apache and Galssfish. already add certain jar's to the servers and nothing, believe datasorce...
asked by 05.05.2017 / 19:11
1
answer

Division between double values returns 0

I am writing a Java code consisting of several simple mathematical operations (divisions and multiplications). It is a problem of Physics. It turns out that when calculating certain operations, with values already obtained, the results of the...
asked by 04.03.2017 / 12:52
1
answer

Problems with the differences of an Activity and DialogFragment

I have a problem and I can not solve it in any way. I used to have a Activity called MasInformacion and did the following: public class MasInformacion extends Activity { private TextView editTextNombre ,editTextFecha, edi...
asked by 03.03.2017 / 00:39
2
answers

Save data in an application entered by the user [closed]

There is some way for, for example, in a survey, the user to answer a series of questions, and then click on "Send survey", then click on "Surveys" and the information that you put in the previous survey appears . So on, but when the application...
asked by 06.03.2017 / 03:04
3
answers

Call variable from one class to another java POO

Good I'm doing a POO project, and I want to get a data from a class Employee, to make a comparison in another class Salary, can this be done? Or should I make the comparison in the main method directly? 'Import javax.swing.JOptionPane; /** *...
asked by 26.04.2017 / 22:44