Code to send SMS using J2ME
Hello, Can someone help me with code to send SMS using J2ME? Thanks ...
Hello, Can someone help me with code to send SMS using J2ME? Thanks ...
How do I start with Java as a C# developer? Please advice me from a C# developers perspective. Thanks ...
Can I code once in J2ME and run it on any mobile phone just like I can using the .Net compact framework? Thanks ...
I am writing a multi-threaded solution in Java to connect two systems, A & B. System A is completly serial, not threaded, and will supply data to send to system B. System B accepts data from multiple sources asynchronously all at the same time. I am using ThreadPoolExecutor to manage the threads. I am using a static singleton instanc...
I have a Java application that uses a C++ DLL via JNI. A few of the DLL's methods take string arguments, and some of them return objects that contain strings as well. Currently the DLL does not support Unicode, so the string handling is rather easy: Java calls String.getBytes() and passes the resulting array to the DLL, which simply ...
I'm rediscovering Java, and I'm a little lost about how to do this within Eclipse. I am looking sort of for Visual Studio "object browser" functionality, but I'd settle for a quick list of types that are defined within my referenced external jar files. ...
For a few projects I'm working on I need a persistent key value store (something akin to memcache). It would ideally run as a server; it needs to be really efficient. I'm aware that memcachedb exists, but I'd like to have a go at writing it myself as there's going to be a lot of custom functionality that I'll need to include later on. I'...
I need to implement some NLP in my current module. I am looking for some good library that can help me here. I came across 'LingPipe' but could not completely follow on how to use it. Basically, we need to implement a feature where the application can decipher customer instructions (delivery instructions) typed in plain english. Eg: Wi...
One of the users of a Java swing GUI program that I wrote is having an issue where the main swing window doesn't render to the screen properly and the GUI freezes up. Here's a comparison of the screenshot on his screen (top) and what is supposed to show up (bottom): He is running Windows XP SP3 with Java 1.6.0_13 and his graphics car...
Hello! I want to have JAXB-annotated classes which would be marshalled/unmarshalled to different XML namespaces. What I need is something like: <someRootElement xmlns="urn:my:ns1" xmlns:a="urn:my:ns2" xmlns:b="urn:my:ns3"> <someElement/> <a:someElement/> <b:someElement/> </someRootElement> How can it be done? Can it be ...
I'm new to JSP and Tiles, as well as Java. We are currently replatforming our site using these, but I am confused as to when something should be put into a view preparer vs coming from the controller. For example, the current page I am working on will have a tile for pagination, including the content type (X of Y content-type). My origi...
Duplicate When do you use the “this” keyword? What is the best practice case of referencing "this" in any given class? Basic C# Forms example: class SomeForm : Form { public SomeForm() { Text= "Hey, I'm a new form."; Size= new Size(400,350); SetupButtons(); } private void SetupButtons() { Button btn1= new ...
I am split between the benefits of developing Java (non-commercial) webapps and deploying to something like Aptana or Google cloud, or just going with a Slice Host account. Tomcat or Jetty and MySQL are really my only big requirements. Aptana and Google App Engine come with some cool Eclipse deployment options, but does scalability rea...
IDEs like Netbeans allow generation of entity classes through a persistence context. If you had access to underlying generation method (not sure if it is an external tool or part of the IDE), could you generate database entity classes dynamically at runtime? The idea being that you could hook into the entity classes using reflection. I ...
I'm trying to slightly extend an undocumented class in a third-party framework we're using. I decompiled the .class file with jd-gui and see an inner class defined like this: private class DeactivateAction extends AbstractAction { public DeactivateAction() { super("Deactivate"); } public void actionPerformed(ActionEvent paramActi...
Hello! I know that one can define an 'expected' exception in JUnit, doing: @Test(expect=MyException.class) public void someMethod() { ... } But what if there is always same exception thrown, but with different 'nested' causes. Any suggestions? ...
I'm going to refactor certain parts in a huge code base (18000+ Java classes). Goal is to be able to extract lower layers as independent libraries to be reused in other projects that currently use duplicate of this code base. Especially one part is of interest to be refactored into a framework independent of business logic. Ultimately I ...
Due to browser restrictions I need to use a proxy to make an openlayers map work. The OpenLayers.ProxyHost javascript object handles the generation of a URL like: http://webhost:8080/app/proxy/?url=http://WFS_server/options/... Some of the requests will be GET's and others will be POST's. I've written a Servlet Filter that will recie...
I'm trying to make it so that no matter how far apart two objects are they'll both remain on screen. I'm using JOGL, but that shouldn't matter as I just need help with the math. This is what I have so far: float distance = (float) ((Math.sqrt((p1.x - p2.x) + (p1.y - p2.y)))); float camx = (float)((p1.x + p2.x) * 0.5); float camy = (flo...
In most programming languages I've used, when debugging, when I hit a breakpoint, I have the ability to execute arbitrary code (whatever I type into the console after the breakpoint has been hit). How do I do this in Eclipse? The debugging mode has, by default, a display console, but no interactive console (into which I can input Java ...