Questions tagged as 'java'

1
answer

Problem with deploy in Heroku

I'm using Maven, Java, JSF, Primefaces, Hibernate, MySQL, CDI and Tomcat 8 on the local machine to create the app. Now I'm trying to climb and I'm having a hard time getting the project up on Heroku. I created Procfile.txt in the project root...
asked by 21.09.2017 / 20:50
3
answers

Get snippet of a String with regular expression

In the code there is a string that contains HTML. Within this HTML there is embed of a YouTube video: <embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://www.youtube.com/v...
asked by 25.09.2017 / 12:13
0
answers

Print with Java with printer configured by IP

Well I needed to solve a problem that is, as the software will run in the cloud, I was thinking of sending the information to the printer through it configured by IP on the machine, I already configured it in Windows but found no example right o...
asked by 22.02.2018 / 04:50
1
answer

Java configuration in fedora linux

I'm configuring JAVA and ANT in linux fedora, following a few steps I found on the internet, because I've never done that in linux. I configure them by the terminal because I am accessing the machine through SSH. I'm configuring it as follows:...
asked by 04.09.2017 / 20:01
1
answer

Modify the range of a JSlider

In my project I have a JSlider, that its minimum value is 0 and its maximum value is 10. I would like to modify it so that its interval is two in two numbers, so only being possible to select / display values pairs. At the moment, I'm using the...
asked by 15.08.2017 / 02:48
0
answers

How to calculate interest and discount on a line?

On my button I stated like this: numero_de_parcelas = Integer.parseInt(txtNumeroParcelas.getText()); juros = Float.parseFloat(txtJuros.getText()); desconto = Float.parseFloat(txtDesconto.getText()); valor_da_venda = Float.parseFloat(txtValorVe...
asked by 31.10.2017 / 23:08
0
answers

Problems with Traffic Lights (Readers and Writers)

I am trying to implement the problem of readers and writers in Java, and for this I am based on the method used by Tanenbaum in the book of Operating Systems. With only one thread writer and one thread reader the program works fine, the problem...
asked by 02.11.2017 / 00:29
1
answer

Problems with improper access to urls in the application with Spring Security

I have a page that uses thymeleaf to update a user's profile and on this page there are two buttons that allow you to update the profile and the other button allows you to remove profile from the application. Once the user is authenticated he...
asked by 02.10.2017 / 16:28
1
answer

Get an XML list in JAVA

I'm trying to get a list in XML but I can not put it in the variable. Main class: import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import javax.xml.bind.JAXBContext; im...
asked by 29.09.2017 / 00:42
0
answers

err_too_many_redirects only in production environment

I have an application that makes payment for some employees. On the screen it is selected from the current month, so you do not need to select it, but if you have more data on the screen,    "The page of www.SISTEMA.com.br is not working....
asked by 07.11.2017 / 20:51