Results 21 to 28 of 28
- 01-16-2010, 08:07 PM #21
Member
- Join Date
- Jan 2010
- Posts
- 10
- Rep Power
- 0
Exactly the same thing :s
Could it be that I haven't isntalled all the required packages for Java on my computer?
Java Code:thegluups@thegluups-laptop:~$ cd / thegluups@thegluups-laptop:/$ javac -cp . media/Hybrid/Documents/Cambridge/ComputerScience/CST1/Java/Tick1/*.java media/Hybrid/Documents/Cambridge/ComputerScience/CST1/Java/Tick1/TestBit.java:8: cannot find symbol symbol : variable PackedLong location: class media.Hybrid.Documents.Cambridge.ComputerScience.CST1.Java.TestBit boolean value = PackedLong.get(currentValue, position); ^ 1 error
- 01-16-2010, 08:12 PM #22
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,588
- Blog Entries
- 7
- Rep Power
- 17
- 01-16-2010, 08:32 PM #23
Member
- Join Date
- Jan 2010
- Posts
- 10
- Rep Power
- 0
Yes, it is in the same folder and I have doubled check that all names are correct. Oddly enough, I now have a class file for SetBit (despite the fact that I never remember compiling it sucessfully), although when I try to run it i get an error message telling me there is no main class.
I have also reinstalled all the required java packages.
I am surprised that someone said it worked under Eclipse... I am now using NetBeans... but am having no such luck
- 01-16-2010, 08:37 PM #24
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,588
- Blog Entries
- 7
- Rep Power
- 17
The fact that you have a SetBit.class file implies that it (SetBit.java) compiled successfully, i.e. the compiler was able to find that PackedLong class because the SetBit class needs it. Something is telling me that there is a typo acting up somewhere.
kind regards,
Jos
- 01-16-2010, 09:20 PM #25
Member
- Join Date
- Jan 2010
- Posts
- 10
- Rep Power
- 0
I've emailed my program to someone else, and it compiles fine on his computer. THat same person (who has a working program) emailed me his program, and I still get the same error.
I must have forgotten to install something :s or place myself in the wrong directory when I try to compile?
- 01-16-2010, 11:35 PM #26
Member
- Join Date
- Jun 2009
- Posts
- 11
- Rep Power
- 0
Hey,
Double-check your path variable;.
Thanks
bye.
- 01-18-2010, 08:28 PM #27
Member
- Join Date
- Jan 2010
- Posts
- 10
- Rep Power
- 0
I copied it on to another comptuer that already had java on it,and it worked fine. I must have installed java badly.
Thanks for all your help.
- 01-18-2010, 08:53 PM #28
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,588
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
Error "can not find symbol variable"
By FullMetalHollow in forum New To JavaReplies: 5Last Post: 10-04-2009, 09:51 PM -
cannot find symbol for "list.addFirst"
By alexbryan_08 in forum New To JavaReplies: 10Last Post: 08-26-2009, 08:55 AM -
Compiling/Running Project in Command Line: "Could not find main class" Error
By Yasemin Gokce in forum New To JavaReplies: 1Last Post: 06-30-2009, 02:32 PM -
the dollar sign "$", prints like any other normal char in java like "a" or "*" ?
By lse123 in forum New To JavaReplies: 1Last Post: 10-20-2008, 07:35 AM -
"Cannont find symbol Constructor" error
By Welsh in forum New To JavaReplies: 7Last Post: 01-25-2008, 12:12 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks