Java is an object-oriented language and runtime environment (JRE). Java programs are compiled to bytecode and run in a virtual machine (JVM).

learn more… | top users | synonyms (4) | java jobs

0
votes
0answers
4 views

IVR Development in java

I'm going to develop an one-line IVR application using java (without PBX). In the software requirements there are some mathematical calculations and database communication which i prefer to implement ...
0
votes
0answers
7 views

Strange behavior of jar command

I am facing a problem while creating a jar. Details are: ll src/com/foo/bar/ -rw-rw-r-- 1 amulay amulay 421 Jul 17 11:40 Test1.class -rw-rw-r-- 1 amulay amulay 125 Jul 17 11:40 Test1.java -rw-rw-r-- ...
0
votes
1answer
25 views

How to get some fields of the class using Reflection

Hi I have a class called "Person.java" and it has its own variables and also it also point to some of the referenced classes. Have a look at the variables below... public class Person extends ...
0
votes
0answers
10 views

strange thing with inner class JPanel

I tried to override method paintComponent in inner class JPanel and paint some picture. But if I load image in the constructor, method paintComponent is not calling. If load image in main class, ...
0
votes
0answers
2 views

How to use Java serialization proxy with MongoDB & BasicBSONEncoder?

I have a complex Java class hierarchy where the top level class happens to be called Console; the hierarchy includes some tricky bits including JNI classes, and serialization is largely by way of ...
-1
votes
0answers
28 views

how to do this?my English is poor,please forgive me

the problem is here. give you a linked list named L and another one named P.creat a method PrintLots(L,P),it will print P's element which L's element point on. for example, if P = 1 , 3 , 4 , 6;then ...
0
votes
0answers
24 views

which server side technology to choose while choosing for cloud? [on hold]

I am a developer of C# .Net and I am in it since last 1.5 years. But Now our company wants to switch the platform to either java(strong candidate) or Node js because company thinks that .Net is not ...
0
votes
0answers
14 views

Running word count on hadoop

MY HADOOP started on single node . But while running word count programm it shows following error. What may be the problem ? hduser@reshmi-Inspiron-1545:~/hadoop-1.0.4$hadoop-examples-1.0.4.jar ...
1
vote
0answers
4 views

How to prevent Android from filtering low frequencies ( < 150Hz )

Is there a way in android to avoid filtering low frequencies less than 150 Hz. Is there a standard range for each sound source? CAMCORDER DEFAULT MIC VOICE_CALL VOICE_COMMUNICATION VOICE_DOWNLINK ...
0
votes
6answers
50 views

How to jump over a particular set of statements in Java

public class Try { public static void main(String[] args) { int i=0; while(i<10) { System.out.println("Hello World"); if (i==6) { // The Execution ...
-1
votes
0answers
12 views

remote connection closed when server was on select

I was trying to write a basic client server program in java. So my basic question is say I accepted the client connection and I register my connection with a selector and now sitting on select for ...
0
votes
0answers
7 views

Passing variable value to cassandra cql statement throughJava

I have Java code to access and process data in Cassandra. How do I pass a Java variable to Cassandra CQL query written in Java. Here is the code: My code goes like this: itemname="Item01"; ...
0
votes
0answers
3 views

When I launching the file in Server (IRAD) , am getting the error - A communication error occurred: “Connection refused”

Network Error (tcp_error) A communication error occurred: "Connection refused" The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may ...
0
votes
1answer
6 views

Window.open in GWT not open correctly with in a call back function

I have a situation where i need to download a excel file. So i user Window.open for that. The problem is i need to check whether the file is exsist in the server location before call the Window.open. ...
0
votes
2answers
20 views

Java Class signature and dynamic loading

When will two classes considered same? Like, is there something acting as the signature of a class? If so, what counts in the signature, package info, class name, etc? I'm asking this because I need ...
1
vote
2answers
15 views

XML / Xpath — getTextContent() — I'm looking to get each attribute as a string

I have the following XML and Xpath code.. with node.getContent() I get a string return of the complete SUID element.. what is the best what to get each element and construct a new object with ...
0
votes
0answers
4 views

Cassandra 1.2.6 java datastax driver EXCEPTION No handler set for stream 0

i had started using datastax java driver from yesterday on latest version of cassandra 1.2.6...i cross checked start_native_transport: true is set in yaml...also my cassandra is configured with ...
-1
votes
0answers
10 views

what ate the types NLP Algothms and its usage

I have some requirement.it is concept extraction and tags extraction using NLP Algorithms in java.Give some examples for NLP algorithms and how to do this?please suggest me. Thanks
0
votes
1answer
19 views

Bulk database update/insert from CSV file

I am implementing application specific data import feature from one database to another. I have a CSV file containing say 10000 rows. These rows need to be inserted/updated into database. There ...
9
votes
0answers
12 views

Alternative of Jrebel for Hotswap or HotDeployment in Eclipse

As i am working in Java from past couple of year i do not saw any effort from Oracle to solve the problem of class reloading. Like done by Jrebel But its a licensed version and cost is very high ...
0
votes
3answers
37 views

filter text in listview android

I have a one EditText and one ListView. Item in ListView contains two TextView's. I need to filter ListView if the user enters something in EditText. My adapter: public class AdapterUserIsp extends ...
0
votes
2answers
42 views

putting double value 2d array read text

I want to put my text's double values on 2d array like that deneme deneme 4.5 5.5 6.6 7.5 9.9 9.9 dsdsa sddsf 9.9 8.7 7.5 8.8 4.4 6.5 my program output is 4.5 5.5 6.6 7.5 9.9 9.9 9.9 8.7 7.5 8.8 ...
0
votes
4answers
35 views

Java import sentence

I wrote this command line: Field [] field=Hello_World.class.getFields(); and I used the import java.lang.*; sentnce, that suppose to import all of the classes in the lang package. even so when i ...
0
votes
1answer
8 views

NanoHTTPD not working

hello all i am creating a web server for android with NanoHttpd and when i run it .It says that the Activity has stopped working please help what should i do. This is the code which i am using. Here ...
-7
votes
5answers
39 views

Pass ArrayList to method? [duplicate]

Is there a way to pass an ArrayList to a method as an argument? Here's what I've got so far that isn't working: int[] exampleMethod(ArrayList<int> exampleList) { } Any help is greatly ...
0
votes
1answer
7 views

how to create user registration with help of liferay registration portlet

I'm new to liferay, trying to create web app using liferay portlets. I'm trying to create a custom registration portlet with help of liferay registration API
0
votes
2answers
33 views

unable to compare values with httpResponse in java

i'm new to web development field and i tried to send username and password to php script and then return the result as 0 or 1.but i did not encode them when returning. my problem is ...
0
votes
1answer
33 views

Image in my application?

I have the following problem, my application retrieves data from a database online as well as the texts there are also the images I am viewing via the following class. The images are displayed ...
-2
votes
1answer
21 views

getting instance of generic subclasses using some value

I have a subclass which extends generic super class. Here it is BlueColorPainter extends ColorPainter<BlueColor>; GreenColorPainter extends ColorPainter<GreenColor>; RedColorPainter ...
0
votes
2answers
28 views

When you close a GUI with the little X

If you close a GUI using the the little X in the top right of the form, does that kill all your threads as well? If not, how to you catch that event so I can put in some close down code?
0
votes
0answers
11 views

Strange random NPE with ListSelectionListener

I have a random appearing NullPointerException in a lil Application I wrote. Basically it shall display a list of numbers and when selecting one of them, some details shall be displayed in an other ...
-4
votes
1answer
28 views

Compare object in java LinkedList

void foo(Item item) { LinkedList<Item> items = new LinkedList<Item>(); items.add(item); Item i = items.getLast(); boolean b = i.equals(item); } b is false. I think it ...
0
votes
0answers
15 views

what's the judgement of ready for reading or writing to a java socket channel

Recently,I decide to have a try on java nio package.In that package,it supplies a non-block socket compared with traditional socket.For example,Selector can notify user which channel is ready for ...
0
votes
1answer
15 views

How to get Job status using Gearman java

using Gearman-java-0.6.jar Api shows that GearmanClient.getJobStatus(GearmanJob job) could return a GearmanJobStatus object But i tried this one and get a NullPointerException error throwed by ...
0
votes
0answers
6 views

How to SMS send to CDMA modem using AT command in java?

I am trying to make a simple java application on windows-7 that can send SMS on my citycell Zoom USB Modem. I use AT Command(http://www.canarysystems.com/nsupport/CDMA_AT_Commands.pdf) . Flowing my ...
-2
votes
0answers
26 views

When I remove all the comments which are provided by the NetBeans in java code then the LAF of my project has been changed automatically. Why? [on hold]

Now the look and feel is dull(without shade and rounded corner of buttons and JOptionsPane window) and simle.
0
votes
0answers
13 views

Hidden video recording/recording video with screen locked

Is there a way to start video recording without going to the camera screen?(User can be in homescreen) Also when the user locks the screen, the video recording shouldn't stop. There is an app named ...
0
votes
1answer
5 views

Invalid public key security object file error while transferring a certificate file through java sockets

I written a java socket program to transfer certificate files to different machines, I able to transfer the files, but while opening the certificate I am getting a error prompt like Invalid public key ...
0
votes
0answers
9 views

How to update a JApplet GUI within a thread?

I'm having problens in updating a JLabel inside a JApplet. I'm using SwingUtils.invokeLater but it doest not working when Applet is inside browser. When I test it on NetBeans Applet Viewer it works ...
-2
votes
0answers
13 views

how to add URl to inside anchor tag to Href in Jsp [on hold]

http://pastebin.com/fwPx1f3V This is my html i want to add Each anchor tag Href= E://SW//eclipse-jee-helios-SR1-win32/eclipse//CBDTFiles/Circulars//CBDTLaws//HTMLFiles//dtc45s2x.htm public static ...
0
votes
1answer
22 views

Initializing views from within a for loop

In my XML I have around 136 check boxes, I dont want to undergo the pain of initializing each one of them individually in the corresponding java file, I came up with a novel idea of doing this using a ...
0
votes
2answers
18 views

Generalizing rest calls

I am using REST for my web services. Here is my sample GET request I am using. I have so many GET, Post methods in my code. I need to generalize these methods ,just to ensure that I am not missing ...
-6
votes
1answer
30 views

JAva Eclipse Program [on hold]

CONSTRUCT A PROGRAM THAT HAS THESE SPECIFICATIONS: A class named Student Has an object named after the student (your name) that has the following parameters: lastName, firstName, studentNumber(3 ...
0
votes
2answers
26 views

getting org.apache.jasper.JasperException: java.lang.NullPointerException

Here is the directory structure of my java Struts based web application, and webRoot directory. code is get compiled successfully but when i run it to browser it gives exception with HTTP Status ...
-1
votes
1answer
23 views

Stanford NLP Integration with java

Stanford NLP parser integration with my java spring application. can anyone here to give me some idea regarding this
0
votes
2answers
16 views

Convert Groovy array to hashmap

def val = "[name: searchBaseDN value: , name: enable value: false, name: userDn value: cn=EAGREAD,ou=Users,ou=Administration,o=hyn, name: base value: , name: prefsize value: 1, name: ...
0
votes
1answer
27 views

Server returned Http Response code : 707

While i am going to hit the Client URL to check the charging of a particular appliances I am getting the error as server returned HTTP response code :707 for the URL : in Java Why I am getting this ...
0
votes
0answers
14 views

Variable arguments for a query using bind params via java

I need to run an SQL query using bind parameters, where I do not know beforehand the exact number of bind variables I need to use. For example, I need to query a table where I need to get values ...
0
votes
0answers
24 views

Detect Memory Leak in Java Program [on hold]

What is the best way to detect whether there is a memory Leak in a Java Program? An if a memory Leak exist how can i find out its cause? I am working in eclipse. Is there any plugin for it?
-1
votes
1answer
15 views

to call a java file with parameter from jsp file

I'm doing a project which includes attendance part too. I have to dynamically add the name as a new column to the table attendance when the person registers. I dont know how to call a java file from ...

1 2 3 4 5 8934