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
votes0
answers41
viewsHow to answer a freeswitch call
I’m using uuid_answer, <uuid>, to answer the call but without success. Someone knows another way to answer a call on freeswitch?
javaasked 8 years, 1 month ago Rafael Felipe 1 -
0
votes1
answer97
viewsUpdate datatable when searching for autocomplete
Good morning, everyone. Could someone ask a question? Good is the following, I have a component of the first faces autocomplete and a datatable, but when I perform a search for the autocomplete, it…
-
0
votes1
answer179
viewsProblem with Rest controller in Spring
I set Spring 4 to work without xml. I created a @RestController simple, like this: @RestController public class JogadorRest { @RequestMapping("/ola/{jogador}") public Jogador message(@PathVariable…
-
0
votes0
answers94
viewsProblems with foreign key
Hey there, guys. I am creating a system that controls user registration and I have a problem regarding a foreign key that is imported from another class into the Users class. When I change the state…
-
0
votes1
answer667
viewsTransparent toolbar on Android
I need to make mine toolbar be transparent, or at least remove that shaded line below it. Someone has been through a similar situation?
-
0
votes1
answer298
viewsPrint table row "datatable"
I’m using Java, JPA, Wildfly and Primefaces. I have a table with several columns and rows, how do I print (report) each row of the table? each line will have its print icon and I would like to know…
-
0
votes2
answers2498
viewsProhibit duplicate registration
Hello, guys. I’m with a program that works with user registration. In this program I would like to implement a function that prohibits the registration of Cpf or email that already exists in the…
-
0
votes0
answers613
viewsHow to fix accent problems in Strings in Jtextpane?
I have an application in Java, I made it in Netbeans. The problem is when there are strings with accents. When run by Netbeans, it shows everything perfect (the string with accents correctly), but…
-
0
votes0
answers73
viewsAccess Remote EJB within another EJB
Good afternoon to all. I’m in a project I need to lookup a remote EJB inside another EJB in a different container. The problem is when I try to do the lookup Initialcontext is giving the following…
-
0
votes1
answer453
viewsHow do I create templates in iReport?
I wonder if there is any way to use a template created by me in other reports? I want all reports in my system to follow a pattern, but how to do this?
-
0
votes0
answers647
viewsUse java to connect to Webservice Magento API SOAP v1?
On the official website, http://www.magentocommerce.com/api/soap/introduction.html, has a quote that says that java is more compatible when using Soap v2: As of v1.3, you may also use the following…
-
0
votes1
answer4675
views"Detached Entity passed to persist" when inserting for the second time
I have a bug when I try to insert a new user for the second time. Error: 12:51:54 PM com.sun.faces.lifecycle.InvokeApplicationPhase execute WARNING: #{testeHibernate.save}:…
-
0
votes1
answer128
viewsError starting Android Studio after update
Hello, I was using Android Studio normally until the IDE asked me to update and that’s what I did. However after the update I received the following error: "No JDK found. Please validate either…
-
0
votes1
answer853
views -
0
votes1
answer112
viewsHow to update an <h:form> every 30 seconds JAVA WEB
I’m trying to create a panel showing the sales results on a screen in my company. I need to time the panel every 30 seconds so that the results are always up to date. I have no idea how to do, all…
-
0
votes3
answers1265
viewsHow to fill an array of another class in JAVA
Guys, I created a method within a class that searches RS in the database, it works perfectly, but when I use it in another class, it does not do what you want, see the method: public void…
-
0
votes1
answer68
viewsIs there something wrong with this code that sends a String to the server?
Because it is giving nullPointerException. I use Outputstream even to send to the server? public void envia(String minhastring) { HttpURLConnection conn = null; URL url = null; try { url = new URL(…
-
0
votes1
answer93
viewsDelete gridview item from gallery photos
I’m developing an app that contains a gallery and found a tutorial that showed how to fill Gridview with photos taken from the camera. However, I’m having difficulty doing something for when the…
-
0
votes1
answer57
viewsWrite data from one inputText into another inputText
Guys I’m using JAVA, JPA, Primefaces... In my view (xhtml) I have a login screen, how do I pick the name the user typed and write in another inputText field?
-
0
votes1
answer55
viewsTransaction in the Spring
I want to know more about transactions in spring. I have the following structure: My Service: @Service @Transactional public class MinhaClasseServiceImpl implements MinhaClasseService { @Autowired…
-
0
votes0
answers282
viewsCompile java and generate . jar
I have a Maven project already well structured. I want to create the . jar to run the application. Inside the project, at the prompt, I did: mvn clean install package Returns the error: C:…
javaasked 9 years, 1 month ago André Nascimento 1,258 -
0
votes1
answer104
viewsMake a mark on the Google Maps map itself
I wonder if there is any way to leave a mark on a certain part of the map of Google Maps (android). I’m not saying in marker form, I’m wanting for example to leave an area close to my house with a…
-
0
votes2
answers1108
viewsGoogle maps android already open looking for current position
I would like help to get google maps of my android application already look for the current position of the user once the map is opened, in the same way as traditional gps, like Waze, be have q…
-
0
votes2
answers107
viewsAuthenticate PHP page through the application is not working
I’m trying to make a connection to the MYSQL database to login the user in the android application, I already have some users registered in the database but I’m not able to login with the user data.…
-
0
votes2
answers109
viewsCancel Asynctask when choosing another menu item with Navigation Drawer
The Problem I’m developing an app that has a side navigation menu (Navigation Drawer) as shown below. Loading some items from this menu requires an Internet request. Here at this point everything…
-
0
votes1
answer379
viewsInflate a warning in the view from a Broadcastreceiver
I have an application where it is necessary to monitor, and warn the user when he is not available with the internet. To solve this, I created a Broadcastreceiver and show a Toast when this…
-
0
votes1
answer117
viewsp:dialog being called by several Buttons in the system
Personal I have a dialog (do primefaces) confirming the ZIP Code number and after the user has entered the residence number in this dialog the fields address, neighborhood, zip code, city and Uf…
-
0
votes1
answer169
viewsHttpsession java
I am trying to implement Httpsession in my code but is giving an error in request getsession() what it says The method getSession() is Undefined for the type Httprequest My code import…
-
0
votes1
answer496
viewsInternationalization in Java
I am having some difficulty to carry out the internationalization of my java application. My question is as follows: when I have a "login" screen, for example, and select the option in my Jmenuitem:…
-
0
votes1
answer399
viewsPerform a task on a specific date and time
I’m trying to develop a small system that sends a e-mail every Tuesday at 08:00 in the morning. But I’m a little confused, I can already send the email and check if it’s Tuesday, but I don’t know if…
-
0
votes1
answer27
viewsRefresh to a datatable
That’s how I’m making a small site in java only when I add a product and click to list the datatable does not update, I don’t know how and I have to do so so that every time the page is displayed…
-
0
votes2
answers74
viewsProblems to generate SQL command
Hello, everyone. I am creating a project that handles user registration. In this project there will be several types of users. To simplify, let’s call the types 1,2 and 3. Depending on the type of…
-
0
votes1
answer46
viewsJpanel disappearing while getting a get on it
I am building a layered application using the Spring Framework, I am new and well be doing it the wrong way. My problem is this, as you can see in the image below I have the PrincipalFrame and the…
-
0
votes1
answer1102
viewsAndroid - How to enable and disable wifi
I have an app in java with two buttons. How to do when press the first wifi is activated, and when press the second it be disabled? Thank you.
-
0
votes1
answer33
viewsConsultation Entity without its Associations
I’m creating an app with JAVA SE + HIBERNATE. I am having a "problem" in making a query to a single Entity. Then, it would be possible to make a query in the entity(TABELA) without the relational…
-
0
votes1
answer54
viewsHow to delete Gridview image?
I’m developing an app that contains a gallery, where the user takes photos and the image is shown on GridView, but I don’t know how to delete the selected image I was able to do something like: the…
-
0
votes2
answers1460
viewsStarting an Array of a private attribute in another class
I’m doing some exercises and I came across a problem, follow part of my code: class Empresa{ public String nome; public String cnpj; private Funcionario[] empregados; public String rua; public…
-
0
votes0
answers23
viewsError calling another Activity
I’m creating an app for launching student frequency. The app features web service communication. By clicking enter button: The app will check if you have internet connection to update the teacher…
-
0
votes1
answer94
viewsCreate a triangular-tipped Listview in Javafx application
I am developing a Javafx application, and I want to make a menu from a Listview, which will be triggered from a button pressed, but I would like to put a triangular tip at the top of this menu as…
-
0
votes1
answer634
viewsOpen external application within the application
I am developing an application that makes command via Arduino. So far everything goes well, but in the project the user will have access to external camera via IP, but I have no idea how I do it.…
-
0
votes0
answers492
viewsLabyrinth problem in JAVA
I have a question, I need to create a program that can find the way out of any java maze. The method I’m trying to develop is this: public static void encontraCaminho(){ int k = 0; int pos; int aux…
-
0
votes1
answer929
viewsHow to superimpose a Jinternalframe?
The main screen of the system I’m developing opens with a JInternalFrame welcome automatically, and it contains some buttons for registration, calendar etc... However, when I click on one button to…
-
0
votes1
answer1041
viewsOnclick problem, I cannot pass Array information to a text view
I’m having trouble inflating a list with information from the bank, I want to take the user information and set it in a list, but only with a type of data as a name, however it presents the…
-
0
votes2
answers220
viewsChoose which Fragment will be shown in Activity
I have a Activity that the email is requested and if the email exists I show a Activity with a Fragment for entering the password. If this email n exists, I want to display a Fragment, in this same…
-
0
votes1
answer23
viewsIs Jersey2 different from Jersey v2.x?
I am trying to implement Swagger in Jersey and there is the implementation for both Jerseys. Want to know if Jersey2 is different from Jersey v2.x? or is the same.
-
0
votes2
answers300
viewsI am not able to store the correct information of a Radio Button in the database
I’m having trouble storing the correct information of a radio button in the database. When I select the Public option it stores Public, when I select the Private option it stores Public. Can anyone…
-
0
votes1
answer62
viewsKeyboard opens when I call my Loginactivity, how to solve it?
Keyboard opens when I call my Loginactivity, how to solve this? This is my Loginactivity. package fabiohcnobre.jhotelcolonialdosnobres; import java.util.ArrayList; import java.util.List; import…
-
0
votes0
answers281
viewsError when building a project in Android Studio
I have a project that was working normally, but yesterday I had to install Windows on my computer. And today I open the project and when I try to compile, I get this message: Error:(1, 1) error:…
-
0
votes1
answer83
viewsFormat value p:slider jsf
Hello, I have a component p:slider q goes from R$ 0 - R$ 5000. The problem is that I do not know how to format the values in the Brazilian currency. someone can help me?
-
0
votes2
answers76
viewsApp stopping when using Location API
This code would be used to when the user pressed a button, its latitude and longitude would be found and later sent to a server. But the app crashes when it starts, remembering that I took this code…
java android google-maps-android-api-2 google-api-client google-location-apiasked 8 years ago Elvis Roberto 13