Questions tagged as 'java'

0
answers

Maven Netbeans plugin error

I'm trying to run a project in netbeans and is giving the following error "org.codehaus.mojo: exec-maven-plugin: 1.2.1: exec". I searched the error, and found the following solution: right click > properties > actions > change the actio...
asked by 15.11.2018 / 22:25
1
answer

How to count the number of comparisons of an algorithm (insertionSort)?

I have a college job where I have to create some vectors with random numbers and then sort in some methods (insertion, bubble, merge, etc.). After sorting, I need to count the number of comparisons each method made. How can I make this count...
asked by 19.11.2018 / 20:54
1
answer

I can not update my dialog via commandLink in a datatable

My goal is to display the selected element in the datatable in the dialog, but I can not give the update in my dialog via commandLink, whenever I try, the application screen gets all messed up and this error happens: Advertência: StandardWrapp...
asked by 14.11.2018 / 15:43
0
answers

Thread in eternal wait state, does not wake up with notify

Good morning, I'm having a problem with a project involving Threads, I'm starting to mess with Threads now in a college job and I'm having doubts about Thread being in WAINTING state but not waking up even with the call from a "notifyAll", I...
asked by 17.11.2018 / 18:39
1
answer

Framework (Java) for Opening Remote Sessions for Execution of Commands on Unix-based Server

I needed a framework to be able to open remote sessions on (Unix-based) servers and execute commands remotely (if possible as% with% same). Does anyone know of any and mature that can serve this purpose? Main purpose: What happ...
asked by 07.10.2014 / 17:16
0
answers

Learning problem with SpringBoot

Hello, I'm starting my study in SpringBoot, where I arrived in a part that I could not solve due to an exception, where I already saw in several topics how to solve, and none worked for me. I created two Person and Cell entities and did th...
asked by 27.12.2018 / 03:38
1
answer

How to do a JPA query with @ManyToMany mappings

Good morning. I am having difficulty performing a query in the database where my Employee entity has 2 mappings @ManyToMany and 1 mapping @ManyToOne. When you perform a query, Employee and Projects data is returned without any major problems....
asked by 22.12.2018 / 14:03
2
answers

How to make a decision structure to close a window?

In the code below, I want you to choose% while the window closes, and when choosing sim the window remains open. private void formWindowClosing(java.awt.event.WindowEvent evt) { // TODO add your ha...
asked by 29.05.2014 / 20:46
0
answers

Generate JSON dynamically from android form

Context: I have a Cordova app that has SUS token forms with more than 30 fields that is sent to the server through JSON. I'm building a native android APP for the same function; Problem: I need to map the fields (EditText, Spinner, CheckB...
asked by 23.10.2018 / 18:41
1
answer

Backslash in Regular Expression

I was studying java and the course instructor left me a challenge to validate an email using regular expressions. I researched the regex API documentation ... part of the pattern .. The problem is that I found a code on the internet (which wo...
asked by 29.01.2018 / 01:29