Questions tagged as 'java-8'

1
answer

First time running a sample program [closed]

Good afternoon I'm new to java I'm trying to run my first program in java when compiling this example I get a window with two options I have given to both and in both throws me an error, attach images for further explanation. Could you help m...
asked by 14.04.2017 / 19:30
1
answer

Error installing sbt for java play framework (openjdk-8-jdk unfulfilled dependencies)

Recently I installed oracle-java8-installer and when executing 'java -version' it returned me: java version "1.8.0_121" so I guess that everything is fine. To install jdk 8 follow the steps of the following link: link To install sbt (to pro...
asked by 15.04.2017 / 03:54
1
answer

JTable does not appear in the frame

I have the following code: public class FacturacionGenericaApp extends JFrame { // Componentes Graficos private JFrame frame; /** * Launch the application. */ public static void main(String[] args) { EventQu...
asked by 22.05.2017 / 18:23
0
answers

Tomcat 9 WebXMLParseException with Spring 5

I've been trying to migrate an application from Tomcat 8.0.27 to Tomcat 9.0.12 to start using HTTPS / 2. The application has Spring 5.0 framework, these are the libraries I am using: <!-- https://mvnrepository.com/artifact/org.springframewo...
asked by 26.10.2018 / 08:57
0
answers

Some request data are not mapped

I send the following Request { "name":"juan", "lastname":"caviedes", "email":"[email protected]", "password":"12345678q", "areaid":"13", "profileid":"2" } I have the class to map the object. public class SingUpRe...
asked by 03.10.2018 / 23:20
1
answer

Send mail from java

I want to send an email from my Java 8 program to a configurable recipient (gmail, hotmail or corporate) without having to authenticate the sender or make a login, to send the mail. Is this possible in Java 8? public static void main(String[]...
asked by 13.02.2018 / 17:56
0
answers

Problem when creating multiple objects, the variables are the same for some reason

I'm doing a small neural network that detects the letter the thing is that I get stuck on something that may seem basic, I create a neuron object for each letter, it's only those 7, each letter has 3 different letters as well as pixels something...
asked by 04.06.2018 / 22:29
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 / 18:11
0
answers

Leak of database connections with ThreadLocal when inspecting a Hibernate entity inside a ParallelStream

The problem is that when I inspect the attributes of an entity (Hibernate) inside a ParallelStream, sessions are created to the database in each Thread created by the Stream. These sessions can not be closed since I can not access the session. c...
asked by 02.03.2017 / 22:48
0
answers

Any alternatives to ConcurrentHashMap? Slow with great values

I am transforming my application to work with multiple threads instead of a thread, but I have not been able to find a map that works on multiple threads and does not cause degradation in performance due to very large values on the map. Concu...
asked by 22.12.2016 / 19:33