Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Unresolve Symbol

Reply
Thread Tools

Unresolve Symbol

 
 
tonyd62246@aol.com
Guest
Posts: n/a
 
      05-14-2005
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)

Regards,

Tony

 
Reply With Quote
 
 
 
 
Rhino
Guest
Posts: n/a
 
      05-14-2005

<> 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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
(Encryption Package) error: cannot find symbol symbol: class BaseNCode clusardi2k@aol.com Java 6 08-29-2012 08:33 PM
Why ":symbol" failed but 'symbol' successed with JRuby 1.0.3? Song Ma Ruby 2 07-20-2008 04:08 AM
Symbol PDT8146 + 3Com 3CRGPOE10075 Dennis Capulong Wireless Networking 0 10-14-2005 07:44 AM
what's differnece between #ifdef symbol and #if defined(symbol) baumann@pan C Programming 1 04-15-2005 08:25 AM
Wierd symbol in Thunderbird Nuke Firefox 0 11-19-2004 09:58 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57