Questions tagged as 'java'

2
answers

Is it possible to include a dll in a jar with eclipse?

I have an application that uses a jar. This jar depends on a dll, so I included the dll in a folder inside the eclipse project. The problem is that when I export the project with "Runnable jar file- > Package required libraries into generated...
asked by 18.03.2016 / 21:20
1
answer

org.apache.commons.codec.DecoderException: Odd number of characters

I have the following error in compiling tests and I would like to help me solve it: String nonce2 = "11111"; String api_key = "271e6189-c251-4067-ab55"; String api_secret = "c9f98b81-e825-4588-b095"; String algorithm = "HmacSHA256"; byte[] k...
asked by 06.05.2016 / 17:09
2
answers

Keep a session in Java with jsf and ManagedBean

Starting with Java EE and JSF, I need to create a simple login and keep the id and nick of the user in the session. For that, create a class package Controlador; import java.io.Serializable; import javax.faces.bean.ManagedBean; import java...
asked by 06.05.2016 / 23:13
1
answer

SQL query with Asynctask passing parameter

I'm doing a class that extends Asynctask to make a modification to my database SQLite Android, to perform the query you must pass a parameter to the method of the query, but I do not know how to pass it to the Asynctask class, I have this for no...
asked by 03.01.2019 / 10:51
1
answer

column not found

I have a problem - I get an error message:    "java.sql.SQLException: Column 'cod_pro'nod found." Why does this "column not found" error come out? This is my code: void generarNumeroFactura(){ String sql ="SELECT LAST_INSERT_ID(cod_...
asked by 03.01.2019 / 19:08
3
answers

Animating Floating Action Button (slide up, down) depending on the Scroll

In this link there is the solution to ocular and show the fab button FloatingActionButton depending on the scroll But I would like it when I hide and show the fab button I did it with an animation slide Up and Down:     
asked by 03.06.2016 / 12:44
2
answers

Create a program that allows you to see how many objects have been created in a class

This time I would like to know what would be the smartest and cleanest way to create a program that says how many objects have been created in a class . I have tried to do it in the following way: /*Crear un programa que le permita ver...
asked by 05.06.2016 / 23:42
2
answers

Help I have the following error in an activity that lists data in a ListView

The error that is thrown is the following:    E / AndroidRuntime: FATAL EXCEPTION: main       Process: com.example.bastiancorps.geoassistance, PID: 17445       java.lang.RuntimeException: Unable to start activity ComponentInfo {com.example.ba...
asked by 19.12.2018 / 06:22
1
answer

Unexpected error in Android Studio spinner

I'm trying to implement a Spinner, but at the time of deploying it only appears the first element of all that should appear in the spinner. For example, if it is a spinner of curricula of people in which it appears name photo and text, it would...
asked by 19.12.2018 / 18:03
2
answers

com.sun.faces.mgbean.ManagedBeanCreationException:

Good morning. Why is this error that is generating me? I just put in my code: @PostConstruct public void init(){ this.listarMenus(); model=new DefaultMenuModel(); this.establecerPermisos(); } And it generates the following erro...
asked by 08.01.2016 / 16:03