473,326 Members | 2,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Error when building J2ME application

TheMan1
19
Hi all, I get the following error when building a J2ME app:

C:\Documents and Settings\xpd\j2mewtk\2.5.2\apps\Test\src\MyTest.ja va:86: for-each loops are not supported in -source 1.3
(use -source 5 or higher to enable for-each loops)
Something's obviously wrong with the Java version. I have Java 1.6.0_05 installed, though. I had an older version of Java installed previously, if that matters.

How do I fix this error?
Oct 25 '08 #1
5 1953
JosAH
11,448 Expert 8TB
You're using an old compliance setting; if you're using Eclipse navigate to:
Project>Properties>Java Compiler and set the level to 1.6. Otherwise, do as
the error message suggested and use the "-source 6" or "-source 5" command
line flag setting.

kind regards,

Jos
Oct 25 '08 #2
TheMan1
19
You're using an old compliance setting; if you're using Eclipse navigate to:
Project>Properties>Java Compiler and set the level to 1.6. Otherwise, do as
the error message suggested and use the "-source 6" or "-source 5" command
line flag setting.

kind regards,

Jos
I'm using ktoolbar to compile the app. How do I do it in there?
Oct 25 '08 #3
JosAH
11,448 Expert 8TB
I'm using ktoolbar to compile the app. How do I do it in there?
I don't know I never used it; read its user manual?

kind regards,

Jos
Oct 25 '08 #4
TheMan1
19
The documentation doesn't contain anything about it. Anyone got an answer?
Oct 25 '08 #5
JosAH
11,448 Expert 8TB
The documentation doesn't contain anything about it. Anyone got an answer?
What about the suggestion given by the error message iself? i.e. put in "-source 5"
at your command line?

kind regards,

Jos
Oct 26 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Sveta | last post by:
Hi, all! I am new with J2ME. I have application that has form with 2 commands (exit and select). All UI uses are high level API, and it is very important to leave it high-level. This...
0
by: Erica A Ramsey | last post by:
I get the following proguard error: java.io.IOException: The output jar is empty. Did you specify the proper '-keep' optons? Any idea what is wrong? Thanks, earamsey ------- actual ant...
3
by: pei_world | last post by:
I am doing a project with Client/Server. on the server I have C# Windows application on the Client I want to use J2ME, //============ question is if it is possible to make them communication...
0
by: jacksteele | last post by:
I have written a j2me application using IBM device developer that runs on the palm 1550. I am able to store the data into the database on the palm. I am having problems sending that data in a...
0
by: rameshpi | last post by:
iam developing a j2me application.i want to maintain a local database on pocket pc 2003(mobile device).how can connect pocket access from j2me application?
2
by: mayankcdac | last post by:
Hi i am a new guy in j2me field i am working in j2me gaming but i want to switch from gaming to application. i am facing some problems to build j2me application can any one give me any source code(...
3
by: nickyeng | last post by:
I have a j2me application which will be tested on motorola and sony ericsson phone. the j2me application will loads a image PNG format 6.36kb in size and length is 146x38 pixels ON startup for...
0
by: eliseo | last post by:
Hello, I want to make the same application : python Serveur and J2me Client whit ssl socket. I would like to know if you have solved the problem? Can you show me the final version of python...
5
by: rpradeepa | last post by:
Hi, im getting this type of error in midlet program package javax.microedition.midlet does not exist package javax.microedition.io doaes not exist Welcomeform.java:4: package...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.