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 (5) | java jobs

-2
votes
0answers
12 views

How to Update The Progress Bar in Class B From Another Class A Which Is In Another Some Java File?

I have a getPercentage() method in ClassA which is in some other java file and i want to update Progress Bar which is in ClassB in another java file.
0
votes
0answers
11 views

Could i use java servlet filter class from other referenced class library?

I have 5 web applications in my project and want to filter http requests but don't want to write a Filter class for each web application because there will be no application specific behaviour in the ...
0
votes
1answer
12 views

Comparing two joda datetime objects

I am dealing with something very similar to what has been asked here - compare joda time zones but it does not seem to work for me. Here's a piece of code which I am testing joda datetime with - ...
0
votes
0answers
4 views

getting ipv4 instead of ipv6 in jsf

I want to get the ip address of a client in a remoe machine , i am using this method public static String getClientIpAddr(HttpServletRequest request) { String ip = ...
0
votes
0answers
6 views

Hang on Mac with zoomed desktop when starting an app. with both Swing & SWT

I am on a Mac ( tested it with 10.6.4, 10.7.5 & 10.8.2 ) with my desktop zoomed. When lunching my java application that use both Swing and SWT the window is freezing right at the opening. The ...
0
votes
0answers
8 views

Export war from headless Eclipse

How do I export a WAR file from an Eclipse .web project programmatically with Java? I have big problems with war ant task due to complex project structure( ProjectX.web has a dependency from ...
0
votes
0answers
5 views

What should I do if I want to use webp format storing in my web server?

I want to store images as webp format in my web server, thus in mysql or memcache, is there anything I should do when the server recevie images from andriod client? At the same time, when a client ...
-3
votes
1answer
24 views

Getting started with network protocols in Java

What I want is to "touch" java network programming. I want to implement some clients of widely used network protocols in Java and "play" with them. Generally my questions can be expressed as: which ...
0
votes
1answer
6 views

add-user.bat on JBoss-as-7.1.1.Final,The system cannot find the path specified

i've installed jboss-as-7.1.1.Final on my windows 7. the installation was successfull, and i can see the server running on http:/localhost:8080/ But the problem is I am trying to add the users ...
-1
votes
1answer
12 views

Creating connection pool with Java JDBC Connector/J

I want to learn how to create a connection pool in Java. I followed the Oracle Tutorial. But I could not understand their example. Can someone please explain how to create a simple connection pool. ...
1
vote
3answers
13 views

Sonar flag “Bad practice”: Usage of GetResource in XYZ may be unsafe if class is extended

Sonar is indicating this error in our Java project. Any suggestion for safe programming is welcome! URL url = getClass().getResource("/myWonderfulResource.txt"); if (url == null) { throw new ...
0
votes
0answers
11 views

Replace InvocationHandler in java.lang.reflect.Proxy

I need to replace InvocationHandler in a Proxy object. But there is only getter for it and no setter. Why is this so and is there any workaround? Thanks
0
votes
0answers
4 views

Xuggler - Converting 24 Bit Audio to 16 Bit Audio

I'm having trouble using Xuggler to convert from high quality audio (24 bit, 96 Khz, 4608kbps) pcm to standard quality audio (16 bit 44.1khz, 1411kbps). I seem to get a fairly generic error "failed to ...
0
votes
1answer
11 views

Markers in Android Google Maps v2

There is some way to make a OnLongClickListener in Markers without making them draggable? I'm trying to show a context menu where a Marker is long clicked, so I implements the OnMarkerDragListener ...
2
votes
5answers
60 views

Nested if-else behaviour without braces

Consider the following unformatted nested if-else Java code if (condition 1) if (condition 2) action 1; else action 2; My question is: according to the Java language specifications, to what if does ...

1 2 3 4 5 29010
15 30 50 per page