Most voted "java" questions
Use this tag when the question refers to some resource, information, or problem relating exclusively to the Java programming language. Java is a class-based, statically typed, reflective, and execution environment (JRE) language. Java programs are compiled to bytecode and run on a virtual machine (JVM), allowing a "write Once, run Anywhere" philosophy (WORA).
Learn more…14,468 questions
Sort by count of
-
0
votes1
answer150
viewsHow to send object as attribute from another JSP object to a Spring controller?
Hello, I have a class News story related to Manytoone with a class Secao. The Noticia class has an attribute of type Secao (where the @Manytoone relation occurs). I would like to know how to, in the…
-
0
votes2
answers74
viewsLogin with Spring security com md5 + salt
Login with Spring security The following problem I have to get the login data from a database already ready with the following md5 + salt encryption…
-
0
votes1
answer57
viewsMy list still has Tail and head as null
It was all going well until I noticed that the list is not filled out, leaving my head and Tail as null. Supposedly the program should read from an input file and fill in the list within a cycle.…
-
0
votes1
answer52
viewsApertium-Caffeine
I lowered the. jar from this library but has nothing, no example of how to use it in java, anyone here has used or knows how to use it in a java project I also downloaded the lttoolbox-java but ta…
-
0
votes1
answer267
viewsWorking with associative tables
I want to add to a table, the users who registered a team. So that in the future can list all teams of a certain user. However, I have the following problem: In my personal table The class that…
-
0
votes0
answers1571
viewsConsultation CNPJ Internal Revenue Service
I am researching about the automation of the issuer registration part of my system, I am trying to find something to help me automate the process, the idea is that the user type the CNPJ, and is…
javaasked 8 years, 3 months ago Matheus Arruda 482 -
0
votes1
answer32
viewsTime Formatting
I am making an application that divided a String to write the same in time format. But if I put 102330 instead of returning me 10:23:30 it brings me 1:02:33 and if I put 112126 it formats correctly…
-
0
votes1
answer103
viewsDelete file *.pdf
I am making an application that opens a *.pdf file, so I apply a filter on it, however I am having a hard time deleting this file after it has already been read. I did the same procedure with a…
-
0
votes2
answers988
viewsParse a txt file
Good morning, I created a *.txt file with certain paths, now I need to put these paths within variables to call them in the application. I thought I’d use a parser to get this information, but I…
-
0
votes1
answer500
viewsDisplay coordinates on map with Gmap
I want to get coordinates from the database and show them on the map along with the marker, but I can’t. I think something is missing from the view. It should show only the last location data stored…
-
0
votes1
answer511
viewsAndroid - how to save typed text to an Edittext
I want to know how to save the typed text in an Edittext to use it later, I don’t know if it’s possible , but maybe saving it in a file. txt and then grab the text present in the file.Thank you!…
-
0
votes0
answers190
viewsSelenium, automation for web system
Good morning friends, I am facing a difficulty, where my goal is to automate a process of opening petitions on an intranet, the system does not have captcha but the way it was developed I can not…
-
0
votes1
answer40
viewsHow to fix Mpandroidchart value is over when it is 0
I’m having this problem when using Mpandroidchart, can anyone tell me if you have any method to put a spacing between one value and another? not to be so on top? Thank you…
-
0
votes1
answer58
viewsHow popular is a bd . sql, which sits on a server, with php, or java?
I have a comic book at Hostinger, I would like to develop something (in 5 hours!!) that I could from different popular machines this comic, some charitable soul can help me?
-
0
votes2
answers1255
viewsUpdate datatable after deleting record
after deleting a record in my datatable, I want it to be reloaded, I’m not getting it. Someone gives a help? <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML…
-
0
votes0
answers53
viewsMD5 is a safe hash?
MD5 is a safe hash? There is a way to reverse? If not the best option, what you recommend? I await suggestions... Thank you
-
0
votes1
answer70
viewsSyntax error on token "123", invalid Variabledeclaratorid
I’ve got an R-class error.…
-
0
votes1
answer796
viewsDoubt with webservice put and delete method. How to implement in java?
What I have to implement to provide a Webservice that supports PUT or DELETE. I’m new to this webservice world if you could help me by sending me at least one link from where I can read something…
-
0
votes0
answers86
viewsError generating signed APK
When will I sign the apk to send the Play Store occurs the following error message: Error: Fragments should be Static such that they can be re-instantiated by the system, and Anonymous classes are…
-
0
votes2
answers711
viewsJpa Hibernate merge error
Error Hibernate: select SEQ_COUNT from SEQUENCE_TABLE Where SEQ_NAME = 'EMP_SEQ' for update Hibernate: update SEQUENCE_TABLE set SEQ_COUNT = ? Where SEQ_COUNT = ? and SEQ_NAME = 'EMP_SEQ' Hibernate:…
-
0
votes1
answer345
viewspom.xml in Spring is not working!
Independent of the boot version keeps giving me error. could someone help me solve these pom problems?…
-
0
votes0
answers410
viewsSaving jpa objects in spring transaction
Good morning, there has been a problem in the application that I work when I persist the object in the database I see the jboss log showing the Insert instruction plus the id of the object remains…
-
0
votes1
answer76
viewsSubreport Directory
I’m having trouble locating the subreport when I was using the local project it worked perfectly, but now that I’ve moved to the server it’s not locating the subreport. I’m trying to use it like…
-
0
votes1
answer89
viewsWeb Page Optimization with Java
What should I look for to optimize performance on the front end, to minimize css, js etc. keep the head and change only the body? Using Java and Spring MVC, or with Play and Sparks for example.…
-
0
votes1
answer493
viewsStore value in an Arraylist
Hello, I have a question regarding storing the value I get from a table in an arraylist of arraylist. As I should do to be able to store? For example: Private…
-
0
votes1
answer287
viewsHow to pass data to Activity itself after the camera is called?
I have a Activity with a EditText and a Button. When the button is clicked, the typed text is saved in a Activity and the camera is opened with the method startActivityForResult(). When the user…
-
0
votes1
answer137
viewsProblem with Viewscoped Requestscoped and Session
I have the following scenario: A Datatable with a button that executes a Bean method, but this Datatable is using a Lazy Loading Pagination, but according to the session annotation that I use the…
-
0
votes0
answers196
viewsNullpointerexception when displaying all Datatable lists with Primefaces
I need to display all the data from the list in Datatable using Primefaces, but by changing the rowsPerPageTemplate size to 300 the data is even displayed on the screen, but the search functions…
-
0
votes1
answer324
viewsConnect Java system to database on server
I have a Desk system in which I am trying to connect to a database that is on the server. But every time I try to connect the following error: java.sql.Sqlexception: null, message from server: "Host…
-
0
votes0
answers141
viewsHow to mount a server for client authentication
I have a java application, and would like to have an online server for offline client authentication. Example: Client x would need to connect at least once on the server, to authenticate before the…
-
0
votes1
answer1321
viewsHow to identify the button that was clicked?
I have several buttons and I would like to compare the text of the button clicked with a variable of type String. That without using it: if (evento.getSource() == botaoXl) { // Fazer isto... } else…
-
0
votes1
answer41
viewsPopular datatable jsf
Personal am beginner in JSF, would like a tip, as I can popular a datatable through a selection of a combobox that brings a list of items from the bank.
-
0
votes1
answer276
viewsWhere is pom.xml?
I’m starting in Java and according to the booklet there should be a file called pom.xml in the project, but I cannot find.…
-
0
votes1
answer213
viewsI’m trying to return the name but can only return the ID
I’ve been researching for days and I couldn’t find a solution. The scenario and the following: I have an employee registration screen and an employee editing screen with two classes a pessoa where I…
-
0
votes2
answers1232
viewsHow to change persistence.xml file settings through an external file?
I wanted to know how to change the configuration of the persistence.xml file through an external file. I am using JSF + JPA. I want to do this so as not to leave this setting stuck in the source…
-
0
votes1
answer1956
viewsIterative sum bigdecimal
I have a ArrayList one of the fields is a BigDecimal. I am not able to make this sum iteratively with loop. Someone can give a hint of how to perform this operation? If it were a double common,…
javaasked 8 years, 2 months ago Adriano Gomes 711 -
0
votes1
answer181
viewsAbout Selectoneradio
Hello, guys. I’m creating a program that manipulates user registration. Each registered user has fields such as name, rg, Cpf...... and a field called status, which shows the status of this client’s…
-
0
votes1
answer43
viewsI get many errors in Android Studio when wanting to compile my project
There are many mistakes and I don’t even understand why. Please help.…
-
0
votes1
answer283
viewsField of research
Hello, everyone. I’m putting together a program that has the user registration function. The program is done in Java, xhtml and I am using Primefaces to generate the visual components. In this…
-
0
votes1
answer181
viewsHow to catch multiple JSON Arrays on a JSON Array with Rest Template?
Hello, I am having collect information from various JSON’s Array within a JSON Array, which follows below, with Rest Template: { "dataset":{ "id":10051093, "dataset_code":"SN2017",…
-
0
votes2
answers284
viewsError in classes that implement java.io.Serializable
I have some classes that implement java.io.Serializable, when I compile, all present Warning: The serializable class Fat_uc_datastatementsql does not declare a Static final serialVersionUID field of…
javaasked 8 years, 2 months ago Paul Sigonoso 309 -
0
votes0
answers75
viewsProject does not run, error "404 - Not Found"
I’m using Java JPA, with Wildfly and Primefaces and the database I’m using Mysql. I’m with I have all layers already configured (view(xhtml),DAO,Entity,MB). The wildfly datasouce is configured…
-
0
votes1
answer612
viewsHow to extract images and sounds and music in the jar file from any Gameloft java games?
I have a mobile game in Gameloft’s JAR Format I can’t see where the images and sounds and music are. I only see some bin files (Conditionexpr.bin and Resinfo.bin), some class files (a. class,…
-
0
votes1
answer163
viewsResultset GROUP_CONCAT is not recognizing the manipulated values
I have a problem, I have no idea how to solve. I’m running a GROUP_CONCAT to a table pivot in Mysql and running by PREPARED STATEMENT. So far so good, now when I try to recover the result set I can…
-
0
votes1
answer749
viewsError generating report with Jasper Reports using JSF
I’m following a tutorial which explains how to generate reports with iReport using JSF. I set up my report on iReport and it is working perfectly, I mean when I give a preview all data from the…
-
0
votes1
answer1344
viewsHow to pick up the text from a button?
So, I have a question and answer game. Each question has 4 answers (placed on button labels). How do I get the text from the button clicked to compare to a String?
-
0
votes1
answer43
viewsInvocationtargetexception in dynamic method
I’m in a very strange situation. I get it from my Bean the following arguments: #{segurancaBean.callSubAcaoMethod(subAcao, moduloBean.class.name, modulo.id)} This method is dynamic: public void…
-
0
votes1
answer421
viewsFailure to copy an entire directory and its files
I need to copy an entire directory that contains files inside using Java NIO2 with FileChannels. But I can only copy the files inside the directory. Follow the code I’m using to copy the files:…
-
0
votes0
answers1178
views -
0
votes0
answers380
viewsIdentify user by login
Hey there, guys. I am developing a system that deals with user registration and I have the following problem: in the system there will be 3 types of users: Administrator, Normal and Temporary.…