Tagged Questions
Java is an object-oriented language and runtime environment (JRE). Java programs are compiled to bytecode and run in a virtual machine (JVM).
0
votes
0answers
23 views
Java - getting runtime information
Hy, I am need to know how to get a history of the runtime. I need to get information about every thread, and every class it has been trough, and every method, and every object that has been created. ...
0
votes
1answer
14 views
Spring autowiring scanning only test files
During unit tests with JUnit, Spring autowiring is only working for files in:
src/test/org/baudo
But not files in:
src/main/org/baudo
So when I test my DAO that autowires a sessionFactory ...
1
vote
1answer
15 views
Is there something like Scheme's “exact division” in Java?
In scheme I can do this:
#;> (/ 1 3)
1/3
#;> (exact->inexact (/ 1 3))
0.3333333333333333
This is called an "exact division".
I was playing with BigDecimal in Java and figured out that ...
0
votes
5answers
33 views
Throwing exception in main method
I am trying to figure out why i have to throw exception in the main method while i have try/catch blocks that can handle those exceptions anyway?
even if i delete throws ...
0
votes
1answer
11 views
AutoComplete : setting a float as the adapter
So,i have 2 AutoCompleteTextViews.One has the product name and the second the product price.
What i want to do is this : when the user picks an option from the first ACTV dropdown,lets say he picks ...
0
votes
1answer
14 views
remove paranthesis alone in the java string
In my java string eg:hello(world) is there. I want to remove the paranthesis alone the result should be helloworld .
I tryied the regexpression like this
String strFunction = Hello(world);
...
1
vote
3answers
29 views
How to convert R.color to Color?
Android has 2 types of colors: R.color and color
Layout uses R.color (I need holo_blue_light: 17170450 (0x01060012))
but functions (such as setColor()) have the other type of input int (i.e. CYAN: ...
-1
votes
1answer
10 views
How can i get data in jtable from mysql database using object
I am trying to show data in a JTable from MySQL database, but I did not get the problem what should I do? This is my code:
try
{
Class.forName("com.mysql.jdbc.Driver");
Connection con1 = ...
1
vote
0answers
8 views
Java library for testing web services
I have JUnit tests that test REST web services. Now I think that JUnit is probably not the best tool for that. These tests are integration tests but not unit tests. So I probably need a Java library, ...
-1
votes
0answers
5 views
How to Display Hashmap key and Corresponding value in jsf 2.0 Manycheck box?
My BeanClass{
String product ;
String price ;
Hashmap<String , String > map;
}
i am able to fetch the data and putting in the Map .But in JSF2.0 how should Map in checkbox and Map ...
2
votes
1answer
19 views
How can I get the line number in which the cursor is in netbeans editor
How can I get the line number in which the cursor is in net beans editor.I am developing a net bean plugin and I need to get the position of the cursor( not mouse ).
0
votes
0answers
5 views
How to compile a jess file in Netbeans?
I had write my code in Java. It's a Java Applet and i call a jess file. I would like to use the Netbeans IDE so i saw that it is not working and give some errors. How i can fix it and my Netbeans ...
1
vote
1answer
24 views
How do I convert a url String into a JsonFactory
After reading this:
I have written the following code for trying to convert a JSON String to a Map:
import java.util.HashMap;
import org.codehaus.jackson.map.ObjectMapper;
import ...
0
votes
1answer
22 views
Android - how do i restart the apps which is running on its own, and need to be restarted by itself?
In desktop Java applications, i was able to restart my Java application by itself with some scripting not necessary to be compiled for example (so that remotely we can add some extra on stuff on it) ...
0
votes
0answers
9 views
How can I download an eclipse update site, zip it and take it to another machine's eclipse and use it as local installation?
What I need is a way to download an update site for eclipse, specifically the EPIC update, download it locally in my windows machine and then transfer it to a linux machine that has eclipse but does ...