apple.scu wrote:
>I want to use some classes of Jar files. So I use the "javac -classpath
>some.jar" to
>compile my java file, and run it in console. It works well. But when I try
>to use Xcode to build and run my app, there are some problems.
>I import the jar files using "add existing files". Then I build it,there is
>no problem. But when I run it, there are some errors. These errors say that
>there are some classes that can not be found.
>I don't kown why this happens.
It probably happens because you aren't copying or merging the other jars
into a place where your program can use them at runtime.
It's as if you linked a native program against a dynamic library, say
cryptlib, then didn't install cryptlib on the target system. The program
needs the library at runtime, not just when it's compiled.
What kind of Java program are you building, a bundled Java app, a Java
tool, or something else?
When you ran your program in Terminal (what you called "console" above),
what 'java' command-line did you use to run it?
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden