Questions tagged as 'java'

1
answer

Capture part of a string within a couple of characters using regex

I'm trying to solve a problem of exchanging words between <> . For example, I have the following string: <><PALAVRA outrapalavra>palavra</PALAVRA> In addition to this string, I get a parameter that indi...
asked by 29.01.2016 / 19:00
0
answers

SQLite database creation on smartphone

I have doubts regarding the creation of the bank in SQlite on the smartphone via USB. When I run my program in the emulator, the bank works perfectly and smoothly. But I realize that when I do the same, emulating the app on my smartphone, the pr...
asked by 13.01.2016 / 14:27
0
answers

Tomcat message with JSF error 403

I'm using NetBeans 8.1 to develop an application in JSF, but when I run the facelets template page the message I'm posting in the forum appears. My tomcat was installed along with netbeans , and I already researched some forums instr...
asked by 15.01.2016 / 17:04
0
answers

SwingWorker does not enter the PropertyChangeListener

I created a swingworker to display a JDialog while the code is still waiting for the user to put their finger on the fingerprint reader Everything worked fine, visible as visible inside the PropertyChangeListener and the digital picking metho...
asked by 14.01.2016 / 13:36
1
answer

Mavem project error warning

I've formatted my PC and imported my Maven project, only the warning appears:    "This project has the JPA facet, but no JPA project could be created.   See the error log for more details. " The project runs normally !! Could you give m...
asked by 16.01.2016 / 16:31
0
answers

Activity enters onPause only the first time it is called

I have an activity of RequestCad that calls a ProductCons, follows code to open ProductCons: Intent intent = new Intent(PedidoCadActivity.this, ProdutoConsActivity.class); intent.putExtra("activity", "pedidoCad"); startActivityForResult(inte...
asked by 28.12.2015 / 17:45
0
answers

Connection error between Java and postgresql

I'm trying to make a GUI in Java connect to a database, so I'm using Netbenas and Postegresql. I created a table in Postegresql. I downloaded postgresql-9.4.1208.jre6.jar and added it to the project. I have two Classes one of the connection and...
asked by 26.02.2016 / 20:30
0
answers

How to get a context within a class?

I am in a parser of a Web Service. With it, I took the data and set it on each of them (it works fine). However, at the time of inserting the same in the database it presents the following error (null):    Attempt to invoke virtual method 'an...
asked by 04.01.2016 / 15:06
1
answer

Problem when running manually compressed jar

I was studying how to compile java directly from javac and everything. Then I put all the files in a zip file and renamed it to .jar. It did not work first because of the lack of Manifest - it did not 'find the main class' But even if I enter...
asked by 12.01.2016 / 02:25
0
answers

Java charset - How to correctly read from System.in?

I am creating an application to exchange messages between computers using Sockets, through the cmd or terminal (I want it to run in linux and windows, console application). But I'm having trouble coding. When I read an entry through System.in...
asked by 06.01.2016 / 22:00