Questions tagged as 'java'

0
answers

Unzip zip too slow with java

public static void unzip(String zipFilePath, String destDir) throws IOException{ try(ZipFile file = new ZipFile(zipFilePath)) { FileSystem fileSystem = FileSystems.getDefault(); //Get file entries...
asked by 13.12.2018 / 14:56
0
answers

Authentication with javax.ws.rs.client.Client

I'm trying to get a get to a service, which requires token authentication. It must be added to the header. The code that performs this action is the following: try { MultivaluedMap<String, Object> head = new MultivaluedHashMa...
asked by 13.12.2018 / 16:42
1
answer

Add column in java

I'm trying to do an exercise where the user must enter the number of columns and the character he wants to appear. I'm a little messed up when it comes to doing it. I leave the statement: Make a program using loops that shows the following fi...
asked by 15.12.2018 / 12:06
1
answer

how to find dates in java in a db with jdatachooser

I want to store data in a db but I get an error @Override public List<Ausentismo> list05(Date fechai, Date fechaf, Date fechaMesA, Date fechaMesS) { List<Ausentismo> list05 = null; String sql = "SELECT AU.COD_MOTIVO, AU...
asked by 13.12.2018 / 16:08
2
answers

Problem Eclipse when using the Control key + key hangs

I use Eclipse for Java and many times when I give Control + another key, it hangs up and a good time i do the same but with the mouse it does not usually happen. It also hangs sometimes by simply selecting a word or code liena. Many times I give...
asked by 13.12.2018 / 10:04
1
answer

How to read word by word from an Array? [duplicate]

What I'm looking to do is a counter that adds the value of each word in its ASCI code. For example: Hello (H = 45, or = 56, l = -45, a = 23. Total Value = 79). This is the code of my Accountant: public class Accountant { public static f...
asked by 14.12.2018 / 15:47
1
answer

Help with Spring Security - Request method 'POST' not supported and how to remove window by default?

I have two problems in one, I do not know if it's okay to post the two together but I think they have a relationship with each other so there it goes: I'm trying to apply Spring Security to my project. The first thing I did was add these d...
asked by 14.12.2018 / 16:30
1
answer

How to get data from an arraylist of objects

The problem I'm having is that I want to access the properties of an object that is inside an arraylist. public float obtenerConsumoCombustibleTrayecto(String marca,String modelo, int anio, float cantidadKMCarretera, float cantidadKM...
asked by 16.12.2018 / 21:33
0
answers

How to open a jar (that reads a .properties file) with another jar

I have developed an application for the "Visitors Registry", this application connects to MySQL to save the records, to determine which base to connect to obtain this parameter from a Properties file. The application works by itself without prob...
asked by 17.12.2018 / 04:14
1
answer

Problem with maven exec plugin: Unable to access jarfile

I am generating a jar with maven and I would like to run it using maven but I get an error. This is my plugin configuration in the pom : <build> <plugins> <plugin> <groupId>org.co...
asked by 12.12.2018 / 08:47