Solved

"Name".java cannot find symbol, please help!

Posted on 2012-03-09
16
634 Views
Last Modified: 2012-03-09
Greetings again mates,

I am rather back sooner than I had hoped to.

After installing jdk, per for_yan's patient help, I attempted to create a java class and ran into a throve of errors:

here are just a couple:

Name.java:1420: cannot find symbol
symbol  : class czaaddiDat
location: class Name    addiDat = (czaaddiDat)e_czaaddi.nextElement();

And:

.\ParseRec.java:192: warning: [deprecation] Date(int,int,int) in java.util.Date
has been deprecated
   Date CCDDate = new Date(

Most of these errors are repeatitive. So, one fix will fix most of them.

Note: I changed the actual name of the file to just Name.java

Your help is much appreciated
0
Comment
Question by:sammySeltzer
  • 11
  • 5
16 Comments
 
LVL 47

Expert Comment

by:for_yan
ID: 37702927
You need this additional class czaaddiDat

maybe it is in another Java file or in some library which this applocation ois supposed to use
0
 
LVL 47

Expert Comment

by:for_yan
ID: 37702934
>Note: I changed the actual name of the file to just Name.java

Hoep this applies only to your posting

You cannot arbitratly change names of .java files
Its name  should be sthe same as the name of the public class declared in the file
0
 
LVL 28

Author Comment

by:sammySeltzer
ID: 37702936
That's good to know.

Thanks alot again For_Yan.

What about this error?

\ParseRec.java:192: warning: [deprecation] Date(int,int,int) in java.util.Date
has been deprecated
   Date CCDDate = new Date(
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 47

Expert Comment

by:for_yan
ID: 37702941
You have more than one .java file
do you have anywhere inside those declared class
czaaddiDat ?
0
 
LVL 47

Expert Comment

by:for_yan
ID: 37702950
don't worry about warining and deprectaions for now.
you have much more serious problems to sort out
Warnings do not preclude from running appliocation
0
 
LVL 47

Expert Comment

by:for_yan
ID: 37702967
look into each of your java classes.
In each Java class there may be only one class which is declared public and its name would be the same as the name of the .java file
there may be other class decalaraions (they will be just

class ....

not

public class ...


check if you have czaddiDat
among those classes declared in any of your java files
0
 
LVL 28

Author Comment

by:sammySeltzer
ID: 37702974
Ok, I won't worry about the warnings, you are correct.

Yes, the class is in the file called ACSupportCT.java

When I attempted to compile it now, it gives me its own version of symbol error below:

ACSupportCT.java:2367: cannot find symbol
symbol  : class czavdspRec
location: class ACSupportCT
0
 
LVL 47

Expert Comment

by:for_yan
ID: 37702976
do you have any

package ....

statement , as the first line of any of your .java files?

It should be only first meaningfull line
(not counting comments starting wiuth // or enclosed in /*....*/
)
0
 
LVL 47

Expert Comment

by:for_yan
ID: 37702981
how many total .java files you have ?
check if you have any packages declared on top of them ?
0
 
LVL 28

Author Comment

by:sammySeltzer
ID: 37702997
Sorry, what I told you about the class being in another file is wrong.

None of the files has any package declared anywhere at all.

BTW: There are 3 files and they are all .java files.

Will the class have .class or .package extensions?

You can see how very, very rusty I had become with java.

I was fluent when I used to use it in the first place.

Thanks for all your help
0
 
LVL 47

Expert Comment

by:for_yan
ID: 37703003
OK, it is good you don't have packages on top - it is simpler
the compiled class will have .class extensuion
0
 
LVL 28

Author Comment

by:sammySeltzer
ID: 37703013
Ok, great.

So, without them, I cannot compile the files that I have, right?

I suspect also that connection to the DB are declared and defined in one of those classes?

I just took a  look at the top of of one of the files and saw this:

import java.util.Date;
import java.io.*;
import java.sql.*;
/**
 * Base class for a Queue record
 * @version %*%, %G%
 */
public class QueueRec extends java.lang.Object
{
/**
 * CCP Protocol fields
 */

Do these mean anything in terms of the classes we are talking about?
0
 
LVL 47

Expert Comment

by:for_yan
ID: 37703025
You need to have thsis czsaadiDat class from something
0
 
LVL 47

Accepted Solution

by:
for_yan earned 500 total points
ID: 37703117
These are standard - part of JDK - youi don't need anything for them
import java.util.Date;
import java.io.*;
import java.sql.*;

However you need that  czaaddiDat
class and perhpas some aother classes which you haven't yet discovered that they are lacking


You'll also need driver to connect to database.

But these are usaually publcily downoladbale
if you know waht kind of databse you are connectiong

(it should be obvious from your code also)
0
 
LVL 28

Author Comment

by:sammySeltzer
ID: 37703129
ok, thanks again many times.
0
 
LVL 47

Expert Comment

by:for_yan
ID: 37703141
You are always welcome.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Where to store the queries for modification of table 4 61
map related example 6 47
eclipse apache tomcat admin console 52 94
eclipse buid path vs tomcat lib path 10 22
There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now