Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
OS X DP1 javac question...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OS X DP1 javac question...



I have hit a really basic problem with javac....

I am sure this question has been answered ... but the list archive, is not searchable, apparently,

I am trying to compile a large number of .java files in one directory but javac seems to be unable to find the .java or .class files it needs to resolve symbols, despite them being present in the same directory.

I have tried using the -classpath switch, although strictly not necessary, as javac should look in the current directory.

For example, when compiling a .java file, in a directory containing vtkObject.java
% javac vtkProp.java

I get the error

vtkProp.java:7: cannot resolve symbol
symbol : class vtkObject
location: class vtk.vtkProp
public class vtkProp extends vtkObject

The file vtkObject.java is present , and can be compiled itself as it is a "base" class.
( this is just an example, every single .java file I try and compile fails)
Andrew




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.