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
answer749
viewsHow to read the wpa_supplicant.conf file?
Good morning guys, I’m producing an android app that is able to generate a backup on txt of the saved network settings on an android device, until then I know it is necessary to read the file…
-
0
votes1
answer345
viewsError signing xml nfse Curitba
Guys I’m making the following mistake : Grave: javax.faces.el.EvaluationException: javax.xml.crypto.dsig.XMLSignatureException: javax.xml.crypto.URIReferenceException:…
-
0
votes1
answer127
viewsList within Spinner Layout
Hello, I wonder if you have how to put the list that is inside Spinner directly in the layout. Normally I do so: horario = new ArrayList<>(); horario.add(""); horario.add("Aberto Hoje");…
-
0
votes2
answers2892
viewsAndroid - Alarm for mobile according to system time
Hello. I’ve done a lot of research and I’ve learned to do some nice things with Alarmmanager and stuff like that. I wanted to make an alarm for my mobile for testing, the problem is that all the…
-
0
votes1
answer132
viewsSelectoneradio sending only one value
I am concluding a simulation system for my course completion work. However, I have a problem that I have not yet been able to solve. I perform a filter to select the questions for the user to…
-
0
votes2
answers644
viewsLine break in data from a list
I have a dialog that shows on the screen the data received from a list: <p:dialog header="#{zona.nome}" widgetVar="vendedores" minHeight="40"> <h:outputText…
-
0
votes0
answers362
viewsReading cells with HLOOKUP formulas
I’m having a hard time evaluating a formula with the Apache Poi API in a cell that contains the formula HLOOKUP(B9,$AK$8:$AS$68,2,FALSE). The same thing happens to be a file .xls or .xlsx. The excel…
-
0
votes0
answers79
viewsHow to request the evaluation in the android app?
I wanted to put the option of the person evaluate the app after 2 times for example that enter it, and already take to play store, someone knows?
-
0
votes0
answers35
viewsJava jtable, parameter error?
I’m having a hard time getting through parameters for my jTable, these parameters being a Object[][] and a String[]. tabela = new JTable(dados, colunas); It does not work the data is a matrix like…
-
0
votes0
answers153
viewsHttp Client and Async Task - ANDROID
Speak, people, I wonder if anyone can help me, I’m new in mobile I’m starting with Android. I’m making a request with HTTP CLIENT to return all the value of the page, be it web or mine local host.…
-
0
votes1
answer280
viewsDoubt database / batch control system
I’m working on a project where I came across a problem where I don’t know what would be the most efficient way to do it. My project has a register of products in which I want to control by lot,…
-
0
votes2
answers86
viewsNeed for Sqlite
I want to clarify the following question: I have a project Android who uses a webservice, but I did all the data access on Android and my webservice will be done in Java. After I finished all the…
-
0
votes1
answer248
viewsUnsupported major.minor version 52.0visual studio 2015 community
The image of the error is attached…
-
0
votes2
answers96
viewsPass random values to Matrix
I have a matrix with 30 fixed values, I wanted to know how to generate these same 30 values, but random, if possible with limit values between (2400, 400). How is the matrix currently: private…
-
0
votes1
answer117
viewsShortcut to stop Tomcat in Eclipse
Does anyone know a shortcut to stop Tomcat in Eclipse? I’ve been doing some research and I haven’t found anything useful.
-
0
votes1
answer672
viewsUpdate does not work when trying to update a <p:panelGrid>
I have a button inside a <p:toolbarGroup> where I do some operations, I also have a <p:panelGrid> which should be rendered after the user clicks the button, but I cannot update this…
-
0
votes0
answers1229
viewsJava, Cucumber, Maven - Feature runs without any class
I did a test automation project using Eclipse + Java + Maven + Cucumber + Selenium I have the following problem: Since I’m not using git yet, I exported this project to a file. zip, and in my work…
-
0
votes1
answer419
viewsCan I use Css within a Swing application?
It is possible to style a java application made in Swing, using css or javascript?
-
0
votes2
answers95
viewsHashmap type attribute appears as Object
I’m using the Spring framework and the repositories, and in one of the interfaces of one of these repositories I have, for example, a method like this: @Query("select extract(month from…
-
0
votes0
answers108
viewsHow to edit an image stored as BLOB
Using Spring MVC, thymeleaf and mysql, I have an image stored in the database as BLOB, along with other attributes and can render the image on the screen normally in a list. From the list, I can…
-
0
votes1
answer252
viewsAdd Firebase to Android Project
I did everything you asked on the Firebase website, but when I click Sync on Gradle inside the project, before finishing it appears an ERROR, as you can see below; Please help me out!…
-
0
votes1
answer849
viewsCapture txt file row by row and play in a txtbox
good afternoon need to take the value of a text file and write each line in a txtedit, the file is generated by the code below: byte[] dados; File arquivo = new…
-
0
votes1
answer186
viewsError android.database.sqlite.Sqliteexception
This method of my Activity: private void loginEmailSenha() { editTextEmailLogin.setError(null); editTextSenhaLogin.setError(null); controllerUsuario = new ControllerUsuario(this); String email =…
-
0
votes1
answer36
viewsHow to upload BD backup to the server using Okhttp?
How to upload the . db file (Sqlite backup), from the android device to a server using the Okhttp, java and PHP library?
-
0
votes1
answer282
viewsIdentify status of a program with java
Is there any way to identify the status of a program in Windows by searching through the process opened with java? I am looking for a way to map a specific process of an executable to know if it is…
javaasked 7 years, 9 months ago Kelvin Stang Oenning 380 -
0
votes1
answer72
viewsHow to organize questions to display on screen
good night. I have a String type attribute that receives a question coming directly from a textarea. My problem is that I can’t let the questions go when it comes to displaying them equally as a…
-
0
votes1
answer54
viewsWhere is the SAP Hybris log folder?
After executing the command: ant clean all on the console, I’d like to read the full log of errors generated by the hybris build. Can anyone tell me which folder he keeps this log file in?…
-
0
votes0
answers56
viewsgetNamedQuery back null
I have a namedQuery that for some reason, is returning null results from the database. The namedQuery itself: @NamedQuery(name="Usuario.userLogin", query = "SELECT u.email, u.senha FROM Usuario u…
-
0
votes0
answers108
viewsRestful server error in Tomcat
Could someone help a server problem REST? I’m developing an app android and I’m working with a server restful, database Postgres and Tomcat. And I’m making that mistake almost every time I make…
-
0
votes0
answers590
viewsAuthentication and authorization of the email and password on the login screen
I have a login screen in which the email and password are already registered in the bank, however I am not able to login with this data that are already recorded in the bank. In the loginBean class…
-
0
votes0
answers212
viewsLinking data from two different tables
I have two database tables one customer call, another municipality, and in the table "client" I have the items (Cdclient, Nmclient, Status and Cdmunicipio), in the table "municipality" I have…
-
0
votes1
answer56
viewsNullpointer Exception during registration using MVC standard
I have a ready-made application that was created procedural, but for learning purposes I decided to reprogram it using object orientation and the MVC standard. During the registration of a publisher…
-
0
votes1
answer78
viewsCall a method when opening the application
I have the following class public class ReadXlsx extends Activity { public TextView txtcoluna1; public TextView txtcoluna2; public TextView txtcoluna3; public TextView txtcoluna4; @Override…
-
0
votes1
answer1375
viewsHow to upload data to CSV in oracle SEM SQL Loader?
Data from a table was exported in a CSV file and I would like to import it into a table in the Oracle database. But I need it to be without the sqlldr command. Because this load will be done in…
-
0
votes0
answers175
viewsConfigure project on tomcat8 Ubuntu Server
I’m having trouble setting up my project on tomcat8, I use Ubuntu server. I created a DNS or which points to my server on port 8081 and presents the Tomcat homepage without problems. I’m having…
-
0
votes1
answer2562
viewsTarget Unreachable, Identifier 'usuarios' resolved to null
My bean: package com.cliente.Bean; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import javax.faces.bean.ManagedBean; import javax.faces.bean.ViewScoped; import…
-
0
votes1
answer199
viewsHow to work with Threads without crashing the GUI
I created a program that reads the information of some websites, stores this information in Arraylist’s each with its respective class. In the GUI I put some options like search by name and date and…
-
0
votes1
answer102
viewsError when referencing global variable
I have an application in which you have a webview, so I created a preloader to load into a thread , now I need to put the webview in another thread , how can I do (code error ) ? import…
-
0
votes1
answer33
viewssave text to file
I’m using this code to record to the archive: try(BufferedWriter bw = Files.newBufferedWriter(caminho, formato)){ bw.write("frase teste\n"); bw.write("outra coisa"); }catch(IOException e) {…
-
0
votes1
answer246
viewsObject in java contains a JSON, I want to take the JSON information and popular my object attributes
The thing is, I have the GPS object, it’s with a json as follows the image, I want to take the data from the code field and the name field and put it inside the attributes of the GPS object. IMMAGE…
-
0
votes1
answer54
viewsAdd items to an Expandable List
I’m trying to use an Expandable List. In this Expandable List I intend to put as header "the categories of my products" and in the children items put "my products". However I’m getting the error…
-
0
votes1
answer364
viewsProgress bar Does not work
People I have two threads, one that accesses the webview with the url and the other responsible for progressibar, but the Progress bar is not running. What can it be and how to fix it ? import…
-
0
votes1
answer120
viewsError searching for data in Jtable with Hibernate
The following error of when searching the data: INFO: HHH000182: No default (no-argument) constructor for class: Classes.Funcionario (class must be instantiated by Interceptor) Hibernate: select…
-
0
votes1
answer74
viewsHow to change getRealPath() save location? Photocam primefaces
I’m trying to use the Photocam component of Primefaces, it’s working, but the image is saved within the target of the application. I want to move the rescue site. Follows an excerpt from the code.…
-
0
votes1
answer170
viewsSqlupdate does not change data in the database
Note: Several people could not solve this question and marked my question as erroneously duplicated because of an answer in a similar question but the answer does not help me at all. I am developing…
-
0
votes1
answer470
viewsNullpointerexception Selectonemenu [JSF + PRIMEFACES]
On a JSF page about a car shop, I first select the brand of the car and then choose the model. However, when selecting an item from the first "Hyundai" menu, it gives NullPointerException and I…
-
0
votes2
answers3867
viewsAdd Item to Spinner
I need to use Spinner in my app... I’m having trouble adding elements to the list. I found it very complicated. Link: https://www.mkyong.com/android/android-spinner-drop-down-list-example/ I’d have…
-
0
votes0
answers682
viewsAndroid Studio app with Sqlite Java database
I’m developing an app that takes photos and saves it along with a text written by the user himself in the SQL database. For now I can make him take the photo and open the text box for the user to…
-
0
votes0
answers103
views[jersey-Servlet]: com.sun.jersey.api.container.Containerexception: The Resourceconfig instance does not contain any root Resource classes
I’m trying to get application up in WAS 8.5, but I’m making this mistake when deploying, and with that the application does not run. WEB.XML <servlet>…
-
0
votes1
answer393
viewsThe constructor Service(URL, Qname, Webservicefeature[]) is Undefined
I am consuming a Webservice in my Java application and am encountering the following error: The constructor Service(URL, Qname, Webservicefeature[]) is Undefined public AnaliseCredito(URL…