Questions tagged as 'java'

3
answers

Instantiation of class

Hello, I created a vector class and a method to add its elements. However, in the instantiation of it, it is not returning, can it help? public class TesteVetor { public static void main(){ Vetor vetor1 = new Vetor(10);...
asked by 06.09.2015 / 01:40
1
answer

Doubts template "maven-archetype-webapp"

I'm a beginner in development with Maven and I'm having some doubts. Next, I would like to create a Java web application, for this I started by running the following command: mvn archetype:generate -DgroupId=com.myapp -DartifactId=CounterWebAp...
asked by 10.09.2015 / 21:06
1
answer

Search in mysql database

I have to do a search in a table, I have to pass up 3 parameters to filter my search, this is my method: public List<Motores> pesquisaMotores(String serie, String marca, String modelo) { PreparedStatement comando = null; ResultSe...
asked by 23.10.2015 / 20:07
1
answer

Error creating project with Java with JHipster

I'm creating a project by JHipster in windows 10. When executing the yo jhipster command and selecting the tools that I will use, I get the following error in creating the project: C:\Users\jackson\teste\node_modules\karma\node_modules\sock...
asked by 23.10.2015 / 14:50
1
answer

Problem running runnable JAR: Unable to load class [com.microsoft.sqlserver.jdbc.SQLServerDriver]

I am facing the following problem: we are in the development phase of a project, which involves the following technologies, SQL Server, Hibernate, maven, quartz and java. After the end of one of the coding phases we tried to generate a runna...
asked by 23.10.2015 / 16:06
1
answer

ERROR Could not open connection and user root

These errors are happening below in my application: Note: I'm using Maven. Here is an image of how the project structure is in eclipse: Followtheerrorsbelow:out 22, 2015 11:03:58 PM org.hibernate.annotations.common.Version <clinit&g...
asked by 23.10.2015 / 04:13
1
answer

How to "erase" an image from the screen

In this code I would like to delete the image that I put before and not stay one on top of the other. Graphics g = getGraphics(); Graphics bbg = backBuffer.getGraphics(); bbg.drawImage(fundo.getImage(), 0, 0, this); for(int i...
asked by 21.07.2015 / 20:52
1
answer

How to put the default styles of android ex .. edittext spinner etc

I'm in need of some help. My android app is in trouble, all the elements I add it plays on the screen in a different way. Ex: when I add an EditText it does not stick to the border only shows the same when it gains focus and so to the others...
asked by 21.07.2015 / 21:49
1
answer

JSF 2, CDI 1.1, SpringSecurity 4: Custom login form does not redirect to page

I'm doing an application with JSF 2, SpringSecutiry 4 and CDI 1.1. I did the entire implementation of SpringSecurity with JSF and apparently everything worked normally, but when doing the custom login form, it redirects to file links in the H...
asked by 23.07.2015 / 15:15
1
answer

Doubt RMI and JNDI [closed]

Speak galley blza!, I have now started to study RMI (Remote Method Invocation) with Java Naming and Directory Interface (JNDI). Briefly, from what I've learned so far is that RMI technology is responsible for allowing the invocation of rem...
asked by 28.10.2015 / 02:21