I have some big problem. It will be a bit complex situation. I have 3 java projects, A, B and C. Projects A and C.B as a .jar file, that means, the B Act as a library for A and C projects. What I want to do, I want to get a function from a Java file in a project and use it in the C file in the CJ project without the C file in the Java file. The only way to connect between these two projects is through the project. Can someone help me solve this? Let me give an example:
There is aa.java in Project A, and there is a function in it:
Private steady Boolean keyballing = false; Public static bullion iskeyBlocking () {key return; } I want to import this function into C project in cc.java without wanting to import C project without this AA Java. I hope this example helps in understanding my question.
If I understand your question correctly, then you want to use it from one project To add the project without any project / jar.
This is not possible. In your scenario, you have a general project (assistant / utility), which is linked to both projects A and C.
You may want to get the current class 'AA Java' / P>
** "I want to get the function from any Java file in a project and use it in the C file in the Java file Without the java file to use the "C ++"
without using the "Java" import file, you can use it directly without importing it as below.
If the package is 'com.app.test', the class AA is Java.
Use of Import:
Import com.app.test.AA
Public Zero Certain Methods ()
{
A.A.SCICblocking (); }
Without importing:
// no import < / P>
Public Zero Certain Methods ()
{
com.app.test.AA.iskeyBlocking (); }
No comments:
Post a Comment