Questions tagged [java-me]

Java Platform, Micro Edition, or Java ME, is a Java platform designed for embedded systems.

Java Platform, Micro Edition, or Java ME, is a Java platform designed for embedded systems (mobile devices are one kind of such systems). Target devices range from industrial controls to mobile phones (especially feature phones) and set-top boxes. Java ME was formerly known as Java 2 Platform, Micro Edition (J2ME).

  • Technology overview for beginners on Oracle.com - Introduction to Mobility Java Technology:

    To develop applications using wireless Java technology, you'll need to assimilate information from several fields. You'll need to understand something about wireless communications technology, the business of wireless communications, and a lot about the Java platform. Where should you begin? This page contains a high-level overview of wireless Java technology and many links to detailed information about specific subjects...

API Documents

CLDC 1.1 API Documentation

MIDP 2.0 API Documentation

5775 questions
25
votes
24 answers

How Long Does it Take to Learn Java for a Complete Newbie?

I have absolutely no programming experience but need to learn Java - enough to take a J2ME fasttrack course. I only have 10 weeks. Can I do this? What's your advice about the best resources I can use ?(currently using Sun's Java Tutorials).
semba
25
votes
3 answers

Exploitable Java functions

This question is similar to Exploitable PHP Functions. Tainted data comes from the user, or more specifically an attacker. When a tainted variable reaches a sink function, then you have a vulnerability. For instance a function that executes a…
rook
  • 66,304
  • 38
  • 162
  • 239
22
votes
3 answers

Reading an inputStream all at once

I have developed a j2me application that connects to my webhosting server through sockets. I read responses from the server using my own extended lineReader class that extends the basic InputStreamReader. If the server sends 5 lines of replies, the…
Sujit Agarwal
  • 12,348
  • 11
  • 48
  • 79
21
votes
7 answers

How to filter an array in Java?

How can I filter an array in Java? I have an array of objects, for example cars: Class: public class Car{ public int doors; public Car(int d){ this.doors = d; } } Use: Car [] cars = new Cars[4]; cars[0] = new Car(3); cars[1] =…
hsmit
  • 3,906
  • 7
  • 34
  • 46
21
votes
2 answers

J2ME Polish Application icon defaulting

I have a problem in a J2ME Polish app where basically we have 2 icons showing for the app (the menu icon and the in-app icon that shows up top). If I compile with a single icon and set it in the build.xml file it loads it to both sides, although…
Gonçalo Vieira
  • 2,249
  • 2
  • 19
  • 39
20
votes
11 answers

Error: Cannot run program "jar": CreateProcess error=2, The system cannot find the file specified

When I run my BlackBerry project in Eclipse, I get the following error: Error: Cannot run program "jar": CreateProcess error=2, The system cannot find the file specified How is this caused and how can I solve it?
jeevamuthu
  • 2,054
  • 4
  • 19
  • 33
20
votes
6 answers

Is there a good J2ME IDE?

Is there a good J2ME IDE? I mean something lightweight, and portable. Something that can run what you program on it. My favorite Java IDE is JCreator Lite. Is there something like that for J2ME? Also, which would you say is the best J2ME IDE?
William
  • 8,630
  • 23
  • 77
  • 110
20
votes
4 answers

Image rotation algorithm

I'm looking for an algorithm that rotates an image by some degrees (input). public Image rotateImage(Image image, int degrees) (Image instances could be replaced with int[] containing each pixel RGB values, My problem is that i need to implement it…
Stefano Driussi
  • 2,241
  • 1
  • 14
  • 19
20
votes
1 answer

Blackberry Push Implementation and waiting for acknowledgement

I already implemented the first 4 steps of the push initiator for blackberry Send a push request BlackBerry service returns a response BlackBerry service pushes data to an assigned, specific port on device Device returns response to BlackBerry…
Farid Farhat
  • 2,300
  • 1
  • 16
  • 29
19
votes
6 answers

Java Http Client to upload file over POST

I'm developing a J2ME client that must upload a file to a Servlet using HTTP. The servlet part is covered using Apache Commons FileUpload protected void doPost(HttpServletRequest request, HttpServletResponse response) { …
Clark Ku
  • 491
  • 2
  • 7
  • 10
19
votes
3 answers

Java obfuscation - ProGuard/yGuard/other?

This is along similar lines as these recent questions: Best Java Obfuscation Application For Size Reduction Creating non-reverse-engineerable Java programs However, one ends up recommending yGuard and the other ProGuard but neither mention both. I…
roryf
  • 29,592
  • 16
  • 81
  • 103
18
votes
3 answers

How to convert StringBuffer to InputStream in Java ME?

I'm new in Java and learning Java ME development. I got stuck in this conversion. Please help me to convert StringBuffer to InputStream. Thanks!
masiboo
  • 4,537
  • 9
  • 75
  • 136
17
votes
8 answers

Develop Blackberry apps using native API or J2ME?

We're about to build a Blackberry application but would love some input on whether to implement using J2ME (MIDlet based) or Blackberry native (UIApplication). I understand some of the tradeoffs. J2ME will be more flexible if we want to port the…
Eric
  • 193
  • 1
  • 1
  • 6
17
votes
1 answer

Convert from RSAPrivateCrtKeyParameters / RSAKeyParameters to PEM in J2ME

I'm developing some cryptography on BlackBerry, and we're working with certificates. We use BouncyCastle Lightweight API instead of RIM api to apply the cryptography, but in the lightweight API PEMWriter doesn't work (Well, it isn't included because…
Bertofer
  • 770
  • 6
  • 18
17
votes
8 answers

Logging in J2ME

What logging solutions exist for j2me? I'm specifically interested in easily excluding logging for "release" version, to have a smaller package & memory footprint.
Asaf R
  • 6,880
  • 9
  • 47
  • 69