Unresolve Symbol

T

tonyd62246

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\AcrosticExample.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)

Regards,

Tony
 
R

Rhino

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\AcrosticExample.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 :D\LibClass AcrosticExample.java

Rhino
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top