By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,739 Members | 2,014 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,739 IT Pros & Developers. It's quick & easy.

java -classpath problems

P: 17
i have to learn java for college and im trying to do a programming assignment at home. in class we use a class file called InOut which simplifys input and output but i can't get the compiler to see the classfile this is the compiler output:
(the file InOut.class in in /jclass)

me@mycomputer:~/docs/programming/JAVA$ javac -verbose -classpath /jclass iotest.java
[parsing iotest.java - #1/1]
[reading java/lang/Object.class]
[analyzing iotest.java - #1/1]
[reading java/lang/String.class]
[reading java/lang/System.class]
[reading java/io/PrintStream.class]
[reading InOut.class]
----------
1. ERROR in iotest.java (at line 2)
import InOut;
^^^^^
The import InOut cannot be resolved
----------

the progrm goes as so:

input InOut;

class iotest{
public static void main (String[] args){

input 2 numbers, multiply them and output simply to test the InOut

}
}

Im using Kubuntu 6.10
Nov 23 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.