Questions tagged as 'java'

1
answer

Is it possible to instantiate an object more than once in a class?

I have a problem. I have 3 For's, one inside the other, Within the second For I make the instance of my object and soon after I pass the data from an xml file that I read to that object and at the end I add everything to a List<MeuObjeto&g...
asked by 07.05.2015 / 22:18
1
answer

Return null JSP

Well, I'm having a little problem, but it's getting me down in a simple college exercise. The intention is only to make a program that receives an amount x and a value y, and multiply it. However, it is to use java methods, and also jsp .....
asked by 08.05.2015 / 17:21
1
answer

JUNIT Eclipse - java.lang.ClassNotFoundException

All my tests using JUNIT do not work anymore. I tried unhappily removing all / bin and some other files from the .project .classpath configuration. Okay so far was a lot of bullshit, then tried to create another project and only pass the classes...
asked by 08.05.2015 / 03:18
0
answers

How to pass variables from JSON to Fragment in android application using TABS?

I have the following code: public class ActivityCategorias extends AppCompatActivity implements MaterialTabListener{ private List<Category> categoriesList; MaterialTabHost tabHost; ViewPager pager; ViewPagerAdapter ad...
asked by 07.05.2015 / 20:10
1
answer

Demoiseller Signer - Loading a private key from a token

In the documentation for the Demoiselle Signer we have the following example to load the private key of a token: KeyStoreLoader keyStoreLoader = KeyStoreLoaderFactory.factoryKeyStoreLoader(); KeyStore keyStore = keyStoreLoader.getKeyStore("p...
asked by 07.05.2015 / 19:03
0
answers

Read memory CLP zelio

I am having a great difficulty in developing an application in which I should, through the modbusTCP protocol, read what the Zelp clp model sends me, where it communicates with a sensor that when triggered sends through the clp a value in which...
asked by 18.06.2015 / 15:38
1
answer

Java Battleboats

Good morning everyone, I'm doing an exercise in java on the Naval Battle game, I have a lot of code but I'm stuck in the part of validating the position of the boats. The exercise asks that 4 bards of different sizes (2,3,4,5) be created in the...
asked by 03.05.2015 / 15:56
0
answers

WebService Restful Jersey

I'm starting development of WebService Restful Jersey in Java and I'm not able to connect to perform a simple Hello World. I added the jar: asm-3.1jar jersey-core-1.19jar jersey-server-1.19jar jersey-servlet-1.19jar jrr311-api.1.1...
asked by 01.05.2015 / 20:33
1
answer

Error while executing this page

importandroid.app.*;importandroid.content.*;importandroid.os.*;importandroid.util.*;importandroid.view.*;importandroid.widget.*;importjava.util.*;importorg.apache.http.*;importorg.apache.http.message.*;importorg.json.*;publicclassverextendsActiv...
asked by 04.05.2015 / 12:56
0
answers

Error converting Android project to Maven

I created an Android project and right after I clicked on the project > Configure > Convert to Maven Project. But soon after doing this the application no longer starts, it displays the following error:    Unable to instantiate activity...
asked by 02.05.2015 / 23:13