Questions tagged as 'java'

1
answer

Error while running the Android Studio emulator

I have a problem when emulating a device in android studio. When I try the following error occurs:    15:28:24 FileNotFoundException:   /home/henrique/.android/avd/3_2_HVGA_slider_ADP1_API_17.ini (File   or directory not found) Aftercrea...
asked by 18.12.2016 / 19:36
2
answers

How do I manipulate the order of the files in an ArrayList?

I'm developing a program, in which part of the processes requires that I take the numbering of the last file listed within a ArrayList . My question is this, when my ArrayList starts adding the files listed in the directory it ad...
asked by 17.12.2016 / 15:43
1
answer

Alternative to the obsolete onCreateDialog () and showDialog () methods of Activity?

I would like to know but the funny thing is that I performed here and it worked fine even though it is obsolete. What should I do? private Button botao; static final int DATE_DIALOG_ID = 0; @Override public void onCreate(Bundle savedInstanc...
asked by 19.12.2016 / 00:57
1
answer

Ajax Request for Controller Spring

I'm developing a system with Spring (Spring Boot) and front-end backend with HTML, CSS (BootStrap) and JavaScript (JQuery). I'm having trouble building an ajax request. Follow the Controller Spring code: @RequestMapping(value = "/vis...
asked by 07.12.2016 / 12:40
2
answers

Session hibernate, how to get instance

In all the hibernate documentation, and web examples have this code example, or a very similar one, to use hibernate. List<Object> list = session.createCriteria(Object.class); Since the session is a Hibernate Session Interface implemen...
asked by 15.12.2016 / 17:44
1
answer

Google Chart GeoChart does not work in Java

Hello, I'm having a problem while running a Google Map Chart GeoChart in Java ... If it's in a normal .html file, it works, but inside my project with xhtml it does not work. HTML code: <html> <head> <script type=...
asked by 15.12.2016 / 20:23
1
answer

SSL configuration in Microsoft Azure for Java projects running in tomcat

I need to do an HTTPS configuration in a java project in azure. In the project I use spring security and tomcat. I looked at many sites how to make the configuration but found different information, which left me a little lost and tried to confi...
asked by 19.12.2016 / 20:44
1
answer

Return to main () after using start () method

After running the command gerenciador.start() , my program does not return to the main function, and does not print the finished message. It simply performs the command I have spoken. Does anyone know why this happens? publi...
asked by 12.12.2016 / 00:59
2
answers

Colored Text CSS javaFX

I have a Button and I'm using javaFX, which I need: button text is written Search, I need 'B' to be in red and 'uscar' in default color, I've tried everything and I'm not getting do this.     
asked by 03.02.2017 / 21:27
1
answer

java.net.BindException: Address already in use /127.0.0.1:13444

I have an application running in the intagrator and today the system crashed, seeing the logs I came across this error: java.net.BindException: Address already in use /127.0.0.1:13444 at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpo...
asked by 04.02.2017 / 13:50