Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

javah problem?



Hi, I have PB project for building RXTX jar file and jni library
I have some problem with generating headers for jni library

here is some details:

java file:

package gnu.io;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.IOException;
import java.util.TooManyListenersException;
import java.lang.Math;
/*
import javax.comm.SerialPort;
import javax.comm.SerialPortEventListener;
import javax.comm.UnsupportedCommOperationException;
import javax.comm.SerialPortEvent;
*/

import javax.comm.*;

/**
* An extension of javax.comm.SerialPort
* @see javax.comm.SerialPort
*/

final public class RXTXPort extends SerialPort{
...
}

javah failed:
javah -jni -d Headers/ -classpath /System/Library/Frameworks/JavaVM.framework/Home/lib/ext/ comm.jar:build/jcl.jar gnu.io.RXTXPort gnu.io.RXTXCommDriver

Error: Class gnu.io.SerialPort could not be found.

but if I uncomment

import javax.comm.SerialPort;
import javax.comm.SerialPortEventListener;
import javax.comm.UnsupportedCommOperationException;
import javax.comm.SerialPortEvent;


everything is fine

Note: PB compiles successfully in both cases.
I have this problem starting from December Developer Tools, javah from Jaguar Developer Tools have exactly the same problem
as I understand there isn't any problem with javah on other platforms

thanks
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: JavaSound recording? (From: aNt <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.