Results 1 to 6 of 6
  1. #1
    HughTh is offline Member
    Join Date
    Apr 2010
    Posts
    3
    Rep Power
    0

    Default 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

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by HughTh View Post
    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,
    Can you please elaborate this bit more. What you are going here with Java?

  3. #3
    HughTh is offline Member
    Join Date
    Apr 2010
    Posts
    3
    Rep Power
    0

    Default

    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

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Ok, can you post your complete error message that you comes with, on the output console in NetBeans.

  5. #5
    HughTh is offline Member
    Join Date
    Apr 2010
    Posts
    3
    Rep Power
    0

    Default

    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

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. Replies: 6
    Last Post: 05-10-2011, 05:32 PM
  2. Replies: 12
    Last Post: 11-25-2010, 07:55 AM
  3. Replies: 28
    Last Post: 10-26-2010, 05:39 AM
  4. Replies: 8
    Last Post: 11-18-2008, 10:21 AM
  5. Replies: 6
    Last Post: 07-30-2008, 04:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •