Questions tagged as 'java'

1
answer

Call Java (.JAR) class using C ++ (.EXE)?

I have a Java application (SYSTEM.JAR) with the system input class ... Ok? To make it more transparent to the end user, I'd like to create a compiled C ++ .EXE that just called the Java class. Is it possible? Which C ++ compiler is sugg...
asked by 04.03.2015 / 12:24
1
answer

Consume REST service using Spring Framework

I'm developing a web application, using Spring Framework . And I need to consume a rest service from another application. I know how to send requests POST , using jquery and ajax , but I want to know if it is possible...
asked by 05.03.2015 / 20:47
1
answer

"Google account: blocked login attempt" - Android App

Take a look at my code first LoginActivity class package com.softblue.sendemail; import java.util.Properties; import javax.mail.Authenticator; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.PasswordAuth...
asked by 04.03.2015 / 13:37
2
answers

Exception with Convert from a selectOneMenu of Primefaces

I created a dynamic selectOneMenu that receives an Author Object List that implements Serializable. The code is as follows: selectOneMenu XHTML <p:selectOneMenu id="autor_selecionado" value="#{pragaBean.autor}" style="width: 19%;"...
asked by 25.11.2014 / 13:21
1
answer

How to update a jTable that displays DB data after registering a new item?

I have a table (jTable) that displays all the data registered in a database. My table is populated every time the application is started through a WindowEvent, but when I make a new record in the database through another frame I can not get my j...
asked by 22.11.2014 / 18:51
1
answer

OutputText only refreshes after Tomcat Restart

I'm using Tomcat 7, Eclipse Juno (in Windows 7) and Primefaces 5 for my application. After registering some information in the database (vaccines for vaccination book), access a screen (vaccine-caderneta.xhtml) to view the status per patient...
asked by 21.11.2014 / 13:05
1
answer

Domain redirection

Is there any way to redirect the domain to a folder in public_html instead of adding a index.html file with automatic redirection?     
asked by 21.11.2014 / 12:18
1
answer

Transform javax.persistence.Query to ArrayList

It is possible to transform a javax.persistence.Query into ArrayList . I need to return an object of type Query but can not have all result values. I want to delete some results based on some tests, the code is below. I...
asked by 13.11.2014 / 03:24
1
answer

Shared Preferences does not store login using JSON

I am not able to save the login using JSON, it logs in but when I close the application and start again it did not save the login. private EditText editTextLogin; private EditText editTextSenha; private CheckBox checkBoxLembrarLogin; private B...
asked by 10.02.2015 / 19:17
2
answers

How to model user system

I need to model the classes of a system where you have 2 types of User, the common user and the administrator, what is the best way to model this? Well I'll specify the attributes that each one needs in my application: Common User: name, logi...
asked by 15.11.2014 / 06:32