Questions tagged as 'java'

1
answer

How to run and display CMD logging?

I've seen some examples of how to "execute" CMD commands by the application, though, I'm facing some difficulties. What I am trying to do is to give a cd in the oracle folder, and then run Backup.exe , and "set" in JTextArea...
asked by 02.07.2018 / 04:51
0
answers

How to use LocalDate in VRaptor4?

I'm trying to make a simple application in VRaptor 4. In an entity, I have two attributes, one of type LocalDate and another of type LocalTime . I added the VRaptor Java 8 plugin, which should do the data conversion for the types...
asked by 30.07.2018 / 00:08
0
answers

TablLayout in a fragment occupying entire space

Good afternoon. I want to make an app where I have a side menu, with standard options, such as "home page, profile, etc ...". When I click home page, I want my screen to turn a tablayout with two tabs. For this, I made on my main screen the side...
asked by 29.07.2018 / 20:29
0
answers

How to increment tailSet integers in TreeSetAtomicInteger without addAll ()?

I have the following part of a class: private TreeSet<AtomicInteger> offsets; // ... public void addIndex(int index) { SortedSet<AtomicInteger> set = offsets.tailSet(new AtomicInteger(index), false); AtomicInteger[] backu...
asked by 30.07.2018 / 19:04
0
answers

Error: Failed to execute goal org.codehaus.mojo: exec-maven-plugin: 1.2.1: exec

I'm developing a web application with Spring + Maven + Hibernate, I've already created my HibernateUtil class and created a ConectaHibernateMySQL test class to check my connection to the database. However, when I run my connection...
asked by 31.07.2018 / 20:41
0
answers

Erasing a gallery photo on Android

I have a code where I am using my camera to take a picture, then put it in an ImageView , just for viewing, as it is saved in my SQLite . I would like to know how do I delete this photo from the gallery since it is already in the database....
asked by 30.07.2018 / 14:09
0
answers

How do I make / call the AJAX url?

To contextualize : There is a remote directory, clearing-dit\logs , which has a series of logs ( portal.log , test.log , ...). This directory is mapped to an HTML page, where all its .log's are displayed. Once one of...
asked by 01.08.2018 / 16:37
0
answers

Problem with Gradle Android Studio

I'm getting a Warning from Gradle to switch compile to implementation and api, but I'm no longer using compile in my project. Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the...
asked by 31.07.2018 / 19:58
0
answers

In the setter / field for found on class

So folks, it's a half-hit question I know, but I could not find any solution here for my code. I need to get the information that is inside node 5883, but apparently it populates my class with the information that is outside and ends up giving t...
asked by 29.08.2018 / 14:51
1
answer

Request permission to access Android internal storage by a Fragment

How do I request permission to access the device's internal storage by a Fragment? In normal activity I used this code: int REQUEST_CODE = 0; ActivityCompat.requestPermissions(MainActivity.this, new String[] {Manifest.permission.WRITE_...
asked by 29.08.2018 / 17:09