Posted by Helge Fredriksen
at 2010-08-31 11:44
There, finally sat down and found out that yeah, I needed that QtJambi setup in IntelliJ to be able to work on the java part of the project. Also, IntelliJ has a pretty nice way of setting up all modules and dependencies in the code, so it's also useful for giving a QtJambi newcomer a good overview of how the project is built up. At least on the java part of it... For c++ devs I recommend opening the java.pro file in the QtCreator.
I've pushed the setup files into a new directory called IDE-setup on the 4.7 repo and put a HOWTO in the IntelliJ subdirectory. Have a look here
First, you need to build the project. Have a look at http://qt.gitorious.org/qt-jambi/pages/BuildingFromGit for help with that.
- Open the project in IntelliJ
- Open up the settings for the project with the keyboard shortcut ctrl-alt-shift-S
- Go to Project -> Project SDK and change to the location of the Java SDK you want to use.
- Go to Libraries -> ant and ensure that you have the right location for ant.jar (detach/attach the jar)
- Now, it should be possible to compile the java files using ctrl-F9
- You could also setup the Launcher class in the example module as a run target. Here's a descripton on how to do that:
- Open up the run configuration (Run -> Edit Configurations in the menu)
- Main class: com.trolltech.launcher.Launcher
- Use classpath and JDK of module: examples
- This should bring up the example app upon shift-F10!
So, now we're just waiting for someone to fill in with the Eclipse setup, the KDevelop setup, etc.
← Back to blog blog comments powered by Disqus
← Back to blog