Questions tagged as 'java'

1
answer

Burst net.vidageek.mirror.exception.ReflectionProviderException error: Could not invoke method, how to fix?

I'm in a code where at the time I run this method in java from HtmlUnit: // SIMULANDO UM NAVEGADOR WebClient client = new WebClient(BrowserVersion.getDefault()); client.setJavaScriptEnabled(false); client.setCookiesEnabled(true); System.out....
asked by 07.07.2015 / 22:36
1
answer

Search Places by category

I'm using api google places that returns a JSON, I was able to search for places with lat and long and also with placeid , now I need to search the place for tipo/categoria eg restaurant, gym, electronics and etc. T...
asked by 06.07.2015 / 22:42
1
answer

How to send a BufferedImage by POST method?

Well, I wanted to know how to send an image of type BufferedImage to a link using POST method. I'm using this code to send, but I'm not sure how to send this BufferedImage . public static String getImgurContent() throws...
asked by 18.01.2015 / 20:24
1
answer

Can I point to project files in this way?

Working with PHP, it is very easy to put a path scheme into a file, but in Java the schema might be different? Can I point to a file starting, for example, by src File.separator ? Example: private static final String MODELS_PATH...
asked by 28.12.2014 / 19:16
1
answer

Problem with @Autowire Spring + Hibernate and Junit

Good night, I'm trying to create a project using Hibernate and Spring, I was successful creating some configurations, I even managed to generate the database by initializing the application using Spring, however I'm "stuck" in creating my DAO's,...
asked by 29.12.2014 / 18:37
1
answer

Return names of selected items from a checkboxTree

How can I check which items are selected from a checkboxTree ? I've had to search and I know this code returns the last selected: DefaultMutableTreeNode node = (DefaultMutableTreeNode) checkboxTree1.getLastSelectedPathComponent();...
asked by 04.12.2014 / 18:44
1
answer

How to import the HttpClient library?

Where should I put the library HttpClient ? In all tutorials you can find only examples of codes, but no one really explains that after downloading, we should put where? link There are two types, one with httpclient-4.3.6.jar...
asked by 23.12.2014 / 22:17
1
answer

Calculate remainder with 2 numbers BigInteger

How to calculate the rest with "%" from two BigInteger numbers?     
asked by 25.02.2015 / 18:44
1
answer

Null pointer in Part filetype when uploading

I'm having a proplem using javax.servlet.http.Part . It is coming null when I upload. Test XHTML <?xml version="1.0" encoding="UTF-8"?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html">...
asked by 27.02.2015 / 15:54
1
answer

Click the button without using GUI

I'm developing a system in java and would like to do it in a more organized way, then without the use of the netBeans tool to click and drag, however I am very difficult to do a simple click on the exit button of the system. How to do?     
asked by 05.03.2015 / 21:08