Tagged Questions
Java is an object-oriented language and runtime environment (JRE). Java programs are platform independent, because they are compiled to bytecode and their execution is handled by a Virtual Machine called the Java VM or JVM.
0
votes
0answers
5 views
How to write effective adapter row caching
if you look below code, when i control v is null or not, no to reinflate view, there are a problem with listview.
When i scroll the listview the row values changing, repeating. I can solve this ...
0
votes
1answer
10 views
Fail to call mysqldump from java in linux
This is the code :
public static File backupDB() throws IOException {
File file = null;
file = new File("BKUP_DB_"
+ Calendar.getInstance()).replace("/", "-") + ".sql");
...
0
votes
1answer
12 views
JAVA / JAI save byte[] to .tiff file
I'm trying to save a byte[] of raw image data to a .tiff file on my harddrive with the help of the Java Advanced Imaging API.
There are some minor examples on the web but they didn't help me really ...
1
vote
0answers
23 views
Java Quicksort Algorithm doesnt work properly
I have two Arraylists, which should be sort descending due to the values in the second Arraylist(which is type double). Basically the values of the first Arraylist are not regarded, but the elements ...
0
votes
1answer
13 views
openFileOutput: How to create files outside the /data/data… path
I wonder whether you can help me out with this question. I don't understand how I can access e.g. the "Download" folder or some of my own folder.
I want to create some txt-files and have access to it ...
0
votes
0answers
11 views
Android xml rpc UnknownHostException
I basically try to get the recent posts per metablogweb API methode getRecentPosts. But all i got is a UnknonHostException and I m not sure why because the name is correct and the user data too. Am I ...
0
votes
0answers
7 views
map reduce program is not able to load csv file hbase table
i am running this command to load csv file using map-reduce program.
it is running successfully but when scanning hbase table gives 0 rows.
Following is the console log data of the execution process:
...
0
votes
0answers
5 views
Embed an XML file in a PDF using iText
I have the Data.xml file and a pdf file filled with informations. I'm trying to embed the data.xml file in the XMP metadata stream of the PDF because this data should be hidden.
I used iText to ...
0
votes
1answer
13 views
How can I find where a memory leak is in my Tomcat application?
I'm working on an application in Spring/Struts and if I leave it over night the next day I find there are 3 or 4 javaw processes each taking 500-600mb. I guess I have a memory leak.
What can I use ...
1
vote
0answers
42 views
Why is arraylist loop crashing on removing elements
I'm trying to print all the elements of an arraylist and remove them from the array at the same time using the following code.
while(!duplicates.isEmpty()){
...
3
votes
3answers
53 views
Why i am getting this output in this java Thread program?
Hello i am a beginner in java programming, recently i am studying Threads, i am having problem in output of this program.
class s1 implements Runnable
{
int x = 0, y = 0;
int addX() {x++; ...
0
votes
0answers
6 views
Glassfish wont fetch table from MySQL/Java DB
Alright so what I’m try to do is create a CRUD website application over netbeans IDE 7.3 to handle cases, you should be able to add case edit etc, but my problem is glassfish. What I keep on getting ...
0
votes
0answers
8 views
Can't get correct List via RPC for ListDataProvider
I want to receive typed List via RPC and then link it to ListDataProvider. Then ListDataProvider must show this list in CellTable. But List, which I get from RPC, doesn't show up in CellTable.
I ...
0
votes
1answer
24 views
How can i start a timer like call log duration when activity start?
Let the question is i want to start a timer which is initialize when the activity is brought to front. I have a text view and i want to display a time start with 00:00 and increase in every tick.
How ...
0
votes
0answers
11 views
Canvas: refresh screen on touch
I'm trying to make something like Battleships.
By this time I've managed to random spawn and draw them on canvas.
But there's another problem: in the game user will touch the cell and that cell will ...