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.

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

0
votes
0answers
4 views

Customize position of arrow on JComboBox (place centered on bottom)

I'd like to be able to make a JComboBox with the arrow centered, below the text, to look like the pictured buttons from Word. I understand that the usage of the pictured buttons here differs from ...
0
votes
0answers
7 views

Attaching instance of a class to Restlet

Is it possible to attach an instance of a class to a component. class X extends ServerResource{ Callable func; X(Callable userfunc){ func = userfunc; } @Get public String ...
0
votes
0answers
2 views

Run my own video on BoofCv StereoVisual Odometry

I want to run my own video on the boofCv code existed on visula Odometry implemented based on boofCv library I downloaded the code, change the motion jpeg files ( left and right ) and by using ant ...
0
votes
0answers
13 views

Reducing tree of attributes

I have a tree of several thousand nodes, decorated by boolean attributes, something like this (attributes in parentheses): Root (x=true, y=true, z=false) Interior 1 Leaf 1 (x=false, ...
0
votes
0answers
3 views

Hadoop test BenchmarkThroughput crashes with NullPointerException due to mapred.temp.dir

I just configured Eclipse with the development environment for Hadoop(v 1.0.1). When I run one of the tests /src/test/org/apache/hadoop/hdfs/BenchmarkThroughput,java it crashes with a ...
0
votes
2answers
20 views

Processing/Java - Simple example

I'm trying to get a simple example to run. The below code compiles but gives me errors when I try to run it. I'm a newbie to Processing/Java. Also, my goal is to see if I can make a simple command ...
0
votes
0answers
7 views

Customize the ListView in a Fragment-based Master-Detail Flow?

I found the template that ADT generates for a Master/Detail Flow Activity to be rather obtuse, and I don't like the fact that the ListView is not declared in a layout file which forces me to work with ...
0
votes
0answers
7 views

Riak (Java Client) suddenly stopped creating secondary indexes

Note I am using the Java client in Scala. case class annotations are slightly different. I have the following POJO: case class User( @(JsonProperty@field)("guid") @(RiakKey@field) val guid: ...
-1
votes
1answer
7 views

Java via Command Prompt: Package javax.mail not found

I have placed the javax.mail jar inside my src folder as I know I should. I am attempting to run my java code with the following commands: javac -cp java-cup-11a-runtime.jar javax.mail.jar Main.java ...
0
votes
2answers
14 views

Append to a File

I am trying to write a java program that appends the current date and time of the system to a log file (that gets run by a batch file at my computer startup). Here's is my code. public class ...
0
votes
2answers
19 views

WeakHashMap Randomly clears

I am running a game, when I start up I load images into a WeakHashMap of Images. When I run my game, my RAM just keeps going up, then eventually my WeakHashMaps just unload all of their data. Is this ...
-5
votes
0answers
15 views

How to connect to a endpoint if i know public and private ip?

I want to make a socket connection with 2 points that i know theirs public and private ip. Thanks in advance.
0
votes
0answers
6 views

Asynchronous web service java

How can i access to my Asynchronous web service in java? I made this thing in Flex Builder, and it`s pretty easy: just add web service throw "Data -> Connect to Web Service -> Enter the URL of wsdl" ...
-2
votes
0answers
14 views

How to scan file in to array using interface in java

I'm having a bit of trouble with the scanner and array. I am trying to write a class that implements the interface using three bits of information coming from a text file. The data is laid out as ...
1
vote
0answers
11 views

Does Java 7 load .ZIP file into memory?

When call new ZipFile(myZip), does Java 7 loads the whole zip file into memory? Or it only loads the entry on demand? I had a look at the implementation, but the open method is a native method.

1 2 3 4 5 27305
15 30 50 per page