Top.Mail.Ru
June 14th, 2006 - Java developers — LiveJournal
? ?

Java developers

June 14th, 2006
 

03:53 pm - Imagecurious_tiger - Eclipse question

I'm a newbie...please don't be too mean.

I've just started using Eclipse. Sometimes, I'll build a project and then run it as an application, and everything works fine. Sometimes (like my current project), when I go to [context menu] > Run As > Java Application, I get a message "Searching for main types," and then a dialog box which says "Run Type." Since I've just told Eclipse I want to to run my code as an application, I don't understand why the dialog box comes up. Also, I don't know what to do with the dialog box, so, my code won't run. :-(.
Image

04:43 pm - Imagebanana - Obfuscated Java

There's just over a month to run on the Imagejava_dev obfuscated Java contest. So far there's been only one entry, and that was from me.

Come on, everyone else! I'm sure that at least some of you can write bad Java code.

As a suggestion for easy obfuscation, just doing bad layout is quite entertaining:
      public
  class    Silly
{            public
           static
         void
     main(
  String
args[]           ){
System         .out
 .println  (Silly.
     class);}}
 

05:53 pm - Imagecurious_tiger - System.out.println question

I've noticed that it's not allowed to put System.out.println comments at the beginning of classes, like:
public class MyClass {
   System.out.println("at the beginning of MyClass, where the instance varaibles are defined.")

}

System.out.println works fine if it's in a method, just not at the beginning of a class. Can someone please explain to me why this is?
Powered by LiveJournal.com
Image