Questions tagged as 'java'

1
answer

Changing position of a Marker

I have a MapsActivity Class, where it starts at a fixed point set on the map. I'm calling a Thread, where Map is only fully loaded, when the return is true. (I will do a search on a DB through the Web Service where it will return me Lat and Long...
asked by 01.10.2017 / 18:34
0
answers

How to read a txt file and encrypt its contents

I'm having trouble with FileReader and buffered. I've seen several tutorials plus some are very different from each other and I can not read my file to encrypt. I have here my AES code: import java.io.ByteArrayInputStream; import jav...
asked by 01.10.2017 / 18:14
1
answer

Chained list sorted with errors in add [closed]

I have the following chained list sorted, but I'm getting errors in my first method (add). The error message appears in all 3 interactions where I compute the values of the nodes with the ">" because java says that it is not a suitable operat...
asked by 25.09.2017 / 19:52
1
answer

Problems with p: ajax in primefaces

Good morning, friends! I am a beginner in Java and I am trying to develop a system for church management. After many attempts, I can make ajax work, however I am not able to retrieve the id of the state that was selected in selectOneMenu. The id...
asked by 08.10.2017 / 16:05
1
answer

Import library org.apache.commons.io.input from Java to Eclipse

I need to use the ReversedLinesFileReader class, which belongs to the org.apache.commons.io.input library. @TomMelo told me that I should include a dependency on this library in the pom.xml file for Maven . This is the dependency: mvnrepos...
asked by 08.10.2017 / 23:18
1
answer

ViewPager + FragmentPagerAdapter + Update Fragment?

In implementing a SlidingTabs using the SlidingTabLayout and SlidingTabStrip classes provided by the Android Dev + ViewPager + FragmentPagerAdapter website when the data is updated in the Fragments that were created by the FragmentPagerAdapter w...
asked by 19.09.2017 / 00:51
0
answers

How to make the switch back to the "false" state?

I've created a switch that turns bluetooth on and off. But when he calls, he asks the user if he really wants to activate bluetooth. If the user clicks no, the switch remains active and the crusha app. Does anyone know how to make the Switch...
asked by 19.09.2017 / 12:17
0
answers

".m2" folder for the settings.xml file in Windows Server 2008?

I have a Java EE application with Wildfly10.1.0.Final server that uses this folder to add the settings.xml file, but inside Windows server 2008 I do not have this folder in the user, how could I create this folder? Thanks for the help.  ...
asked by 17.09.2017 / 17:00
1
answer

Create table apostille Java EE 7 Algaworks

I'm trying to create the Java EE 7 course course database with Jsf, Primefaces and CDI and I'm not getting it. Give the error below: set 17, 2017 8:24:22 PM org.hibernate.annotations.common.Version <clinit> INFO: HCANN000001: Hibernate C...
asked by 18.09.2017 / 01:46
0
answers

Wildfly 8 does not read network folder when run as service

Good morning! I have a java 8 application running on Wildfly 8, I need to display images. The view works perfectly when the folder is local C: (Eclipse, CMD, and Service). I had to transfer the folder with the images to the network, I created...
asked by 19.09.2017 / 16:32