Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sat Dec 14, 2019 3:36 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Java MBS plugin and Snow Leopard
PostPosted: Tue Jun 22, 2010 5:40 pm 
Offline

Joined: Sat Aug 29, 2009 7:08 pm
Posts: 7
Im not a java programmer but i need to "Import" a java Class into a RB project.
Acording to the Class Example provided by MBS , my code is


dim f as FolderItem=GetFolderItem(".../Javaxxx.jar")
vm=new JavaVMMBS(JNI_VERSION_1_4, options, f, false)..(also with Version 1_6)

dim jclass as JavaClassMBS
jclass=vm.FindClass(ClassName Full pakage path)....

The JavVMMBS is correctly initialized, but the method FindClass always returns NIL.
I compiled the Java Class with Eclipse and xcode also, using the organizer, since the example provided my MBS is deprecated in mac snow leopard (JAM is deprecated....)
I need to compile my rb project for Mac OS AND Windows, so Eclipse should be fine


I can't find any tutorials from MBS but the database tutorial, any suggestions?
Lorenzo


Top
 Profile  
Reply with quote  
 Post subject: Re: Java MBS plugin and Snow Leopard
PostPosted: Wed Jun 23, 2010 4:27 am 
Offline

Joined: Mon Jul 24, 2006 4:06 am
Posts: 274
Have you asked Christian? I know that the Java classes work because I use them myself. But I'm not in front of my computer so I cant't check my code.

Trixi

_________________
Mit freundlichen Grüßen/Regards

Trixi Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals


Top
 Profile  
Reply with quote  
 Post subject: Re: Java MBS plugin and Snow Leopard
PostPosted: Wed Jun 23, 2010 5:05 am 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
Asking by email is better because I don't look into forums every day.

Your path for FindClass can be wrong. Or your jar archive needs stuff which is not found.
Also be aware that we can't use Java GUI stuff in REALbasic.

Greetings
Christian

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


Top
 Profile  
Reply with quote  
 Post subject: Re: Java MBS plugin and Snow Leopard
PostPosted: Wed Jun 23, 2010 3:25 pm 
Offline

Joined: Sat Aug 29, 2009 7:08 pm
Posts: 7
Thanks Beatrix, Thanks Christian.
Christian, actually it was a matter of file path.
I had to copy my jar file in the application directory , instead of using a folderitem absolute path.

Greetings
Lorenzo


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group