Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (109)
games submitted by our members
Games in WIP (536)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Eclipse help  (Read 913 times)
0 Members and 1 Guest are viewing this topic.
Offline theagentd
« Posted 2011-12-12 12:28:58 »

Hello. I recently switched from Netbeans to Eclipse after Netbeans started memory leaking like there was no tomorrow. I've found most of the functionality I used in Netbeans in Eclipse, but there are still a few things I don't know how to do yet:

 - Is there a profiler for Eclipse? There was a built-in one in Netbeans. It was insanely inaccurate and weird, but it was better than nothing.
 - Can I change the stupid hotkeys? Having F11 for debug and Ctrl-F11 for run seems completely backwards to me.
 - Can I associate file types inside Eclipse? I usually write my shaders inside my IDE (in the basic text editor), but it keeps opening it with Notepad if I just double-click it.
 - Concerning shaders again, is there a GLSL plugin for Eclipse? Are there any good sites/sources for plugins?
 - I'm going crazy on how the run settings work. I have around 30 very small LWJGL test programs, and when I run them for the first time in Eclipse it creates a new run configuration that doesn't have the natives and memory settings specified, so I have to manually add them for every program. If it was just once, then it wouldn't have been a problem, but if I update LWJGL or something I'll have to change them all manually. Can I set all the programs inside a project to use the same run configuration, or at least the same VM commands?

Thanks!

Myomyomyo.
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 75
Projects: 15


★★★★★


« Reply #1 - Posted 2011-12-12 12:39:50 »

- I'm going crazy on how the run settings work. I have around 30 very small LWJGL test programs, and when I run them for the first time in Eclipse it creates a new run configuration that doesn't have the natives and memory settings specified, so I have to manually add them for every program. If it was just once, then it wouldn't have been a problem, but if I update LWJGL or something I'll have to change them all manually. Can I set all the programs inside a project to use the same run configuration, or at least the same VM commands?
Yes, have a read of this tutorial.

- Is there a profiler for Eclipse? There was a built-in one in Netbeans. It was insanely inaccurate and weird, but it was better than nothing.
Eclipse doesn't come with a built in profiler atm, but you can use jvisualvm which is pretty similar to the netbeans one, it comes with the jdk and can be found in the jdk/bin folder.
Offline BoBear2681

JGO Coder


Medals: 18



« Reply #2 - Posted 2011-12-12 14:00:25 »

- Can I change the stupid hotkeys? Having F11 for debug and Ctrl-F11 for run seems completely backwards to me.

Window -> Preferences -> General -> Keys

Quote
- Can I associate file types inside Eclipse? I usually write my shaders inside my IDE (in the basic text editor), but it keeps opening it with Notepad if I just double-click it.

Window -> Preferences -> General -> Editors -> File Associations

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Orangy Tang

JGO Kernel


Medals: 56
Projects: 11


Monkey for a head


« Reply #3 - Posted 2011-12-12 14:51:28 »

- Concerning shaders again, is there a GLSL plugin for Eclipse?

Google says this: http://sourceforge.net/projects/glshaders/

Haven't tried it myself, probably will give it a whirl soon though.

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline theagentd
« Reply #4 - Posted 2011-12-12 16:14:22 »

Awesome! Thanks for the responses! Will try everything out soon, but right now, I gotta BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO!!!!!!!!!!!!!!!

EDIT: I'm too curious for my own good... Kappa, the LWJGL setup tutorial only describes how to set up the LWJGL natives path. I want to specify some VM-commands (-server, some memory and GC stuff) too... T__T

Myomyomyo.
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 75
Projects: 15


★★★★★


« Reply #5 - Posted 2011-12-12 16:25:17 »

EDIT: I'm too curious for my own good... Kappa, the LWJGL setup tutorial only describes how to set up the LWJGL natives path. I want to specify some VM-commands (-server, some memory and GC stuff) too... T__T
Instead of clicking Run, click Run Configurations, you'll see a list of applications on the left, just duplicate one with the settings and change the name of the main class to the one you want to run.
Offline theagentd
« Reply #6 - Posted 2011-12-12 16:35:34 »

EDIT: I'm too curious for my own good... Kappa, the LWJGL setup tutorial only describes how to set up the LWJGL natives path. I want to specify some VM-commands (-server, some memory and GC stuff) too... T__T
Instead of clicking Run, click Run Configurations, you'll see a list of applications on the left, just duplicate one with the settings and change the name of the main class to the one you want to run.
Manually for 30 files...? -_-

Myomyomyo.
Offline Cero
« Reply #7 - Posted 2011-12-12 18:59:54 »

he has a point, its annoying alright, to copy it everytime

I also thought F11 - debug was completely backwards, but I only use debug run - because then you can just change code on the fly, and it works
and if not, just dont, there is no downside
obviously changed the debug view to look nicer

Offline theagentd
« Reply #8 - Posted 2011-12-12 20:03:11 »

Plain run is marginally faster, and it suspends the application on crash instead of terminating it.

Myomyomyo.
Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #9 - Posted 2011-12-12 21:30:43 »

What OS? On Windows you can put the natives in the project root. Otherwise add them to your path.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline sproingie

JGO Kernel


Medals: 202



« Reply #10 - Posted 2011-12-12 21:39:19 »

That's one thing I like about IDEA: template settings.  You set the vm args you want once, and everything you run inherits them.  Once those are set, the keystroke (shift-alt-f10, which I always rebind) is like some kind of Do What I Mean button.  I always grind my teeth a little going back to Eclipse run configurations (which I do because scala support is better in eclipse)

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CogWheelz (15 views)
2014-08-01 22:53:16

CogWheelz (15 views)
2014-08-01 22:51:43

CopyableCougar4 (15 views)
2014-08-01 19:37:19

CogWheelz (19 views)
2014-07-30 21:08:39

Riven (27 views)
2014-07-29 18:09:19

Riven (16 views)
2014-07-29 18:08:52

Dwinin (14 views)
2014-07-29 10:59:34

E.R. Fleming (35 views)
2014-07-29 03:07:13

E.R. Fleming (13 views)
2014-07-29 03:06:25

pw (44 views)
2014-07-24 01:59:36
Resources for WIP games
by CogWheelz
2014-08-01 18:20:17

Resources for WIP games
by CogWheelz
2014-08-01 18:19:50

List of Learning Resources
by SilverTiger
2014-07-31 18:29:50

List of Learning Resources
by SilverTiger
2014-07-31 18:26:06

List of Learning Resources
by SilverTiger
2014-07-31 13:54:12

HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!