Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Built in compiler can't find J2ME method
icon9.gif  Built in compiler can't find J2ME method [message #506780] Sat, 09 January 2010 17:26 Go to next message
Eclipse UserFriend
Hi,

I've just started porting a fully working J2ME app from WTK+J2ME Polish to J2ME3+LWIUT and I'm having an odd problem with Eclipse.

I started with a fresh install of the latest version of Eclipse off the website earlier today, a fresh install of J2ME 3 and then I installed the MTJ through eclipse.

I then imported the code and resources from my project (but not the project/build files) and began looking around. To my surprise Eclipse informed me that "The method writeDouble(double) is undefined for the type DataOutputStream". Same goes for String.equalsIgnoreCase() and DataInputStream.readDouble(). The Javadoc for J2ME 3 assures me they are there, as does CAVAJ. In a possibly unrelated error, one of my class files produces the following error on Line 1 "Internal compiler error: java.lang.NullPointerException at org.eclipse.jdt.internal.compiler.ClassFile.initializeDefaul tLocals(ClassFile.java:6937) "

Compliance level is set to 1.3 and .class compatibility to CLDC1.1.

If I want to use something from java.util I seemingly always get two identical options in the add import window, which may be related.

Any idea what's going wrong here, I'm no Eclipse guru!

Thanks,
Mark
Re: Built in compiler can't find J2ME method [message #506841 is a reply to message #506780] Sun, 10 January 2010 17:47 Go to previous messageGo to next message
Eclipse UserFriend
Le 2010-01-09 17:26, Mark a écrit :
> I then imported the code and resources from my project (but not the
> project/build files) and began looking around. To my surprise Eclipse
> informed me that "The method writeDouble(double) is undefined for the
> type DataOutputStream". Same goes for String.equalsIgnoreCase() and
> DataInputStream.readDouble(). The Javadoc for J2ME 3 assures me they are
> there, as does CAVAJ. In a possibly unrelated error, one of my class
> files produces the following error on Line 1 "Internal compiler error:
> java.lang.NullPointerException at
> org.eclipse.jdt.internal.compiler.ClassFile.initializeDefaul
> tLocals(ClassFile.java:6937) "
Could you please open a bug report against JDT/Core that includes all
versions used in your test case, a reproducable test case (ideally the
source of the class that has the problem on line 1) and a description on
how to reproduce the issue.

Thanks,

Olivier
Re: Built in compiler can't find J2ME method [message #508206 is a reply to message #506841] Sun, 17 January 2010 11:20 Go to previous messageGo to next message
Eclipse UserFriend
Sorry for the delay, unexpectedly away on business! I've raised a bug for the API problem (299872) but can't recreate the internal compiler failing on line 1.

In fact, I renamed the .java file - created a new file with the original name, copied the contents and it didn't happen.
Re: Built in compiler can't find J2ME method [message #508207 is a reply to message #508206] Sun, 17 January 2010 11:21 Go to previous messageGo to next message
Eclipse UserFriend
Mark wrote on Sun, 17 January 2010 16:20
Sorry for the delay, unexpectedly away on business! I've raised a bug for the API problem (299872) but can't recreate the internal compiler failing on line 1.

In fact, I renamed the .java file - created a new file with the original name, copied the contents and it didn't happen.


Oh - I just deleted the original, renamed file and the error promptly reappeared on the new file. I shall investigate further...
Re: Built in compiler can't find J2ME method [message #508210 is a reply to message #508207] Sun, 17 January 2010 12:00 Go to previous message
Eclipse UserFriend
Right, I've raised bug 299880. I couldn't recreate the same error but it's something to do with LWUIT and the preverifier.

In my recreation attempt I managed to get preverifier errors when using the LWUIT but the same code (which uses LWUIT) does not cause the internal compiler error on line 1.
Previous Topic:Eclipse JDBC Tomcat 6.0 - java.lang.ClassNotFoundException: org.apache.tagl
Next Topic:Eclipse 3.5 Keeps Crashing on Vista 64bit While Editing Java Code
Goto Forum:
  


Current Time: Wed Mar 26 08:16:50 EDT 2025

Powered by FUDForum. Page generated in 0.02895 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top