<> wrote in message
news: ups.com...
> Tried the Netbean sample and received an unresolved symbol.
> /*
> * Main.java
> *
> * Created on May 13, 2005, 8:57 PM
> */
>
> package MyApp;
>
> /**
> *
> * @author Default
> */
> public class AcrosticExample {
>
> /** Creates a new instance of Main */
> public AcrosticExample() {
> }
>
> /**
> * @param args the command line arguments
> */
> public static void main(String[] args) {
> String result = LibClass.AcrosticExample(args);
> System.out.println("Result = " + result);
>
> }
>
> }
> D:\Netbeans_Projects\MyApp\src\MyApp\AcrosticExamp le.java:23: cannot
> resolve symbol
> symbol : variable LibClass
> location: class MyApp.AcrosticExample
> String result = LibClass.AcrosticExample(args);
> 1 error
> BUILD FAILED (total time: 1 minute 3 seconds)
>
I've never used NetBeans but the error indicates that the compiler is
looking for a class named LibClass that contains a method AcrosticExample()
that is expecting a String array as its only argument. You need to put that
class in the same directory as the your program or specify the path to that
class in your classpath when you invoke the compiler.
For example, if your program is in C: and your LibClass class is in D: when
you compile, you will need something like this:
javac -cp

\LibClass AcrosticExample.java
Rhino