Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


Eclipse only shows java EE not java SE


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 Jeffige   Members   -  Reputation: 113

Like
0Likes
Like

Posted 12 August 2012 - 06:39 PM

When I open Eclipse in the upper right hand corner it only shows java EE, not java SE & it only gives me the option to start a java EE project not a java SE one. I had to re-download and install eclipse. Be for i had a problem and had to uninstall it would allow me to start a new java SE project.

Can any help me get coding again?

Thank you for any help.

Sponsor:

#2 MoroS84   Members   -  Reputation: 233

Like
0Likes
Like

Posted 13 August 2012 - 03:31 AM

Hi Jeffige.

You should have an "add perspective" button in the same upper right corner (a icon of a window with a small yellow plus sign). Click it. This will open the "Open perspective" window. Choose "Java (default)" (or just "Java" sometimes) and you're back in the Java SE perspective. The new project options should adapt nicely. Alternatively you can do the same from the menu:
Window -> Open perspective -> Other... (if the options stated above are not listed) -> Java (default).

Hope this helps. :)
Regards,
MoroS84

#3 Jeffige   Members   -  Reputation: 113

Like
0Likes
Like

Posted 13 August 2012 - 11:53 AM

Man, thank you!


I couldn't figure it out. I can't believe it was something so simple. Thanks for the help. If you don't mind: When I start a new java>project - src>new class, how can I keep the add
[source lang="java"]public static void main(String[] args)[/source]


so I don't have to check it every time?

Thanks for the help.

#4 MoroS84   Members   -  Reputation: 233

Like
0Likes
Like

Posted 14 August 2012 - 05:33 AM

Hello again.

I didn't see an option like that anywhere. Maybe it's because that when you do a project, you should have only one class with the main() method, so basically: yes, you have to check them every time.

However, since you're using Eclipse, then you have some code templates built in (other Java IDEs have them too of course). You can use that to add the main() method a bit faster. When you have a class open, you just have to type "main" in the line, where you want the main() method to appear and press Ctrl+Space (Cmd+Space on a Mac if I remember correctly) and press Enter (choosing the first option from the window that'll appear: "main method").

Edited by MoroS84, 14 August 2012 - 05:34 AM.

Regards,
MoroS84




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS