Results 1 to 6 of 6
- 04-25-2010, 10:16 AM #1
Member
- Join Date
- Apr 2010
- Posts
- 3
- Rep Power
- 0
C:\Program is not recognized as an internal or external command...
Hello,
I'm trying to create a native library header file to run a DLL in Java NetBeans, but when I put the path to NetBeans,
C:\Program Files (x86)\NetBeans 6.0\bin\javah.exe -o etc.
I get:
C:\Program is not recognized as an internal or external command, operable program, or batch file.
I'm no good at command line environments and have a feeling there is some very basic problem here, but I can't seem to find it:S I'm not even sure if the problem is in the rest of the command line I wrote. Any help would be appreciated!
With many thanks,
Hugh
- 04-25-2010, 01:52 PM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 04-25-2010, 04:49 PM #3
Member
- Join Date
- Apr 2010
- Posts
- 3
- Rep Power
- 0
Thanks for the reply:) What I'm trying to do is actually run a LabView program from LabView. It's the first time I deal with DLLs and I'm having some trouble. I have the LabView DLL but now I'm trying to call it using JNI. I'm using this tutorial NetBeans
To create a native library header file, they say to type the following at the console (in my case the command prompt):
<JAVA_HOME>\bin\javah.exe -o HelloWorldNative.h -jni
-classpath <PROJECTS_ROOT>\HelloWorld\build\classes helloworld.Main
Where JAVA_HOME is the location of NetBeans and PROJECTS_ROOT is the location of the HelloWorld test program in Java. So I followed the instructions exactly but got this error. So now I'm stuck... Although from the looks of the error it seems as if I wrote something wrong at the command prompt, which is very likely...
Hugh
- 04-25-2010, 04:54 PM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Ok, can you post your complete error message that you comes with, on the output console in NetBeans.
- 04-25-2010, 07:04 PM #5
Member
- Join Date
- Apr 2010
- Posts
- 3
- Rep Power
- 0
I don't have any error on the NetBeans console! This command line is typed on the Windows command prompt and in the first message I wrote the error I was getting.
This might all turn out to be a command line error that has nothing to do with Java! I have no idea, but I can't continue until this works...
Thanks,
Hugh
- 04-26-2010, 04:45 AM #6
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Are you sure that relevant executable is in the correct folder location?
Similar Threads
-
'java' is not recognized as an internal or external command,Please Help
By xseahawksx in forum New To JavaReplies: 6Last Post: 05-10-2011, 04:32 PM -
Java is not recognized as an internal or external command
By david1995 in forum New To JavaReplies: 12Last Post: 11-25-2010, 06:55 AM -
javac not recognized as an internal or external command
By kotoko in forum New To JavaReplies: 28Last Post: 10-26-2010, 04:39 AM -
javac is not recognized as internal or external command, operable program or batch...
By ashin in forum New To JavaReplies: 8Last Post: 11-18-2008, 09:21 AM -
'cmd' is not recognized as an internal or external command
By thelukestir in forum New To JavaReplies: 6Last Post: 07-30-2008, 03:50 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks