Questions tagged as 'java'

2
answers

Paste videos thumbnail (Windows)

I searched Google for various terms on how to get the thumbnail of the videos but only found how to "generate" the thumbnail of a frame from the video using Xuggler but I'm having errors. The error I'm having is: Belowismyclass:pa...
asked by 29.10.2015 / 19:09
1
answer

Problems drawing an oval in a panel (JAVA)

Greetings dear programmers friends. I'm running into a somewhat annoying error: Cogito draw a graph on the screen using circular / oval shapes. After a good number of searches, I was suggested to use a class that extended JPanel / JComponent...
asked by 06.10.2015 / 15:40
1
answer

Error while deploying EJB project with lambda using glassfish 4

I have two java files in my project First.java package br.com.bom; import javax.ejb.Stateless; @Stateless public class Primeiro { } Second.java package br.com.bom; import javax.ejb.Stateless; import java.util.ArrayList; import j...
asked by 17.09.2015 / 13:15
2
answers

How to save files to a server via Java?

I need to save a file to a server using Java . In my case, I need to save a json file. Can I save a file normally on my computer, but how do I save directly to a remote server? Here is an example that saves a file to my computer. My...
asked by 02.12.2015 / 16:45
1
answer

javax.persistence.PersistenceException (no security manager: RMI class loader disabled)

I created a policy file that gives the permission for my machine to run both the client and the server, I also passed the ports to them. Inside the server I instantiate RMI Security (since if I take it the policy does not work) Server started...
asked by 22.11.2015 / 17:01
1
answer

What is CDI technology?

I'm developing a web application and a colleague from the university who is some periods beyond what I'm studying said that using the CDI would have a better performance, however, so far had not heard of that term. I would like a simple example...
asked by 24.11.2015 / 01:54
1
answer

Table Update in PostGreSQL

I have the following question in Java: how can I pass to SQL that it should capture the "date and time" of the computer and update the User Table in PostGreSQL? Follow the code below: public class UsuarioAtualizar { private Connection...
asked by 29.11.2015 / 15:18
1
answer

Data modeling via JPA and Hibernate

I am doing a project with JPA for a quotation system and I have doubts on how to build the relationship between classes, and would like (if possible) some opinions. My project is a quotation system, where the company will create a quote and s...
asked by 08.08.2015 / 22:16
2
answers

Generate PDF with Jasper and download without storing it

I'm generating a PDF with Jasper, I'll show you how it's done. I'm saving to disk, storing the path in the database and then downloading. I would like to know how to do so that at the moment I click to generate, it generate and already downlo...
asked by 08.07.2015 / 04:01
1
answer

How to use redirect methods with Java Servlets

Hello, I have a server_server.jsp page with a form that when submitted goes to ServletInsertOrderService that inserts the form data into the database. I am trying to cause that when the data is entered, the browser returns to the server_ser...
asked by 09.05.2015 / 17:23