View Full Version : Netbeans and Alice 3 - Move and Turn Gallery
jmfhm
11-19-2009, 06:12 PM
Hello,
I am trying to get started with Netbeans and Alice. I have installed the following plugin
Version: 3.0.0.64.1
Source: Alice3ProjectWizard3.0.0.64.1.nbm
Netbeans V6.7.1
When I run the Hello World test file I get this error:
"Can Not find Alice Move and Turn Gallery in its expected location:
/Applications/Programming/Alice/3.beta.0000/gallery"
Specify Actual Gallery Location
I do not have a directory /Applications/Programming nor am I able to find an Alice/.../.../Gallery directory on the system, that I can find.
In my Netbeans Projects Tab, Libraries - I can see the Alice 3 Libraries including the "moveandturn.jar" Hell if I can find them via Finder,Spotlight, or the Terminal
I would appreciate your suggestions, and hopefully a solution as to how to find and set the correct path/setting or whatever needs to be done.
lanceA
11-19-2009, 07:15 PM
The first time I installed Alice 3.0 I did not accept the default directory structure - I very quickly discovered that I should have used the "default" directories.
Did you perhaps make the same error as me and try to change where you wanted Alice 3.0 installed? I corrected the problem by uninstalling Alice and reinstalling it. I now have no problems with Netbeans and Alice 3.0.
jmfhm
11-20-2009, 04:39 PM
Well as far as the installation goes, I downloaded the file:
Alice3ProjectWizard3.0.0.64.1.nbm
and then launched NetBeans and "installed it" as a plugin.
Is that what you did? That may be my problem, I may not have installed the necessary application or component. I did not nor was I prompted to set any paths or default directories that I recall. It was pretty straightforward.
Another possible issue that I am wondering about is that this new version is supposed to include the JOGL files, could this difference be an issue?
I found this other thread, but again I am not seeing the "dist" directory he is referring to, nor the other directories he mentions.
http://www.alice.org/community/showthread.php?t=2824
lanceA
11-20-2009, 05:25 PM
I'm assuming that you haven't visited the Alice Blog site, therefore at this time it might be helpful if you go to that site and read all the info posted there for Alice. 3.0. Dennis & crew did a great job of publishing important information on interfacing 3.0 and Netbeans.
The site is here: http://blog.alice.org/
jmfhm
11-21-2009, 04:26 PM
As a matter of fact I have reviewed the "Installing NetBeans Plugin Screencast" by Dave Culyba more times than I care to admit. No mention is made regarding setting up the gallery. The differences between my set up and his are that I have Netbeans 6.7.1 and he is using 6.7, and I am using 3.0.0.64.1 and he is using 3.0.0.0.59. I initially did not install the Open GL pack as I understood the Alice notes that the Alice plugin includes JOGL to mean that was not necessary. I have since installed the Open GL pack which includes some JOGL files, so I am still concerned about possible version or conflict issues in that regard. Regardless, with or without Open GL pack, that does not affect the issue I am having as far as I can tell.
My issue is simply a matter of setting a path to required resources that I am not able to locate. I can see them in my Project / Libraries in Netbeans, but I can not find them on my system. Netbeans is very specific about what it is looking for: "Please select a directory named "gallery" with a child named "assets" and a grandchild named org.alice.apis.moveandturn.gallery "
This is currently the path where Netbeans is expecting to find them:
/Applications/Programming/Alice/3.beta.0000/gallery
jmfhm
11-24-2009, 01:29 AM
The Alice team has created a great deal of helpful to the point of hand holding tutorials. The extremely straightforward and seemingly no room for misunderstanding screencast "Installing the NetBeans Plugin" had me looking high and low for the missing gallery as I have stated. After all the screencast states, "...... find the Alice NetBeans Plugin, there is only one, so we will download that" 6.3MB file. That should have been a bit of a give away, but....
So for those who get this error and have not downloaded the full approx. 520MB installer depending on your platform, that contains the required resources that you will need.
I created a Programming directory with a subdirectory Alice in my Applications directory (Mac OS X V10.6.2) and moved the unzipped Alice3Beta folder into /Applications/Programming/Alice. Here is the path to org.alice.apis.moveandturn.gallery that I have set up on my system:
/Applications/Programming/Alice/Alice3Beta/gallery/assets/org.alice.apis.moveandturn.gallery
I always appreciate Forums and Communities that offer solutions and constructive dialogue. In that spirit I have provided an example of the kind of answers I find useful. I welcome any additional insights, and certainly any corrections to my comments.
Regarding locating the Alice JAR files for a Project in NetBeans here are the steps I went through:
1) In Netbeans Project Tab, click on the triangle to the left of your file to display the Library folder of your project.
2) Right Click (Mac - Ctrl + Click) on the Libraries folder, and select Properties.
3) The Project Properties window for your Project is opened displaying the "Compile-time Libraries". For my particular project all that is displayed is the Alice3Library. If you highlight/click on the Alice3Library the Edit button becomes active. By clicking on Edit you can view and edit the paths of your Project JAR files, as well as Add additional Libraries and JAR files.
On my system the path to the moveandturn.jar file is:
/Users/account_name/.netbeans/6.7/libs/moveandturn.jar
Note: .netbeans is a hidden directory which can be viewed via the terminal by calling ls -la .
I will pass this thread along to the Alice devs.