Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-01-2008, 08:41 AM
Member
 
Join Date: May 2008
Posts: 3
officialhopsof is on a distinguished road
cannot find symbol symbol : class Item location: package platypos.services.order
Well, I am having a few problems getting this java file to compile.


/home/brandon/Desktop/platypos/services/order/Seat.java
Code:
package platypos.services.order; import platypos.services.order.Item; import java.util.Vector; public class Seat { private int _number; private Vector<Item> _items = new Vector<Item>(); public static void main(String args[]) { System.out.println("Hello"); } }
here is my terminal session:
Code:
brandon@Aspire5100:~$ javac /home/brandon/Desktop/platypos/services/order/Seat.java /home/brandon/Desktop/platypos/services/order/Seat.java:17: cannot find symbol symbol : class Item location: package platypos.services.order import platypos.services.order.Item; ^ /home/brandon/Desktop/platypos/services/order/Seat.java:23: cannot find symbol symbol : class Item location: class platypos.services.order.Seat private Vector<Item> _items = new Vector<Item>(); ^ /home/brandon/Desktop/platypos/services/order/Seat.java:23: cannot find symbol symbol : class Item location: class platypos.services.order.Seat private Vector<Item> _items = new Vector<Item>(); ^ 3 errors
/home/brandon/Desktop/platypos/services/order/Item.java is packaged as follows
Code:
package platypos.services.order;
and has been successfully compiled to Item.class in the same directory.

I am using the latest JDK on Ubuntu 8.04
I am a bit more skilled in C++ and am trying to learn java, anyone got any clues as to what I am doing wrong?

Thank you
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-01-2008, 09:00 AM
Zosden's Avatar
Senior Member
 
Join Date: Apr 2008
Posts: 386
Zosden is on a distinguished road
check to make sure all the paths are correct
__________________
My IP address is 127.0.0.1
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 05-01-2008, 09:05 AM
Member
 
Join Date: May 2008
Posts: 3
officialhopsof is on a distinguished road
I've checked and double checked, and frankly I am perplexed.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 05-01-2008, 09:30 AM
Member
 
Join Date: May 2008
Posts: 3
officialhopsof is on a distinguished road
javac -cp /home/brandon/Desktop /home/brandon/Desktop/platypos/services/order/Seat.java

that worked for me, that classpath thing is a pain : )
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Programm Error: cannot find symbol Help? junix New To Java 2 12-10-2007 06:30 AM
cannot find symbol class error po0oker New To Java 5 10-31-2007 03:52 PM
Error: cannot find symbol silvia New To Java 1 08-07-2007 06:39 AM
Error: cannot find symbol cachi AWT / Swing 1 08-06-2007 09:12 PM
Error: cannot find symbol constructor zoe New To Java 1 07-24-2007 09:24 PM


All times are GMT +3. The time now is 06:18 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org