rubygame and rawr with rubytet

  7 posts   Feedicon  
Replies: 6 - Last Post: January 28, 2010 03:39
by: hackerkiba
showing 1 - 7 of 7
 
Posted: January 26, 2010 23:10 by hackerkiba
I got this error:

Could not find the main class. Program will exit.

http://download.kibabase.com/windows.zip


I have the two jars. I just have no idea why it is not launching.
 
Posted: January 27, 2010 02:57 by Logan Barnett

Do you have a src/org/rubyforge/rawr/Main.java?

What's your build_configuration.rb look like?

 
Posted: January 27, 2010 03:05 by hackerkiba
Logan Barnett:

Do you have a src/org/rubyforge/rawr/Main.java?



I don't think they're in the windows.zip.

Logan Barnett:

What's your build_configuration.rb look like?


My build configuration:

http://github.com/kiba/rubytet/raw/master/build_configuration.rb
 
Posted: January 27, 2010 03:32 by Logan Barnett

Your project looks partly generated - it's missing the Main.java that lives in src/org/rubyforge/rawr.

Rawr also assumes all of your source for your app goes in src. You've tweaked things appropriately, but the rubytet.rb is also going to give you trouble. If it can't live somewhere besides the root dir of your project (such as app), then we're going to have to explore a solution together.

It's a 3 line file however. Can you create a main.rb under app with those same 3 lines? That should keep disruption from your framework and vice versa.

Make sure main_ruby_file matches the new main.

 
Posted: January 27, 2010 22:41 by hackerkiba
Logan Barnett:


Your project looks partly generated - it's missing the Main.java that lives in src/org/rubyforge/rawr.



The src look like it is placed outside the build directory. It is not win the windows directory or any other.
Logan Barnett:


Rawr also assumes all of your source for your app goes in src. You've tweaked things appropriately, but the rubytet.rb is also going to give you trouble. If it can't live somewhere besides the root dir of your project (such as app), then we're going to have to explore a solution together.

It's a 3 line file however. Can you create a main.rb under app with those same 3 lines? That should keep disruption from your framework and vice versa.

Make sure main_ruby_file matches the new main.


I moved all the top level code to app directory.
 
Posted: January 28, 2010 01:08 by Logan Barnett

Any changes in the output? Make sure to do a jrake rawr:clean before rejarring with moves (:

 
Posted: January 28, 2010 03:39 by hackerkiba
I did not have the chance to test it on a window machine today but as far as I can tell, I am still having trouble.

Also, I renamed app/rubytet.rb to main.rb and update build configuration accordingly. I also include the src directory too since it seem to be getting left out.

I typed the command java Rubytet.jar in the window directory and got this error:

Could not find the main class: rubytet-0.0.7.1/windows/Rubytet.jar. Program will exit.

Here's the new window stuff for window testers: http://download.kibabase.com/windows.zip
showing 1 - 7 of 7
Replies: 6 - Last Post: January 28, 2010 03:39
by: hackerkiba
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120127.ac94057)
 
 
Close
loading
Please Confirm
Close