麻烦的设置JNI项目在OS X [英] Trouble setting up JNI project on OS X

查看:107
本文介绍了麻烦的设置JNI项目在OS X的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在关注这个( http://www.bogotobogo.com/cplusplus/eclipse_CDT_JNI_MinGW_64bit .PHP )教程建立一个JNI项目我工作的一个C ++ / Java项目。我一直有一些麻烦,虽然它的工作。我遵循的步骤,当我尝试建立我的makefile,我得到一个错误:没有类在命令行上指定尝试-help。

I've been following this (http://www.bogotobogo.com/cplusplus/eclipse_CDT_JNI_MinGW_64bit.php) tutorial for setting up a JNI project for a c++ / java project I'm working on. I've been having some trouble getting it working though. I followed the steps and I'm getting an error when I try to build my makefile: "No classes were specified on the command line. Try -help".

我检查,如果我的路径是在环境中设置的,它是没有,所以我将它设置为/ usr / bin中。我不知道如果这是正确的但这样就可能成为问题。此外,当我打开我唯一的C ​​++文件,Eclipse不承认任何的保留字(所有文字为黑色)。

I checked if my path was set in environment and it wasn't, so I set it to /usr/bin. I'm not sure if that's right however, so that may be the issue. Also, when I open my only c++ file, Eclipse doesn't recognize any of the reserved words (all the text is black).

我知道我的职位是有点模糊,但有人可以帮助我弄清楚是怎么回事?我是比较新的OS X和eclipse所以我迷路了。我将提供你们要求的任何信息。

I know my post is a bit vague, but can someone help me figure out what's going on? I'm relatively new to OS X and eclipse so I'm lost. I'll provide any information y'all ask for.

推荐答案

我想通了这个问题。一个在我的makefile的线条是不正确的,我试图访问一个不存在的类文件。

I figured out the issue. One of the lines in my makefile was incorrect, I was trying to access a nonexistant class file.

这篇关于麻烦的设置JNI项目在OS X的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆