Questions tagged as 'java'

1
answer

Error adding certain libraries in Android Studio, APK META-INF / LICENSE

It turns out that I am passing an application that I made in java to android but when copying the libraries to the Android libs folder when running the app I get an error which is the following: This only happens with some libraries and I...
asked by 17.05.2017 / 15:24
0
answers

Error connecting to the SQL database from eclipse - JasperSoft Studio

When I connect to the database of Sql Server 2008 R2 with the autenticación de windows from the Data Adapter Wizard of Report Design in the same eclipse - java , I get the following error: These are the da...
asked by 17.05.2017 / 15:00
1
answer

JJWT java Token works well for the console but not on the endpoint

I have a problem trying to simply show the token created by means of a simple alert javascript. I did a method that creates the token , which works excellent, because when I try it for "console" the result is a long line of characters,...
asked by 20.04.2017 / 11:13
0
answers

Fix dates entered with format dd / MM / YYYY

With Java, instead of recording dates with the dd/MM/yyyy format in the database, I used the year in uppercase ( dd/MM/YYYY ). I would like to revert the engraving, and be able to transform the dates wrongly entered for the correct...
asked by 20.04.2017 / 13:28
2
answers

Cursor error when querying in sqlite from the assets folder when the application is removed and reinstalled

I have a problem when I query the sqlite database from the assets folder only when I uninstall the application and reinstall it. If it is the first time you install the application runs normally without any problem. In the list of errors it show...
asked by 19.04.2017 / 23:35
3
answers

Unresolved compilation problems: The method is undefined for the type

I get the following error when compiling in Eclipse: Exception in thread "main" java.lang.Error: Unresolved compilation problems: The method getValor() is undefined for the type Ejercicio6 The method mostrarProductoyValor() is undefined...
asked by 22.04.2017 / 01:00
1
answer

Riemann sum does not return the expected value

I wrote this code to find the sum of Riemann given a function, a range and precision that would be n, but when I execute it it returns "2.0E -8", and then in my calculator this is 6.6666666666666 Could you please help me see what is wrong?...
asked by 22.04.2017 / 00:38
2
answers

Format of dates in Java

I have a problem with the format of the date in the java language, I want to format it in DD / MM / YYYY but it does not allow me, I format it as MM / DD / YYYY I have tried with the    new SimpleDateFormat ("dd / MM / yyyy"). format (get...
asked by 03.05.2017 / 16:11
1
answer

Problem Recognition of numbers from an Image

I have been trying to recognize a serial number in several images from rifles like the following: I have tried with an OCR for image recognition called Asprise: Asprise OCR and it has worked, however I developed the project to carry i...
asked by 02.05.2017 / 21:02
1
answer

error JSONException error No value for

This is my code String line; while((line = reader.readLine()) != null){ result.append(line); } JSONObject respuestaJSON = new JSONObject(result.toString());...
asked by 03.05.2017 / 03:54