|
I have included point 2 in my question (I accidentally omitted this when I was writing the question), but thanks for pointing that out.
I should add that I used VC++ to create the header, which would explain the namespace and the pragma.
Also, I have numerous packages inside this application, and I have read that you should make the package of the wrapper to be the same as your package, which is a bit confusing, since I have quite a lot of packages.
PS, I have just now removed the System namespace, and still gives the same error as described in the question.
|
|
|
|
|
I still do not think that your CPP code should be included in a namespace; also you have a #pragma statement in your source which should be removed. You have defined your C function inside two different classes in your java source, and then tried to call it from the wrong class (it belongs to class TestProgram ).
RossouwDB wrote: I should add that I used VC++ to create the header, which would explain the namespace and the pragma.
I don't see how this statement holds true; the header file should be created by the javah command. I just tried a sample and it did not include any namespace information.
The best things in life are not things.
|
|
|
|
|
Richard MacCutchan wrote: I don't see how this statement holds true;
Your quite right. TestVC_OmniIDE was done using VC++, thus giving the pragma and namespaces.
Richard MacCutchan wrote: it belongs to class TestProgram
This seems to have been the problem.
I have found a fix, thanks to your help.
This is what I had done that resulted in the error
I created this "TestProgam" to test everything out, and have immediately put the code into my big application (which is not TestProgram).
This explained the error that I have received. After reading what you said above, I ran TestProgram.java and it worked.
Now, I will convert this "TestProgram" to a class (or maybe a separate .jar) and use this within my big application, which should work.
Thanks again for your help, it is much appreciated!
Kind regards,
Rossouw
|
|
|
|
|
Happy to help, and glad you found a solution. Good luck with your main project.
The best things in life are not things.
|
|
|
|
|
how do i enhance web service security using java netbeans
|
|
|
|
|
Please, ask your question once only.
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
|
Apart from the basics of providing a link - it's easy just clickity - this site is 7 years old and out of date. There's a much more reliable source of Java goodness here[^].
Panic, Chaos, Destruction. My work here is done.
Drink. Get drunk. Fall over - P O'H
OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer
Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett
|
|
|
|
|
is here. web services in java netbeans[^]
And please - I know that complete sentences also exist in the English language. Try to at least explain on what you're working and what your goal is.
You will have to build your Services and Applications after development to deploy them to a Webserver.
Netbeans is your IDE, the Webserver a complete separated thing. You can secure the Webserver - but I won't recommend to secure the webservice you're using with Netbeans for development.
regards Torsten
I never finish anyth...
|
|
|
|
|
|
kindly help me how to lock a folder with java code
|
|
|
|
|
What do you mean by "lock"?
The best things in life are not things.
|
|
|
|
|
|
Probably be easier and faster to find an OS command and use Runtime.exec.
|
|
|
|
|
I want to develop analytics application in java. Can somebody help me with how to start, what should looking into interms of technology and example codes.
Thanx
|
|
|
|
|
This question is impossible to answer in a technical forum, as it pertains more to system design than programming. If you need help learning Java then I would suggest you start here[^].
The best things in life are not things.
|
|
|
|
|
To start of, write down:
- What is it that needs to be analysed?
- How/where will this information come from?
- How does it need to be displayed, i.e., do you need graphs or charts, or is a simple spreadsheet
sufficient
- Who needs the information, this will indicate the level of analyses required, i.e., for a high
level person, the information needs to be well analysed and formatted, if it is for auditing
purposes, then you might not want to analyse the data at all (rather pass it on to the auditors
and let them take care of it)
- Is there a schedule required, or is it only once off?
- How should the results be accessed, from the web, emailed, posted, etc. (You should probably dump
the results in a pdf format, in which case you can have a look a iTextSharp - I love this
library!!!
- After you have received the results, does the person reading the results require it to be
modified, i.e, If I change this value, what would the effects be in 5 years time?
- How important is speed? This will be determined by when the analyses should be done, if it is a
nightly batch job, then speed is not that important, anything else, speed is important.
- The program itself, is a console application sufficient, or should it look pretty? If prettiness
is a factor, look at WPF or Silverlight (depending on whether it is web-based, or standalone).
This will also indicate the speed/performance.
- Do you need additional hardware, such as a more powerful server that can take the processing
punch
This is all I can think of, but based on what you provided, this would be a good place to start.
Based on your assessment - or, requirements analysis - you should then look at technology.
|
|
|
|
|
I developed a project in Eclipse. There are 2 java classes in my project. One of them is Server.java and the other one is Client.java. In order to run Client.java, I have to run Server.java firstly. When I creating an executable jar file, should I set the order that I mentioned above? I want when I click on the exe file firstly Server should run and then Client. Any suggestions?
Thanks..
|
|
|
|
|
Set up a 3. class to start the party.
Add a Thread[^] and let the client start 5 sec. after the server.
regards Torsten
I never finish anyth...
|
|
|
|
|
In server.java make use of Runtime.getRuntime.exec(command) to execute client.java
|
|
|
|
|
I need a program like "offline explorer".
I could get someone to help me do this.
|
|
|
|
|
I recommend to ask Larry Page and Sergey Brin. They do this all the time - it's called Google. A fantastic website where you can enter "offline browsing freeware"[^]. The result is amazing!
regards Torsten
I never finish anyth...
|
|
|
|
|
Thank you for the help, but I want to source code a Java program that acts like offline explorer.
|
|
|
|
|
Ah - now we are talking about software development.
what's your skills? Any ideas about which tools to use?
regards Torsten
I never finish anyth...
|
|
|
|
|
I recommend two pieces of flint and some kindling.
|
|
|
|