*Thank you very much Elias : with your suggestion it is working fine.*

Just last query:

Currently, I called *static method* of my java class: 

package reversebinding; 

public class RBinding { 
  public static String getStringFromJava() { 
          return "Hello from java !!"; 
     } 
 } 


*Now, I want to create object of this class in go and want to call method 
using that object from go. *

I was checking your proposal (https://github.com/golang/go/issues/16876) 
but could not able to make it. :(
Can you please help me , how to do that?

*Thanks*.


On Wednesday, September 11, 2019 at 4:36:20 PM UTC+5:30, Elias Naur wrote:
>
> On Wed Sep 11, 2019 at 3:51 AM Jay Sharma wrote: 
> > 
> > 
> > I have one doubt when we build using gomobile in that I am giving the 
> > classpath to my .class java file. 
> > *Will it be included in .aar or I have to include that .class file along 
> > with .aar in my android application. * 
> > 
>
> The class file is not automatically included, that wasn't clear from my 
> earlier 
> reply. Please include the class file in your project and try my suggestion 
> to 
> call your code from Java. 
>
> -- elias 
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/a486225f-f2f9-49d3-856c-11495c8dce78%40googlegroups.com.

Reply via email to