Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

java compiler processing code following //#?

A friend is having trouble. She has code that has lines that begin with //# and she is claiming that the compiler is reading those lines. It has something to do with properties, she says.

This is J2ME with jdk 1.5.

2 Answers

Relevance
  • 1 decade ago
    Favorite Answer

    The "//" starts a comment line, and "//#" does look like a compiler directive. However, Java doesn't have compiler directives like C++ or other languages. I tried this out on J2SE jdk 1.5 and the compiler ignores it.

    However, there may be third party tools that implement something like this. I found "J2ME Polish" that appears to support these directives: http://www.j2mepolish.org/downloads/j2mepolish-1.2...

  • 6 years ago

    what is a compiler directive?

Still have questions? Get your answers by asking now.