j2se

What is the best way to compile J2ME and J2SE apps from the same codebase?

Hi all, I'm trying to build an app for both J2ME and J2SE. The presentation code will obviously be different, but I'm hoping to keep the logic common, as much as possible. My plan is to use Ant or Antenna's preprocessor to select either the J2ME or J2SE Graphics object, with that class being the only intersection between my logic and d...

Calculate minimum area rectangle for a polygon

I have a need to calculate the minimum area rectangle (smallest possible rectangle) around the polygon. The only input i have is the number of points in polygon. soryy for the incomplete information . Yes i have the co-ordinates of the points also Thanks ...

Running a JavaSE number cruncher in a cloud

I've spent a long time building stochastic simulations in Java. They work great, but the company hardware is unreliable, getting old and unlikely to be replaced soon. The simulations and number crunching are entirely written in J2SE. Some of them need a little GUI interaction, or to display a window in order to render images which are ...

CDC-1.0/Foundation-1.0,J2SE-1.3

Dear all, How to setup/configure the environment "CDC-1.0/Foundation-1.0,J2SE-1.3" of an OS (for example windows XP, linux)? Because I want to run the embedded AWT application which requires this environment. ...

Can JavaSE doing a web application?

I know that J2EE can using JSP + Servlet, can I use JSP & Servlet using J2SE? ...

Are all J2SE classes available in J2ME ?

Hi, I'm a java noob. Wanted to know if all J2SE classes are available in J2ME. If not why is it so? Thanks ...

How do i get a webpage to open up in a frame?

How do i get a webpage to open up in a frame? (i'm using netbeans and java) e.g in a html page you can use <FRAME src="http://www.google.com"&gt; and it will display google in the frame. i don't want it to open a browser, just to open up within the form. thanks ...

Correlation between JEE / J2EE to J2SE / JDK versions

I was certain that I'll find a duplicate question or a satisfiyng answer, but I haven't. What I'm looking for is the answer to these questions: Is there an official correlation between JEE / J2EE and J2SE / JDK versions? If the answer is yes, where is it written? If the answer is no, then why? and is there an unofficial version table ...

J2ME: How to generate random number?

Hi, I just wanted to know how do I generate random number using J2ME? Basically i want to generate a 14 digits random number each time when the menu item Generate is clicked from the mobile's screen. Thanks ...

J2ME: How to make a call?

Hi, Let's suppose i have created a text box with a phone number in it prefilled. How do i make a call when a button Call is clicked. The call should be for the number specified in the text box. How to make a call programatically for the specified number in J2ME? Thanks ...

openJPA on Java SE

Hi guys, I try to develop JPA project on ibm RAD. And i can run it on Webpshere successfully, but the problem is my machine is quite old. So deploying in JEE container isn't reasonable.And i want to run it on JSE.But it gives following error: 94 test INFO [main] openjpa.Runtime - Starting OpenJPA 1.2.1-SNAPSHOT 235 test INFO [m...

Bluetooth video streaming

Can anyone please direct me to learn something about Bluetooth video streaming programming using j2se and j2me technologies as i want to stream live video from pc to mobile phone through Bluetooth. I am caputring video using jmf and then converting the captured video to 3gp format. I want to stream this video to mobile phone(I have tra...

Proper way of "shutdown" a spring context in J2SE

I'm currently experiencing problems with a JPATransactionManager in a J2SE application. The latest request was not properly saved in the database (surely a problem of cache). This seems to be normal because the exit of the program does not seem to "cleanly" exit all Bean of the spring application context. Do you know if there's a meth...

Suggestions for particular client-server system

Hi! I have a quite specific client-server design case and I want to ask for suggestions. The task is about enhancing an existing system with new functionality. The system is composed of a server with public IP, 10 - 1000 CLDC clients with dynamic IP, and a device that communicates with the server over the serial port (COM). Client(J2ME):...

Java: Sharing a connection pool accross other J2SE Apps...?

So I have a connection pool setup. Which is great and all since I have an application that really needs it. However what I would like to know is if it is possible to share this connection pool with other J2SE apps? Would this even be worth it, as opposed to creating a connection pool based on each apps needs? If it would be prudent, how ...

J2SE Client Server App: Client calls RMI method. Server handles RMI method and returns, but Client never receives it. Any ideas?

J2SE Client Server App: Client calls RMI message. Server handles RMI method and returns, but Client never receives it. Any ideas how this could happen? Our attempted solution is to set client read timeouts and come up with a framework for resending requests or otherwise handling those failures gracefully. But really, I'd like to k...

Can J2SE applications be clustered

Hi there all, i have numerous Corba servers and some other java apps (not web). I wish to cluster them if possible. Can this be done ? ...

Internet audio player from java swing client ?

Im trying to implement and realtime audio streaming swing desktop app . trying to get bytes of audio using java.net classes and then feeding it to play . Just trying blind punches undersea water thinking the water tank will crack :(( help or any suggestion ? ...

JVM terminates when launching eclipse with J2SE 6.0 on mac os x (need J2SE 6.0 for Oracle enterprise pack for eclipse)

I know my issue has party been addressed at this link http://stackoverflow.com/questions/245803/jvm-terminates-when-launching-eclipse-mat-on-mac-os-with-j2se-60 but it was a year+ ago.. plus the link that's provided in there http://landonf.bikemonkey.org/static/soylatte/ does not seem to be alive (i mean the download section on that ...

Parse Nested XML tags with the same name

Let's take a simple XML document: <x> <e> <e> <e>Whatever 1</e> </e> </e> <e> <e> <e>Whatever 2</e> </e> </e> <e> <e> <e>Whatever 3</e> </e> </e> </x> Using the standard org.w3c.dom, I can get the nodes in X by doing.. Nod...