How to call java from c#?

How to call java class that is in diffrent location?

  • Hello. I have a problem. I dont know how to call a class in java from second class to the first. For example: I have one class that is in E:/test, and I have a second class that is in E:/text. How I can call the first class in the second class. Thank you

  • Answer:

    If put one of the classes in a package and by using the package keyword at the top of your code: package text; //rest of your code Then in the other one, put this: import text.nameOfClass; You might have to put them in the same directory to work, which I guess kind of defeats the purpose, but that's how you do it. I hope this helped.

Depeche at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.