i getting used to Eclipse platform(IDE)
i cant run a simple application
it says..
> "Editor does not contain main type"
what am i suppsoed to do here?
tnx a lot!:o
Printable View
i getting used to Eclipse platform(IDE)
i cant run a simple application
it says..
> "Editor does not contain main type"
what am i suppsoed to do here?
tnx a lot!:o
Hello chronoz13,
Glad you are giving Eclipse a try :D
I think you are getting this error message because your code does not contain the main method?
Try including the main method and let me know what happens.Code :public static void main (String[] args){ //code here.. }
selection does not contain a main type ... T_T.
ahh i got it sir java. i just tying to use it like JCreator
even i didnt declared a package . i can mange to run it by just simply declaring public static void main
then System.ou.print..so on..
its not as easy a JCreator..
hmm got a little trouble here ahaha
anyway i can still run a simple application..ahaha
i think i should go out first with JCreator.. ahaha eclipse is really complicated.. but i know someday ill be using Eclipse too.
i have school mates thats using the same IDE like eclipse..
i just need to use JCreator first.. to get familliar with basics... T_T,
Eclipse has really good error handling and debugging features. You will notice that when Eclipse doesn't like something, a red line will appear under the code. Hold your mouse over it and a box will popup telling you the error aswell as suggestions for fixing it.
Go with whatever IDE feels best for you. :)
tnx sir java.. anyways about eclipse ... what does "package" means?
coz i never use to encounter it in JCreator.. specially in making a simple application such as "hello world" app.
A package is basically the location of your current Java classes.
You create packages so you can keep all your projects nice and tidy. You do not have to declare a package though as you can use the default package. This places all your projects in the same directory.
All you need to do is give your package a name and add your classes to the package. Its very simple, especially after you do it a couple of times.
Did you read that tutorial link I sent you? If you follow it exactly you will be able to create a simple 'Hello World' application easily.
http://www.javaprogrammingforums.com...plication.html
I know you think Eclipse is a lot more complicated than JCreator but it really isnt. Its like anything - Once you do it a few times it becomes second nature :)