Questions tagged as 'java'

1
answer

Project that imports other Netbeans projects

I have a project where all the Hibernate configuration part is. In the final project I will have a few more projects (Person Register for example) that will need the project that has Hibernate. How do I correctly set up Hibernate project impo...
asked by 10.01.2014 / 18:10
1
answer

What is GraalVM?

What is it different from the JVM? And why did they create it? What advantage to using it? Can you use it in mobile? Is Oracle official? Ready for use? Do you have any restrictions?     
asked by 28.08.2018 / 16:39
1
answer

Leave program done in Swing with Windows appearance

I'm developing application with Java Swing, but the screens are not getting windowed out of windows. Example screen. I wanted to leave Windows with the same face, with the title bar with minimize button, maximize and close. The way it i...
asked by 20.08.2016 / 04:20
3
answers

How to send an object via SOAP Web service

To send a primitive data is simple, but when it comes to complex data like the one shown below, an exception is thrown:    java.lang.RuntimeException: Can not serialize: Person {name = given, address = given etc ...} Most of the tutorials...
asked by 09.01.2015 / 20:39
6
answers

Error: Can not find or load the main class in Java (Eclipse or CMD)?

If you have ever encountered the error message: Erro: não é possível localizar nem carregar a classe principal probably will not be able to execute your codes in Java. In the eclipse I came across this message: Erro: não é possív...
asked by 24.08.2015 / 16:51
1
answer

How to draw an arrow using Java2D?

I'm trying to draw an arrow inside a circle (similar to a clock hand), but I can not align the tip of the arrow with the rest of the line. I made the this "arrow" based on this SOEn response, but I can not get it to be properly positioned wi...
asked by 09.10.2017 / 16:30
1
answer

Is there any property in Maven to access the directory value of "resources"?

   Based on the question link I know I can use ${project.build.sourceDirectory} to access my source files directory. If I want to access the resource files directory, the resources , how do I? ${project.build.resources.resource...
asked by 26.06.2018 / 11:25
0
answers

Facebook Login Button has no action

I'm testing the Facebook Login API, however clicking the Signing in with Facebook button will not happen, only the bar where the time is black for a moment and then comes back with the color of the application defined in styles.xml file...
asked by 24.12.2015 / 21:25
1
answer

How to send a message to a whatsapp group with the venomous0x or yowsup api? [duplicate]

I would like to know, with an example if possible, how do I send a WhatsApp message to a group created by someone else using venomous0x or yowsup? The shipping code is this: public String sendMessage(String to, String message) throws What...
asked by 09.01.2015 / 13:35
4
answers

Separate letters from String numbers

I need to separate the characters of a string into numbers and letters. Ex: Entry:    "A1B2C3D2Z9" Output: List<Character> numeros = { '1','2', '3' } List<Character> letras = { 'A', 'B', 'C' } I use a for to...
asked by 09.02.2017 / 17:04