jME in BlueJ

Hi

Can anybody tell me how to use jMonkey Engine in BlueJ?Please

Thanks

It's highly recommended to go with an IDE such as eclipse or netbeans, as BlueJ is really there when you first are learning java.



HOWEVER, if you wish to continue, I tried this myself and managed to get JME2.0 running. I had some headaches from some files not being compiled for some reason, but I have a feeling that was due to me when trying to set up this procedure.



Anyways, check out the JME project from the repository, ie you can use Tortoise SVN to check out JME2.0 to some folder within Explorer (if you use Windows).


  1. Click Project -> Open Non-BlueJ… -> The folder that contains the JME project source files (-just- the src folder. you can rename it if you'd like as this will become your blueJ project). This will take some time to load up, just wait a bit.


  2. Before we get anywhere with it, we're going to have to set-up our library path stuff. I'm sure there are multiple ways, since BlueJ has a userlib folder for libraries (as well as where you can set where your library folders are). What you can do (and which I did), is within your project folder (the folder that contains the JME project), create a new folder with the name "+libs". Now go through all the .jar files in the JME Project lib folder, copy them all into the +libs folder, minus any native files. Next, copy the native files into your root project folder.


  3. Compile & run. Actually, this was a bit easier than what you'd have to do in eclipse I found out, but BlueJ is a bit unwieldy with such a huge project (although it's interesting to see it displayed graphically). I also noted that after you run code, you're going to have to clear the terminal window (go to options, or ctrl+k), else you'll get an error saying the native files were loaded in a different classloader if you try and run something else.



    Also in conclusion, apparently there's a plugin for BlueJ/netbeans that allows a nice transition between the two, might be useful if you use BlueJ?

I don't understand

What exactly

the first part

1) Click Project -> Open Non-BlueJ... -> The folder that contains the JME project source files (-just- the src folder. you can rename it if you'd like as this will become your blueJ project). This will take some time to load up, just wait a bit.


... That is a step-by step guide. Unless he is describing buttons that are actually not there, I do not think it can be explained much simpler. Cannot verify this guide as I do not use BlueJ myself and do not want to install just for this purpose.

I think one of the reasons that you have not received much replies here is that few people seem to use BlueJ here. Perhaps you should also try using Eclipse as the community would be more easily able to offer advice.  Or perhaps run through some Java books to get a bit more comfortable with the language and more experienced with your IDE of choice?

Good luck dude :)
Mindgamer said:

1) Click Project -> Open Non-BlueJ... -> The folder that contains the JME project source files (-just- the src folder. you can rename it if you'd like as this will become your blueJ project). This will take some time to load up, just wait a bit.


... That is a step-by step guide. Unless he is describing buttons that are actually not there, I do not think it can be explained much simpler. Cannot verify this guide as I do not use BlueJ myself and do not want to install just for this purpose.

I think one of the reasons that you have not received much replies here is that few people seem to use BlueJ here. Perhaps you should also try using Eclipse as the community would be more easily able to offer advice.  Or perhaps run through some Java books to get a bit more comfortable with the language and more experienced with your IDE of choice?

Good luck dude :)


I tried to be as specific as possible, I don't use BlueJ and downloaded just to see if I could do it. Now...by the first part? I was sparse on the getting the project from the project repository...as that's not within scope of the procedure (just search for it on these forums, or the internet).

Maybe a less wordy procedure would be better? I find something broken down into a simple laundry list to be better than what I originally posted (so thats my fault I guess). Basically its this:

1) Get the JME1.0 or JME2.0 project from the project repository. Search the forums on how to do this if you need to. Extract the "src" folder and rename it if you'd like, it will become your BlueJ project. Open it in BlueJ.

2) Setup library paths:
2.1) Create folder "+libs" within the top level of the "src" folder from step 1.
2.2) Copy and paste all the .jar files within the "lib" folder from the JME project into "+libs"
2.3) Copy and paste all the native files (ie .dll for windows, .os for mac?, etc) from the "lib" folder into the top level of the "src" folder from step 1.

Note: Different library files may be in different folders within the "lib" folder. Make sure you get all of them.

3) Compile and run one of the test applications.

Really, the only complex thing that may not be obvious (and I had to look it up too) is setting up the library paths, but if you've used the BlueJ IDE before and know how to checkout projects from a version control system, then everything else is trivial.

Now if you have problems understanding all of that, then most likely you should rethink diving into JME and gain more experience in your IDE and in java in general first, to re-iterate what mindgamer suggested.

it is possible to use it in greenfoot?

I know this is an old thread, but I just happened to come across it and I believe I have a good solution for the BlueJ IDE.



My own project – Env3D (http://env3d.org) is a simplified Java 3D Engine based on JavaMonkey and BlueJ. If you visit the Env3D website, download and extract the software, you’ll find that it comes as an empty BlueJ project.



If you open this empty project in BlueJ, you’ll have access to all of the JMonkey’s libraries. You can then follow the JMonkey tutorials.



Of course, if you are learning Java for the first time, I would suggest using the Env3D environment to start :slight_smile: