Questions tagged as 'java'

1
answer

How to install Maven on windows

Following this tutorial link Download maven from link I am adding these variables: in the system path. M2_HOME: C:\programs\apache-maven-3.0.3 M2: %M2_HOME%\bin JAVA_HOME: C:\Program Files\Java\jdk1.6.0_25 Path: %JAVA_HOME%\bin; %...
asked by 25.04.2017 / 16:17
2
answers

How to extract the text from a custom listview?

Hello everyone My current problem is how to extract a text from a custom listview. Instead of extracting the text it extracts a numerical value but in String, an example the text is chocolate and instead of extracting chocolate it extracts...
asked by 10.03.2017 / 20:35
3
answers

Error in Android Studio

I am developing an application in Android Studio but at the time of executing it by the emulator I am getting the following error:    Error: can not find symbol variable fab FloatingActionButton fab = (FloatingActionButton) findViewById(...
asked by 11.03.2017 / 14:53
2
answers

Error with geolocation in android studio Unable to get provider

This is my MapsActivity class package com.example.em645.prueba; import android.content.Context; import android.content.pm.PackageManager; import android.location.Location; import and...
asked by 05.12.2016 / 17:13
3
answers

Doubt abstract classes

I've been looking through some websites how abstract classes work, and I think I understood it well, but I've seen an example where I do not understand a part, and I do not know how to look for it to access a tutorial explaining it. I hope someo...
asked by 04.12.2016 / 13:02
2
answers

Doubt about Polymorphism

I have an Abstract class Vendible (with attributes name, price and identifier) and two classes that inherit from it Products and Package, Package is going to be formed by an array of products and the advantage is that it has a discount of 20 % o...
asked by 03.12.2016 / 00:52
2
answers

corrupt access database: "Unrecognized Database Format"

Good! I am using Microsoft Access 2007 to do my practices at home with JAVA and VB.NET. I ran the program that I had done in VB.NET when out of the blue reproaches me with the message of the title ... I tried to download the database I had in...
asked by 12.12.2016 / 00:49
1
answer

Perform unit test in Eclipse or Visual Studio

Having the following function: public int Suma (int numero1, int numero2){ return numero1+numero2; } Be in Java or C# . Is there a way to test this function without having to invoke it in the MAIN? So if I have several fu...
asked by 07.03.2018 / 19:12
2
answers

Problem with query JPQL + JPA + JSF + EJB

@Override public Usuario iniciarSesion(Usuario us){ Usuario usuario = null; String consulta; try { consulta = "FROM usuario u WHERE u.usuario = ?1 and u.password =?2"; Query query = em.createQuery(consulta);...
asked by 25.10.2016 / 10:53
3
answers

Can not find audio within src

I have an "audios" folder inside "src", so when I build the project I can play the audios. I try to open the audio but I skip "java.lang.NullPointerException" public void playFalloVibrador1Reponer() { try { InputStream pa...
asked by 26.10.2016 / 13:44