question about the current source

4 views
Skip to first unread message

Aaron McLeod

unread,
Oct 4, 2009, 9:38:05 AM10/4/09
to redcar...@googlegroups.com
Hey, just downloaded the source off github. I noticed some of the commit messages refer to using swt. Is the jvm core on the repository so I can check it out? I actually tried running the swt_example under the scrapbook directory, but ran into require errors :(. Im using windows at the moment, so im probably just missing something.

--
Aaron McLeod
http://agmprojects.com

Mat Schaffer

unread,
Oct 4, 2009, 2:24:12 PM10/4/09
to redcar...@googlegroups.com
Did you get a copy of java-mateview? Not sure if dan's master references that yet, but that's probably the best place to start. I haven't worked on the main redcar repo in a little while so I could be wrong there. Maybe Dan has some ideas as well.
-Mat

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Redcar" group.
To post to this group, send email to redcar...@googlegroups.com
To unsubscribe from this group, send email to redcar-edito...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/redcar-editor?hl=en
-~----------~----~----~----~------~----~------~--~---


Daniel Lucraft

unread,
Oct 4, 2009, 2:27:33 PM10/4/09
to redcar...@googlegroups.com
Hi

the current head of Redcar works on JRuby with SWT, but about all it
does is draw a window currently. If you are interested in getting it
working and helping with development, you can post the errors you are
getting here and we'll try to help. Though I don't think there are any
of us running on Windows regularly.

best,
Dan
_______________________________
Daniel Lucraft

twitter.com/danlucraft
danlucraft.com/blog

Aaron McLeod

unread,
Oct 4, 2009, 4:08:08 PM10/4/09
to redcar...@googlegroups.com
I wish I knew more of ruby/jruby to help with its development. I more or less just wanted to try it out, and I happened to be on my desktop at the time, where I am running windows 7. I have the C ruby version of redcar on my laptop which i have a dual boot of win 7 and ubuntu. 

I was browsing through and found the swt_example.rb under redcar/scratchpad/swt/. When i try to run it, I receive an error in the require line.

line 2: no such file to load -- plugins/application_swt/lib/application_swt/swt_wrapper

The file is there, double checked to be sure. So i'm not sure on that one. If theres source in the repo that I can build and test, id be happy to.

Mat Schaffer

unread,
Oct 5, 2009, 9:37:33 AM10/5/09
to redcar...@googlegroups.com
Yeah, I'm not sure just what's the right thing to run in the redcar base right now. If you clone my version of java-mateview, you should be able to get the tests running with "buildr" (you'll need to install that first, of course).
-Mat

Daniel Lucraft

unread,
Oct 5, 2009, 9:43:51 AM10/5/09
to redcar...@googlegroups.com
>>
>> I was browsing through and found the swt_example.rb under redcar/
>> scratchpad/swt/. When i try to run it, I receive an error in the
>> require line.
>>
>> line 2: no such file to load -- plugins/application_swt/lib/
>> application_swt/swt_wrapper
>>
>> The file is there, double checked to be sure. So i'm not sure on
>> that one. If theres source in the repo that I can build and test,
>> id be happy to.

Are you running the example from the root of the project?

D
_______________________________
Daniel Lucraft

twitter.com/danlucraft
danlucraft.com/blog




Aaron McLeod

unread,
Oct 5, 2009, 3:45:58 PM10/5/09
to redcar...@googlegroups.com
PS C:\redcar> jruby .\scratchpad\swt\swt_example.rb
plugins/application_swt/lib/application_swt/swt_wrapper.rb:24:in `require': no s
uch file to load -- plugins/application_swt/lib/application_swt/../../vendor/swt
/windows/swt (LoadError)
        from plugins/application_swt/lib/application_swt/swt_wrapper.rb:24
        from plugins/application_swt/lib/application_swt/swt_wrapper.rb:2:in `re
quire'
        from .\scratchpad\swt\swt_example.rb:2
PS C:\redcar>

Tried that using powershell (so i could actually copy the output, have trouble doing that with source forge's console2)

Mat Schaffer

unread,
Oct 7, 2009, 3:31:12 PM10/7/09
to redcar...@googlegroups.com
Yeah, I get this too. I'm guessing there's some magic that Dan is using and/or hasn't pushed yet. I'm still trying to get java-mateview's buildfile sorted out, but once I get done there I'll see what I can figure out on redcar proper.
-Mat

Daniel Lucraft

unread,
Oct 7, 2009, 3:32:50 PM10/7/09
to redcar...@googlegroups.com
Hi,

you need to download the windows swt jar from eclipse.org/swt and put
it in plugins/application_swt/vendor/swt/windows/

best,
Dan
_______________________________
Daniel Lucraft

twitter.com/danlucraft
danlucraft.com/blog




Aaron McLeod

unread,
Oct 7, 2009, 3:55:22 PM10/7/09
to redcar...@googlegroups.com
That worked, also had to change the require path in the swt_example.rb file. Just added ../../ so it would search for the plugin directory in the root of the downloaded repository.
Reply all
Reply to author
Forward
0 new messages