Skip to content

Commit

Permalink
Failed attempts to get example running
Browse files Browse the repository at this point in the history
  • Loading branch information
Neurogami committed Jan 19, 2011
1 parent db5e7bd commit 91c5f45
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions examples/FlickrBrowser/src/main.rb
@@ -1,18 +1,20 @@
require 'pp'
require 'rbconfig'
require 'java'

$LOAD_PATH << File.dirname(__FILE__)
$LOAD_PATH << File.expand_path( File.join( File.dirname(__FILE__), '..', '..', '..', 'lib') )
require 'foxtrot.jar'
warn File.dirname(__FILE__)
$LOAD_PATH << File.expand_path( File.join( File.dirname(__FILE__), 'build', 'classes') )
$CLASSPATH << 'build/classes'
warn "$LOAD_PATH = \n#{$LOAD_PATH.pretty_inspect}"

require 'foxtrot.jar'

Dir.glob(File.expand_path(File.dirname(__FILE__) + "/**")).each do |directory|
$LOAD_PATH << directory unless directory =~ /\.\w+$/ #File.directory? is broken in current JRuby for dirs inside jars
end


require 'rbconfig'
require 'java'
require 'manifest'


Expand Down

0 comments on commit 91c5f45

Please sign in to comment.