|
-
8 Wheels Move The Soul
"cannot find symbol" errors in java
The problem that I have is that when I compile a program that instantiates objects, it spits out "cannot find symbol" on every line that I do that on. The program compiles and runs fine on other boxes and my laptop, but on my big box is churns that error out.
Thankfully I already know what the solution is after a bit of googling: uninstall Quicktime. It's been like that for a long time on my laptop which is the only system I do all my coding on.
But I'd actually like to code once in awhile on my big box and be able to use iTunes (since QT is directly linked to it now... hooray -_-). How can I do this? I've tinkered with my class path and cut out the quicktime line to no avail. Still gives the error.
And no, Google doesn't provide answers. Every link just says to chop out quicktime, no workaround.
#1) Big Box
Core 2 Quad Q9550 - Asus P5Q3 - 8GB DDR3 1333 - GeForce 550Ti - Win 7 Pro
#2) IBM Thinkpad R51
Pentium M 1.6GHz - 1GB PC2700 - 80GB - Win 7 Pro
#3) Macbook Pro
2.4GHz Core i5 - 4GB - OS X Lion
#4) Rollerskates
Bont Quad Racer Carbon - Sure-Grip Avengers - Qube 8-Balls
Now Playing: Forza 4, Wipeout HD, Dead Space 2 (again!)
-
NullPointerException
You shouldn't really need to uninstall QuickTime. You are right on the money with regards to the CLASSPATH environment variable. QuiteTime is a bit rude when it installs, but having extra archives isn't usually an issue.
Instead, it sounds like you're missing the local directory in your CLASSPATH. If you're compiling at a command prompt, try
set CLASSPATH=.
This will add the current directory to the CLASSPATH and will be able to pick up any Classes defined there. echo %CLASSPATH% should return just a ".". If you need other jar files, add them behind the dot, separated by semicolons.
Open Source is free like a puppy is free.
It's only when you look at an ant through a magnifying glass on a sunny day that you realise how often they burst into flames.
Understanding Evolution
-
8 Wheels Move The Soul
 Originally Posted by rock
You shouldn't really need to uninstall QuickTime. You are right on the money with regards to the CLASSPATH environment variable. QuiteTime is a bit rude when it installs, but having extra archives isn't usually an issue.
Instead, it sounds like you're missing the local directory in your CLASSPATH. If you're compiling at a command prompt, try
set CLASSPATH=.
This will add the current directory to the CLASSPATH and will be able to pick up any Classes defined there. echo %CLASSPATH% should return just a ".". If you need other jar files, add them behind the dot, separated by semicolons.
I see...
I checked out the Classpath, and it was C:\Program Files\QuickTime\QTSystem\QTJava.zip. I deleted that line, echoed %CLASSPATH%, it returned %CLASSPATH%, and then I set the classpath to the directory that I was working in.
Now it works A-OK and Quicktime/iTunes doesn't seem to be whining about it. Hopefully compiling will be fine too...
#1) Big Box
Core 2 Quad Q9550 - Asus P5Q3 - 8GB DDR3 1333 - GeForce 550Ti - Win 7 Pro
#2) IBM Thinkpad R51
Pentium M 1.6GHz - 1GB PC2700 - 80GB - Win 7 Pro
#3) Macbook Pro
2.4GHz Core i5 - 4GB - OS X Lion
#4) Rollerskates
Bont Quad Racer Carbon - Sure-Grip Avengers - Qube 8-Balls
Now Playing: Forza 4, Wipeout HD, Dead Space 2 (again!)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|