Questions tagged as 'java'

0
answers

Directory monitoring causes the system to stop responding to interactions

I have an application that monitors a certain folder and checks if there is a new file creation if a new file is created by triggering multiple processes on the system. But when I activate the monitoring it seems it locks up multiple processe...
asked by 02.03.2016 / 23:17
0
answers

Servlet to add Contacts in mySQL does not work

I have an html sending request to a servlet which responds with error however when I run a testaAdicionaContato class. mySQL 5 table: create table contatos ( id BIGINT NOT NULL AUTO_INCREMENT, nome VARCHAR(255), email V...
asked by 01.03.2016 / 23:16
0
answers

How to put the Accelerometer method in my app

I'm creating a Java app with my friend, and wanted to put an image with accelerometer that would move across the screen by deflecting the obstacles, but I have a problem with the video I've seen (the only one I've found) that does this leaves a...
asked by 02.03.2016 / 10:43
1
answer

How to execute a .jar using java jdbc on another machine

I am a beginner in the java area, I made an application using the netbeans native database. I generate the file jar , and on the machine I made the application the jar executes normally, but when I put this jar on another machine it...
asked by 17.02.2016 / 14:07
0
answers

problems with web service Jquery + VRaptor 4 "status of 404"

I know you say it was not found, but I can not find where I was wrong. My controller: @Controller public class ProdutoController { @Inject private Result result; @Path("/") public ArrayList<Produto> inicio(){...
asked by 17.02.2016 / 12:21
0
answers

Java working JSON

Well, I'm starting my studies in java, so I'm a little rough on the possibilities, libraries and other qualities that exist in JAVA programming. In many doubts I would like to understand if there is any way to get an object of type Res...
asked by 29.01.2016 / 11:34
1
answer

Back to another dialogAlert

I have a process capture system on Android where when something suspicious is detected, it will issue an alert window with some options. I would like to know how I do it when I open any of these options, by pressing the back button, that the app...
asked by 17.02.2016 / 19:08
0
answers

How to upload files to my server using Java servlets

How to upload files to my server using Java servlets, and after uploading the file return the url in which the file is located, where the name originates from the date and time the file was sent so it does not act replicates of names, would anyo...
asked by 29.01.2016 / 13:39
1
answer

Add Background to a GirdBagLayout

Good afternoon folks, here I'm trying to add a background image inside a GridBagLayout but I can not. Could some charitable soul help me? Follow the Code > package View; import java.awt.Dimension; import java.awt.GridBagConstraints; imp...
asked by 29.01.2016 / 12:42
0
answers

Icon and Text in ActionBar menu

How can I always display the icon with the text on a button in ActionBar? I did so: <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> <item androi...
asked by 29.01.2016 / 13:47