Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (533)
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  
  libGDX + IntelliJ = :(  (Read 5173 times)
0 Members and 1 Guest are viewing this topic.
Offline Screem
« Posted 2013-09-22 00:52:43 »

Sooo I've recently switched from Eclipse to IntelliJ IDEA because (I feel) IntelliJ is much better. Cheesy But one thing might make me move back to Eclipse: it's freakin' hard to make a libGDX project in IntelliJ.

I followed the instructions to make a libGDX project in IntelliJ and it worked. But to do that for every libGDX project takes waaaay too much time. I tried to use the one libGDX project as a base and import that project as a new project but it didn't copy over any of the modules (Android, Desktop, and Main). Also, it's not written how to make the iOS module.

For anyone who uses IntelliJ and libGDX: Please help. Sad This IDE works wonders better than Eclipse and looks nicer too (Darcula theme FTW Grin) and I'd hate to have to switch back to Eclipse because of this. Thanks in advance!

Offline namrog84

JGO Ninja


Medals: 46
Projects: 4


Keep programming!


« Reply #1 - Posted 2013-09-22 03:19:23 »

Does this not work?

http://www.jetbrains.com/idea/webhelp/importing-eclipse-projects-into-intellij-idea.html


"Experience is what you get when you did not get what you wanted"
Offline Screem
« Reply #2 - Posted 2013-09-22 04:05:05 »

Kind of - but not really. The assets folder isn't linked and I can't import the HTML and iOS modules (the HTML problems are probably because I didn't setup any of the GWT stuff Tongue). But if I can get the assets folder working, that's a muuuuch faster way to get everything setup; despite not having iOS.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ReBirth
« Reply #3 - Posted 2013-09-22 04:43:44 »

Seriously, get Eclipse Smiley

Offline opiop65

JGO Kernel


Medals: 153
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #4 - Posted 2013-09-22 04:47:17 »

Not everyone loves eclipse though... I personally hate the themes on eclipse, they never just look right, but I love eclipse in general. I've heard a lot of fanfare surrounding IDEA though, so I might check it out.

I don't know how to link assets to a project in IDEA, but I imagine Google knows.

Offline namrog84

JGO Ninja


Medals: 46
Projects: 4


Keep programming!


« Reply #5 - Posted 2013-09-22 07:25:49 »

What about following along in
https://code.google.com/p/libgdx/wiki/IntelliJIDEALibgdx


It mentions in #12
Link the assets between Android module and Main module:
Make a run configuration for the DesktopStarter and set the Working directory to be the Android/assets directory.
OR
Create a directory named data in the main module, and make a sym-link from the assets directory in the Android module.

They both work fine.  Also if you scroll down, it can show you how to make a sym-link at http://matsemann.com/host/libgdx/symlink.png

Also look into "Artifacts" with IntelliJ

"Experience is what you get when you did not get what you wanted"
Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #6 - Posted 2013-09-22 09:29:35 »

I tried IDEA a couple days ago. It's disorienting coming from Eclipse, but in less than 10 minutes I had libgdx running (by importing Eclipse projects and then fixing up a few issues). I like the idea of having more and fancier completions and other smarts, I just can't get over how ugly the Swing stuff is. Also the IDE is a bit slow. Some stuff I do is annoying in IDEA or even impossible, such as run configuration specific classpaths.

Offline Cero
« Reply #7 - Posted 2013-09-22 18:01:53 »

I personally hate the themes on eclipse, they never just look right, but I love eclipse in general. I've heard a lot of fanfare surrounding IDEA though, so I might check it out.
Yeah exactly. Performance and Themes were my interest too. I heard stuff about better completion and stuff, but haven't seen it so far.

I tried IDEA a couple days ago. It's disorienting coming from Eclipse, but in less than 10 minutes I had libgdx running (by importing Eclipse projects and then fixing up a few issues).
Did the same but gave up within those 10 minutes of meddling with the imports/assets/project settings. i mean I dont really NEED another IDE so that little annoyance was enough Cheesy

Also the IDE is a bit slow. Some stuff I do is annoying in IDEA or even impossible, such as run configuration specific classpaths.
Well those things are pretty much killing my enthusiasm, especially considering I wanted IDEA to be FASTER, not slower.

Also I like to raise the question: Isn't the eclipse compiler "better" than the stock jdk javac ?

Offline Jimmt
« League of Dukes »

JGO Kernel


Medals: 128
Projects: 4
Exp: 3 years



« Reply #8 - Posted 2013-09-22 18:21:21 »

http://stackoverflow.com/questions/3061654/what-is-the-difference-between-javac-and-the-eclipse-compiler
So, uh, eclipse compiler lets you run a program with code that isn't properly compiled as long as you don't touch that piece of code.
Offline Screem
« Reply #9 - Posted 2013-09-22 18:26:02 »

@namrog
Thanks! I used the working directory method that last night and it worked wonderfully.

I love Eclipse. I've used it for over two years now. But there were too many minor issues that piled up and made me want to switch. I'm still not 100% certain I want to stick with IntelliJ, though, since Eclipse has more support.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Cero
« Reply #10 - Posted 2013-09-23 02:35:11 »

http://stackoverflow.com/questions/3061654/what-is-the-difference-between-javac-and-the-eclipse-compiler
So, uh, eclipse compiler lets you run a program with code that isn't properly compiled as long as you don't touch that piece of code.
Ah yes right.
Debug hot swapping - its very useful, changing code on the fly, especially positioning stuff

Offline opiop65

JGO Kernel


Medals: 153
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #11 - Posted 2013-09-23 02:47:13 »

Hot swapping is possibly one of those things that would prevent me from switching IDEs. Such a useful feature. Plus, I just started learning all the keyboard shortcuts and I dont want to learn new ones!

Offline ReBirth
« Reply #12 - Posted 2013-09-23 03:45:02 »

Come in right time. Now go give Mario big hug and French kiss.

Offline opiop65

JGO Kernel


Medals: 153
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #13 - Posted 2013-09-23 03:51:18 »

Yet again ReBirth, you just gave me another what the hell moment! Smiley

Offline ra4king

JGO Kernel


Medals: 336
Projects: 2
Exp: 5 years


I'm the King!


« Reply #14 - Posted 2013-09-23 03:52:51 »

@opiop65
Whoa hey, hot-swapping is a JVM feature, not Eclipse feature. IntelliJ IDEA supports hot-swapping.
IntelliJ IDEA also has support for Eclipse's compiler.
Lastly, to hammer another nail in Eclipse's coffin for you, you can set IntelliJ IDEA's keymap to Eclipse's (which is what I've done).

Smiley

Offline opiop65

JGO Kernel


Medals: 153
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #15 - Posted 2013-09-23 03:56:31 »

It is isnt it? I kept thinking that the JVM supported it while I was writing that post, but I didnt bother looking it up!! Now I look stupid oops Smiley
And yeah I can remap the keys but then I don't have a good reason to stay with eclipse so I'll just pretend you didn't just tell me that Wink

Offline relminator
« Reply #16 - Posted 2013-09-23 03:59:45 »

I would have switched to IDEA if it's not sooo darm slow.
Offline gimbal

JGO Knight


Medals: 25



« Reply #17 - Posted 2013-09-23 09:46:14 »

I'm not going to voice an opinion about what IDE is better (because I find getting emotionally attached to a piece of software quite useless), but it is worth to investigate the features of the JVMs debugger. I even set it up to be able to debug a Maven build, and to hook into the debugging environment of not my own IDE but that of a coworker. In stead of having to walk over to his computer, I can just make the IDE connect a debugging session to his environment and he can trigger the breakpoints to show me in my own IDE what is happening Smiley Mighty useful stuff. Imagine having a web environment running somewhere and the production server is causing problems you are not getting in development; you can hook up a debugger to the production machine and see what is going on. God I love Java.
Offline SHC
« Reply #18 - Posted 2013-09-23 09:50:49 »

For me:

1  
2  
3  
4  
5  
6  
7  
LibGdx + NetBeans = null
LibGdx + IntelliJ = null
LibGdx + Eclipse  = null

LWJGL + NetBeans = null
LWJGL + IntelliJ = null
LWJGL + Eclipse  = NaN


cause I've never tried LibGdx. I didn't like NetBeans. I can't buy IntelliJ. I can happily use Eclipse, yay!

Offline ra4king

JGO Kernel


Medals: 336
Projects: 2
Exp: 5 years


I'm the King!


« Reply #19 - Posted 2013-09-23 10:02:49 »

IntelliJ IDEA community edition is free! The paid version shouldn't have anything you need Smiley

Offline SHC
« Reply #20 - Posted 2013-09-23 10:13:08 »

I may try it in the future. But now, I'm happy with eclipse kepler.

Offline matheus23

JGO Kernel


Medals: 106
Projects: 3


You think about my Avatar right now!


« Reply #21 - Posted 2013-09-23 21:55:38 »

Also the IDE is a bit slow. Some stuff I do is annoying in IDEA or even impossible, such as run configuration specific classpaths.
Well those things are pretty much killing my enthusiasm, especially considering I wanted IDEA to be FASTER, not slower.

Also I like to raise the question: Isn't the eclipse compiler "better" than the stock jdk javac ?

It's much faster for me, that's the main reason I switched from eclipse to IDEA. It seems to be strongly dependent on the system, you have it try it out for yourself. I've got it running in Arch Linux.

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline ra4king

JGO Kernel


Medals: 336
Projects: 2
Exp: 5 years


I'm the King!


« Reply #22 - Posted 2013-09-23 22:33:59 »

Yeah it's incredibly faster than Eclipse for me too.

Offline ReBirth
« Reply #23 - Posted 2013-09-24 04:11:46 »

@opiop65
Badlogicgames hasn't posted about it yet so yeah your only clue is the README. Basically it is command line tool that will generate Eclipse, IDEA, and CLI compatible of libgdx projects. I am in the middle of struggle getting it work, can't wait to see the CLI feature!

Offline pixeduck

Innocent Bystander





« Reply #24 - Posted 2013-09-24 13:03:09 »

I have setup maven to create my libgdx project and except the part on the native library extract from maven dependency, all modules have been integrated smootly in intellij;
I advice anyone to create project from a tool like maven or gradle vs IDE.
Offline elamre

JGO Coder


Medals: 17
Projects: 1


hitar!


« Reply #25 - Posted 2013-09-25 00:35:54 »

i have never been able to get the HTML part working, but everything else is well documented. if you havent fixed the working directorys yet, here is what i always do:
-Run your app once
-Close the app
-Press on the drop down menu with the name of your app on it
-Edit configurations
-change working directory

Works like a charm.
I stumbled upon Intellij once when i was still using eclipse. I found it so much faster and the autocompletion is in a whole different league with intellij.

My projects:
Tower Defence!]http://www.java-gaming.org/topics/iconified/25690/view.html]Tower Defence! [lll.......] 30%!
Lightsnakerider! [llllll....] 60%!
Offline ReBirth
« Reply #26 - Posted 2013-09-26 03:45:52 »

Now pixelduck mentioned it. My previous posted link is libgdx's gradle template.

Offline jrenner
« Reply #27 - Posted 2013-10-08 12:03:25 »

I made a libgdx + IntelliJ  skeleton project on github, you can give it a shot:

https://github.com/jrenner/libgdx-intellij-project-skeleton
Offline boolean

Junior Member


Medals: 1
Projects: 1



« Reply #28 - Posted 2013-10-20 16:30:04 »


I'm so excited for the Gradle template. I gave it a shot running in IntelliJ and it worked first attempt. It's a shame it doesn't have HTML5 support just yet though.
Offline jrenner
« Reply #29 - Posted 2014-01-11 07:47:32 »

GWT (HTML5) support for intelliJ is just now being worked on for the nightlies.
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.

pw (24 views)
2014-07-24 01:59:36

Riven (22 views)
2014-07-23 21:16:32

Riven (18 views)
2014-07-23 21:07:15

Riven (21 views)
2014-07-23 20:56:16

ctomni231 (50 views)
2014-07-18 06:55:21

Zero Volt (45 views)
2014-07-17 23:47:54

danieldean (36 views)
2014-07-17 23:41:23

MustardPeter (39 views)
2014-07-16 23:30:00

Cero (54 views)
2014-07-16 00:42:17

Riven (54 views)
2014-07-14 18:02:53
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

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24: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!