Questions tagged as 'java'

0
answers

Spring Security Example Does not work in Jboss, what should be done to match the example?

Continuing my studies on using Spring Security and Servelet 3.0 I'm trying to follow the examples suggested in the tutorial Hello MVC - Running the insecure MVC Application , however such examples are to run on < but I need the tests to work...
asked by 08.07.2015 / 16:46
0
answers

Invalid icc profile: duplicate sequence numbers

When calling ImageIO.read of the attached image, the Invalid icc profile: duplicate sequence numbers error occurs. Very simple code just doing: File file = new File("C:\temp\imagem_java_teste.jpg"); FileInputStream input; try { in...
asked by 13.07.2015 / 16:03
0
answers

Client-Server, Threads, client error when going online

I'm developing a cliente-servidor application, the server has two threads (a in and a out ) well implemented. I run the server (okay), I run the first client and put it as online (okay), I run the second client and when I...
asked by 19.12.2015 / 18:29
4
answers

Locking in the While Program

I'm working on a project and I'm having problems with it, this program I'm posting is similar to what I'm working on. The problem is this: it arrives at while , the program does its job, then hangs up and does not exit. I have tried...
asked by 19.10.2014 / 19:54
0
answers

How do I return an imported value from one JSP page to another? [closed]

I have two JSP pages: in one it checks a client link condition; if it has no link, it enters a function that calls another JSP to import the client data. It even imports the data, but when it returns to the JSP that called it it does not brin...
asked by 28.04.2014 / 22:47
1
answer

REGEX - How to capture blocks from CASE WHEN ... END

Good morning, guys. I'm trying to make a regex to capture blocks from CASE WHEN ... END. So, from this string: iduser + CaSe WhEn ("end") = 0 THEN 'CASE WHEN' ELSE ' END ' END + sum(iduser ) + CASE WHEN LANGUAGE = 3 THEN 4 ELSE 5 END...
asked by 18.07.2017 / 13:53
4
answers

Calculate circle area

I'm having trouble writing this exercise in Java , using Eclipse IDE :    Develop a program to calculate the area of the circle. In this exercise I need to assign Pi (π) the value of 3.1416, and the area calculation is equal to Pi (π), m...
asked by 02.03.2018 / 15:06
2
answers

What is the best way to sort lists in Java?

I have a list, for example: I want to know how best to sort this list by name and age respectively. public class Pessoa{ private String nome; private int idade; // gets e sets omitidos } public class PessoaNeg{ private List&...
asked by 07.11.2017 / 01:33
1
answer

What is the simple way to create a WebService Rest from an existing Java Web Dynanic project? [closed]

Talk to people I'm a beginner in the java world and I created a Web Dynamic project where I use Hibernate, PrimeFaces and TomCat. Everything is working, screens, registers (CRUD) and stuff. Only now I want to turn it into a webservice so I ca...
asked by 10.06.2015 / 21:26
3
answers

Javac does not compile .java

The return error is this, when I'm already in the folder this information appears: --javac Main.java '--javac' não é reconhecido como um comando interno ou externo, um programa operável ou um arquivo em lotes. I tried without traces and ev...
asked by 04.09.2014 / 13:43