Questions tagged as 'java'

2
answers

Display a series of even and odd numbers in java

Eh made a program in java that makes the user enter a total number of numbers to evaluate, if you enter 4, you will have to enter 4 times any number, and then verify if it is even or not, one by one, but , when I try to deploy the succession of...
asked by 18.10.2018 / 03:14
0
answers

How to change a Jpanel for an external Jpanel?

Sorry for my ignorance, but my problem is how can I change a panel that is in my Jframe for another one that is outside of this one. I found a video on youtube ( this ) that teaches how, but when I run the code the panel does not change me, a...
asked by 22.10.2018 / 19:15
0
answers

I can not upload the resources (css, js and img) in web page with spring mvc

I'm new to Spring mvc and I'm trying to do a web project, I could load a simple page without styles, but when I want to upload images or css I do not take the route, I would like to know how I can implement it, and try many answers that I saw in...
asked by 22.10.2018 / 19:11
1
answer

Query failed with error code 13 and error message

I have a problem with a Spring boot project 2.0.3.RELEASE + mongodb 4 - Instance my DB as mongod --auth --config mongod.conf --dbpath=\data\mongo4\ - Create the user in the following two ways db.createUser( { user: "us1",...
asked by 24.10.2018 / 12:43
0
answers

How to consume an asmx webservice from Java?

I have a webservice implemented as follows on ip 192.168.1.201 and port 888: When I click on invoke, it returns the following: What would be the correct way to collect this information from a Java program? I tried to pobar with...
asked by 24.10.2018 / 14:03
0
answers

Problem when uploading images from android to my server localhost

I am programming to upload my images to my server in a folder but it does not upload and I get the following error:    org.json.JSONException: Value [] of type org.json.JSONArray can not be converted to JSONObject The times I tried them (...
asked by 24.10.2018 / 12:57
0
answers

Scraping TD Tags Using JSOUP

I'm trying to get data from a view-source page: link which are shown in a table html rows and columns <div class="table-responsive table-rounded" id="general_imei_info"> <table class="table table-featured">...
asked by 19.10.2018 / 05:10
0
answers

How to add an image to the emulator gallery in eclipse?

I'm doing automatic testing of an app, and one of these tests is to create an ad. The ad needs to upload some image, but since they are automatic tests from an emulator, I do not have any images. For this it does not help me to drag some file to...
asked by 19.10.2018 / 09:50
2
answers

Problems when calling a Fragment from an Activity

My problem is this: I have a MyLocationActivity.java that gives me the location in google maps, the example that I have to send to call that file is to call a fragment that I have declared in my MainActivity.java and what I wan...
asked by 16.10.2018 / 18:58
0
answers

getJavaScriptResult returns null

I am trying to log into a website and retrieve a page of a specific product. My Java code is as follows: String log = page.executeJavaScript( "document.getElementById(\"form_postalcode\").innerHTML = \"<select id='cl_pos...
asked by 23.10.2018 / 07:08