Questions tagged as 'java'

1
answer

Error Eclipse does not find JVM

Hello, I use Linux Mint 16 and I installed eclipse and I rode around quietly, but after installing eclipse I uninstalled OpenJDK 1.7 and installed JavaJDK 1.8. I edited the / etc / profile file by adding these lines: JAVA_HOME=/usr/lib/jvm/jdk...
asked by 13.04.2014 / 08:08
1
answer

Compare each word of the given text and save the lines where the text appears

I have the following methods in java, the split method separates each word from a text and saves it in a TreeSet < > to keep alphabetical order and returns the TreeSet < > in question. The compare method should take this TreeSet <...
asked by 27.06.2014 / 16:45
1
answer

Application for the android generator in version X Ev3 of GeneXus

I'm currently using GeneXus X Ev2 U5. I would like to do tests with the Ev3 X version. What do I need to install again?     
asked by 24.06.2014 / 00:31
1
answer

Exception when reading excel file using apache poi

I'm trying to read an Excel (XLS) file using the Apache Poi API, and I'm taking the exception : java.io.IOException: Invalid header signature; read 0x0020000A000DFEFF, expected 0xE11AB1A1E011CFD0 - Your file appears not to be a valid OLE2 docu...
asked by 11.07.2014 / 14:57
1
answer

JSF Project Image Servlet "Locking" the Application Server

I have the following code that gives my portal the images that are in the database @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String id = req.getParameter...
asked by 21.03.2014 / 13:09
1
answer

Problem with class org.hibernate.validator.InvalidValue when upgrading from Hibernate 3.X to 4.X

I have a project developed using JBoss Seam 2.2.2.Final together with Hibernate 3.6 . I'm trying to upgrade this project by uploading and migrating the component versions that it uses. One of these migrations is to upgrade the version of H...
asked by 24.03.2014 / 14:20
1
answer

Problem in calculating average

I'm trying to make a program, which gives the grade of two tests, P1 and P2. You add and divide by 2 to get the average. If it is greater than 6, the program returns the following sentence: Approved . If the average is less than 4, the program...
asked by 04.04.2014 / 02:21
1
answer

Override Hibernate Primary Key Generator

I would like to know if you can override the generator of a primary key in Hibernate, in my case I make a top class where id is, and the rest extend it. In my case this subclass, which extends from this one containing the primar...
asked by 03.04.2014 / 03:17
2
answers

How to increase the width of a JComboBox?

How do I increase the width of a JComboBox in Java? The layout I'm using is as follows: setLayout(new FlowLayout(FlowLayout.LEFT));     
asked by 01.02.2014 / 03:26
1
answer

Code to run in background in Google App Engine

I'm doing a "site" in GAE Java version to serve as a notifier when a source with results that I'm expecting goes online. It is supposed to check the link in question every 24 hours. I already have everything working, but as is normal, the site i...
asked by 04.02.2014 / 14:24