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
2 views
How to configure Tiny Java Web Server
I have installed Tiny Java Web Server in centos 6.3. i started tjws using sh tjws.sh in terminal. i just created sample html file sample.html and place that html file in webroot folder.it is working ...
1
vote
0answers
10 views
Happens-before relationships with volatile fields and synchronized blocks in Java - and their impact on non-volatile variables?
I am still pretty new to the concept of threading, and try to understand more about it. Recently, I came across a blog post on What Volatile Means in Java by Jeremy Manson, where he writes:
When ...
4
votes
0answers
31 views
casting Object[] to a reference type array in java
In implementation of a generic stack ,the following idiom is used and works without any problem
public class GenericStack<Item> {
private int N;
private Item[] data;
public ...
0
votes
1answer
17 views
Calling BroadCast receiver from main activity android
I want to start broadcast receiver class from my app's main activity. Main activity has all the GUI stuff, this activity starts a service which performs all the work. For making this service start ...
1
vote
0answers
6 views
CAS Proxying not working properly
I have two grails-app appA and appB that are being authenticated/authorized via CAS and single sign on is properly functioning. However, now I have to make appA a proxy to appB for authentication ...
1
vote
1answer
10 views
What is Image Gallery's best alternative in Android Jelly Bean?
This widget is no longer supported. Other horizontally scrolling widgets include HorizontalScrollView and ViewPager from the support library.
I tried to browse answers from previous questions in ...
0
votes
0answers
11 views
retrieve html inline style attribute value with jsoup
Is someone to help me retrieve with jsoup the value of the text-align style in this example ?
<th style="text-align:right">4389</th>
Here i want to get the value right
Thank you!
0
votes
4answers
62 views
Java Simple Excersice
I am stuck into a Java excersice, so i would appreciate your help.
Here is the given excersice:
Public class FindVariables{
Public static int x=7;
Public int y=3;
}
...
0
votes
0answers
13 views
Eclipse plugin not working properly
I developed an Eclipse plugin that compiles and runs java code in German. The technique I am using is that I translate the code to English and pass it to Java Compiler and get the results back and ...
0
votes
1answer
10 views
Setting jpg compression level with ImageIO in Java
I'm using javax.imageio.ImageIO to save a BufferedImage as a jpeg file.
In particular, I created the following Java function:
public static void getScreenShot(BufferedImage capture, Path folder, ...
0
votes
0answers
7 views
Java SWT doesn't work outside eclipse
i have a Java SWT Project, i want to export as a runnable Jar file.
Inside of eclipse it works well (JUNO) with no Problems.
After export (tried both ways [Runnable Jar File or jar File with manuel ...
0
votes
0answers
13 views
How to draw a line in google map— android
Is there a way to draw a default line when location is changed?. I have a class which implements LocationListener. Once the location changed,I am able to get the values. Is it possible to draw a ...
0
votes
1answer
14 views
Spring Security Requirements and questions
I am working on an application that uses Spring MVC and Spring REST, it is separated into 2 servers, the backend is a Spring REST interface and the frontend is a normal SPRING MVC application. I ...
0
votes
4answers
60 views
How can i test an interface?
I want to do a JUnit test case for an interface, as you know i can't make an object from the interface and i don't want any classes names to show up in that test, i want only to test the interface and ...
0
votes
0answers
4 views
Querying MongoDB collection that contains different document typey with morphia and Play framework
Here's what I want to acieve:
I work with different type of objects that should be displayed on a map: shops, sights etc. I want to store these in one MongoDB collection, so that I have to make only ...