Alice Community  

Go Back   Alice Community > General Discussion > Questions and Comments

Reply
 
Thread Tools Display Modes
who can help me
Old
edward
Guest
 
Status:
Posts: n/a
Default who can help me - 03-25-2009, 09:44 PM

i opened Alice code with using eclipse, but the result is that the Alice code doesn't have some packages, i also can't compile Alice code to be exe one. i reviewed above comments, some friends said the Alice code is complete, but why i got this result, if you know the reason, please contact me and help me, thanks.
   
Reply With Quote
Old
DrJim
Guest
 
Status:
Posts: n/a
Default 03-26-2009, 03:18 PM

Quote:
Originally Posted by edward View Post
...some friends said the Alice code is complete ...
I suggest you ask your friends what they actually mean by "the Alice code." There is a lot in the "Alice source" package - including a CMU specific mathematical package (which looks very nice, but basically is undocumented). In addition, there seems to be a mixed use of the Java swing package and some other (probably earlier generation) graphics tools - which is also hard to decipher.

Personally, I can't figure it out at all.
   
Reply With Quote
i'm confused
Old
edward
Guest
 
Status:
Posts: n/a
Default i'm confused - 03-26-2009, 07:57 PM

There is a lot in the "Alice source" package - including a CMU specific mathematical package (which looks very nice, but basically is undocumented). In addition, there seems to be a mixed use of the Java swing package and some other (probably earlier generation) graphics tools - which is also hard to decipher.

Personally, I can't figure it out at all. [/QUOTE]

hi DrJim,
sorry, i can't understand your reply very well, you means there are packages in Alice source code, however, why can't i compile it.
i got many error reports in eclipse when i tried to do that.
i reviewed everybody's reply, aikmin said the code is complete open, i'm confused, if the code is open, we could learn form it and compile it, but some people can't do that like me.
i'm not good at JAVA, so if i said something wrong, please forgive me, i alway think all members in Alice design are great persons, they gave all children a great gift, my nephew is very interest in Alice, i learn Alice for him.
   
Reply With Quote
Old
DrJim
Guest
 
Status:
Posts: n/a
Default 03-27-2009, 08:32 AM

Quote:
Originally Posted by edward View Post
...why can't i compile it?
I'm afraid I'm no help on the "how to compile" question - or on Eclipse, for that matter.

At a very abstract level, for a set of .java files to compile successfully, it has to be complete. That is to say all the files for "include", "implements", "extends", etc. must be present in the project folder or referenced - correctly - by their long file name. That part of the "Java source" posting I've never figured out - not that I've spent a lot of time trying. I have enough problems just setting up the CLASSPATH correctly.

The Alice code and the CMU packages are also very complicated and short on comments - hence trying to run Javadoc doesn't seem to work (maybe someone more expert than me can describe how to do it). My first suggestion would be to look in more detail at the error messages you get when trying to compile.

If you really want to continue to try to compile the code, I suggest you see if someone locally can help you. It's really going to be a matter of solving a nearly endless set of small problems with details. As an earlier posting said, the files posted probably get you 90%+ there - but the last 10% is going to be hard. It has been done - but only by a handfull of people outside of CMU.
   
Reply With Quote
Thank you, DrJim
Old
edward
Guest
 
Status:
Posts: n/a
Default Thank you, DrJim - 03-29-2009, 07:21 PM

Thank you, DrJim, thank you for your suggestion. now i have a clear idea about Alice code, i don't have ability to solve those problems, but i will still waite for sharing your development.
   
Reply With Quote
Old
zonedabone
Senior Member
 
zonedabone's Avatar
 
Status: Offline
Posts: 577
Join Date: Nov 2008
Location: In the interwebs
Default 07-08-2010, 02:05 PM

First off, year ago BUMP!

Ok. I opened the alice source download in netbeans, and got a ton of errors, but I haven't yet opened up the alice jar file in netbeans. I'll try it tonight when I get on my desktop of painful slowness.


'Apple Macintosh' - An anagram of 'Complaints Heap'

M.A.C.I.N.T.O.S.H. - Machine Always Crashes, If Not, The Operating System Hangs.

You're *such* a mac person.
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 05-07-2011, 10:48 PM

Hey zone, how did that go anyway?
   
Reply With Quote
Old
arty-fishL
Senior Member
 
arty-fishL's Avatar
 
Status: Offline
Posts: 1,878
Join Date: Mar 2008
Location: In the corner of your eye
Lightbulb 05-08-2011, 10:15 AM

Although this probably wont help - through the use of jython scripting in Alice you can directly call a function from any class in the Alice java code. This means you can also extend classes (I find this easier to do in jython than in java) to do your bidding. To see the direct source code you can use a decompiler on the alice.jar file. These jython scripts then need a way of executing when Alice starts, this I have also worked out how to do.

Unfortunately they run in a different scope to the scripting in Alice worlds and unfortunately the Alice developers made most of their usefull variables either private or protected, which makes it near impossible to access already initiated classes. But after many hours of hard grafting and deliberation I managed to finally find one static function that gives me access to nearly everything.

This is the not nearly as dirty, messy or risky to do as modifying the source code. It also takes much less time to dowload and insert this code, so expect something from me soon, I am already very far into working on it, its just I dont want to reveal what "it" is yet.

I would like to make clear that this modifies things which are already running, not the source code before it starts.


█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█
█░░▓░░░░░░░▓░░░░░░░░░░░▓▓░░▓░░░░░░▓░░░▓░░░░█
█░▓░▓░▓▓▓░▓▓▓░▓░▓░░░░░░▓▒▒░░▒░░▓▓░▓▓▓░▓▒░░░█
█░▓▓▓▒▓▒▒▒░▓▒▒▓▓▓▒▓▓▓░▓▓▓░░▓░░░▓▒▒▓▒▓▒▓▒░░░█
█░▓▒▓▒▓▒░░░▓▓░░▒▓▒░▒▒▒░▓▒▒░▓▓░▓▓▒░▓▒▓▒▓▒░░░█
█░▓▒▓▒░▒░░░░▒▒▓▓▓▒░░░░▓▓▒░░░▒▒░▒▒░░▒░▒▓▓▓░░█
█░░▒░▒░░░░░░░░░▒▒▒░░░░░▒▒░░░░░░░░░░░░░░▒▒▒░█
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█

I have mostly moved on from Alice, but may still respond to messages if important [¬º-°]¬
   
Reply With Quote
Old
arty-fishL
Senior Member
 
arty-fishL's Avatar
 
Status: Offline
Posts: 1,878
Join Date: Mar 2008
Location: In the corner of your eye
Question 05-08-2011, 06:43 PM

Post removed by request


█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█
█░░▓░░░░░░░▓░░░░░░░░░░░▓▓░░▓░░░░░░▓░░░▓░░░░█
█░▓░▓░▓▓▓░▓▓▓░▓░▓░░░░░░▓▒▒░░▒░░▓▓░▓▓▓░▓▒░░░█
█░▓▓▓▒▓▒▒▒░▓▒▒▓▓▓▒▓▓▓░▓▓▓░░▓░░░▓▒▒▓▒▓▒▓▒░░░█
█░▓▒▓▒▓▒░░░▓▓░░▒▓▒░▒▒▒░▓▒▒░▓▓░▓▓▒░▓▒▓▒▓▒░░░█
█░▓▒▓▒░▒░░░░▒▒▓▓▓▒░░░░▓▓▒░░░▒▒░▒▒░░▒░▒▓▓▓░░█
█░░▒░▒░░░░░░░░░▒▒▒░░░░░▒▒░░░░░░░░░░░░░░▒▒▒░█
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█

I have mostly moved on from Alice, but may still respond to messages if important [¬º-°]¬

Last edited by arty-fishL; 05-09-2011 at 03:14 AM.
   
Reply With Quote
Old
unimpeccable
Junior Member
 
Status: Offline
Posts: 1
Join Date: Jan 2009
Location: Adelaide, Australia
Default 05-20-2011, 11:44 AM

I'm doing a project of integrating a robot's control into Alice. The project is at:
http://code.google.com/p/finch-robot-with-alice/

I'm posting up a source code explanation (slowly...) as well on the project wiki for the parts that I modified. Anyone interested is welcome to it. I'd be happy to help personally as well if required.

For just running Alice from Eclipse, Alice 2.2 source code runs directly by setting the following VM arguments in the Run configuration:

-Dpython.home=jython-2.1
-Dpython.path=jython-2.1/Lib/alice

and placing the required folders in the correct path. (Basically you need the 'src' folder to be in the 'Required' folder when it runs.)

Last edited by unimpeccable; 09-07-2011 at 05:26 AM. Reason: Updates
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.