Results 1 to 7 of 7
Thread: dll
- 03-29-2011, 11:46 AM #1
Member
- Join Date
- Mar 2011
- Posts
- 6
- Rep Power
- 0
dll
Hello everybody,
I'm writing a java netive interface for 2 weaks now and i have a question.
I have a piece of cod that will not compile!
When I tray te compile I get the error: can not find symbol
I'm writing the cod for using an interfaceboard. The function 'request' is for making comunication with te interface board. I think that something is wrong with this peace. The cod is standing here:
class ECoSControl {
private native void print();
public static void main(String[] args) {
new request(1, view);
new release(1, view);
new set(1, go);
}
static {
System.loadLibrary("ECoSControl");
}
}
Is there somebody who know the problem?
tom
- 03-29-2011, 12:01 PM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Make sure you import all the classes that your code is dependent on and you make them available on the classpath during compilation and execution.
- 03-29-2011, 05:16 PM #3
Member
- Join Date
- Mar 2011
- Posts
- 6
- Rep Power
- 0
Hallo,
Thanks for your reaction!
What do you exactly main, can you please better explain of give a example in my script???
tom
- 03-29-2011, 05:23 PM #4
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
An example? Let's say there is a class called request (bad name for a class BTW better would have been Request), let's further say that the class is in a package called the requestpackage.
The class ECoSControl which uses the request class should have a line that says
before the class declaration.Java Code:import requestpackage.request;
Of course if you still don't understand all this you should get Oracle's Java tutorial and read it from page 1.
- 03-29-2011, 05:34 PM #5
Member
- Join Date
- Mar 2011
- Posts
- 6
- Rep Power
- 0
hallo,
thanks for information,
I think that I know what you mean,
tom
- 03-29-2011, 05:51 PM #6
Member
- Join Date
- Mar 2011
- Posts
- 6
- Rep Power
- 0
Hallo everybody,
I stil have a question about it, the information about "riquest" is still standing in de .Dll, or not?????
tom
- 03-29-2011, 06:22 PM #7
Member
- Join Date
- Mar 2011
- Posts
- 6
- Rep Power
- 0
let me tell you my situation:
I have a interfaceboard, and i want te write a java program te make them work.
I have a .dll file, and a minual who say what i have te say to the dll file.
For example: making conection. That can with te function Request(1, view)
The problem is now, i have te write a Java netive interface to talk to mij dll, or not??
This is the way i have to walk, or not?
tom


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks