Tagged Questions
Java is an object-oriented language and runtime environment. Java programs are platform independent because the program execution is handled by the a Virtual Machine called the Java VM i.e. JVM
0
votes
0answers
7 views
How to map all urls to a single .html page
I'm new to Tomcat, and understand servlet-mapping, but was hoping I could do some mapping to a html file residing in the webapp/ folder.
I have a simple javascript web application that resides as ...
0
votes
0answers
5 views
Java Error: Could not find or load main class. (Eclipse Juno) with package
So I made a project with packages in Eclipse.
I have a few classes all in same package com.example.parser.
In Eclipse everything works fine.
So I wanted to run one of the class from command line.
The ...
0
votes
2answers
10 views
Retrieving artist IDs from API — processing them as long vs. int?
Beginning programmer here, so bear with me!
I'm trying to retrieve some artist IDs from a music website's API. Here's a snippet of my code:
JSONObject jsonItem = (JSONObject) jsonResults.get(i);
...
0
votes
0answers
5 views
How to create a dictionary can be created to exchange languages and translations?
I would like to make a simple dictionary application on android, I plan to make a simple dictionary like google translate, which can be used also for exchange of language in translation, so far I ...
0
votes
0answers
5 views
URL Reader Android Class
public class URLReader {
private URL _url;
@SuppressLint({ "NewApi", "NewApi", "NewApi" })
public URLReader(String url) throws MalformedURLException {
StrictMode.ThreadPolicy policy = new ...
0
votes
0answers
16 views
Java Error java.lang.NoClassDefFoundError when loading Factual Intance
I am simple trying to Instantiate and instance of Factual class like so:
Factual factual = new Factual(key, secret);
Every time I start the load i get error:
Exception in thread "AWT-EventQueue-0" ...
0
votes
0answers
7 views
JPA1 get all entities
In JPA2 there is a method in EntityManagerFactory that gets all the Entities - emf.getMetamodel but this method does not exist in JPA1.
I can't use JPA2 because we are using OC4J and JPA2 is causing ...
0
votes
1answer
10 views
Wrong Image Loads when loading images in listview
I've seen a couple of questions like this, but I seem to be having a slightly different problem. So I thought I would ask someone on here.
I have a custom listview with a textview and an imageview. ...
-1
votes
1answer
24 views
Java - trying to pause a thread [closed]
Possible Duplicate:
Java Wait and Notify: IllegalMonitorStateException
What is the problem with
private final Object lock;
public synchronized void run() {
while ...
3
votes
1answer
24 views
annotation represent another annotation
It is possible to have an custom annotation that do the same work as another annotation ?
for exemple if I write @MyCustomAnnotation like I have write @override !
0
votes
0answers
8 views
Launch webstart without downloading…?
I have made a Java webstart application, and created an HTML page with the link to launch it. The problem is, in Google Chrome, there is no option to just 'Open' a file without saving it. I want to ...
0
votes
0answers
21 views
Read byte array from file inside of zip
I've spent the several last days creating a program which will host game servers from my dedicated server. The users input which WAD/PK3 (files that store map info, music, etc.), several other things, ...
3
votes
2answers
15 views
Trying to understand if I need WakeLock
Disclaimer: My app already working without any Wake Locks for 1+ year and all is well for most devices.
I'm tracking GPS and it works like this:
AlarmReceiver starts Service every 5/10/15 minutes ...
0
votes
0answers
9 views
Pausing thread using handler and making changes using runOnUThread
I am trying to get some buttons that the user has click to blink, sequentially. This is suppose to "simulate" how long (using Thread.sleep(time) a beam is on a certain point (button). This code works ...
-1
votes
0answers
14 views
Jackson - Deserialize multiple Generic Classes
I have posted the question before, but I did not frame the question properly and hence I did not get relevant replies. So, I am posting the question correctly again.
I am getting a json string as a ...