Hello,

I have a program that was executed appropriately via windows command line, however when i separated the classes into different packages and tried to compile i got some errors.
(No problems executing it via Eclipse. Compilation via command line is the problem)

MyFrame.java:19: package Control does not exist
import Control.*;
^
MyFrame.java:27: cannot find symbol
symbol : class Canvas
location: class GUI.MyFrame
Canvas myCanvas = new Canvas();
^
MyFrame.java:33: cannot find symbol
symbol : class myThread
location: class GUI.MyFrame
myThread thread;
^
MyFrame.java:27: cannot find symbol
symbol : class Canvas
location: class GUI.MyFrame
Canvas myCanvas = new Canvas();
^
MyFrame.java:70: cannot find symbol
symbol: class myThread
thread = new myThread(myCanvas);
^
5 errors

Thanks in advance

Recommended Answers

All 2 Replies

You need to tell us:
* The directory structure
* The command you are executing on the command line

I tried to compile from "patchname/GUI>javac MyFrame.java however i just managed to compile it from "pathname/src>javac GUI\MyFrame.java. I was not aware that using the former path would cause a problem.

P.S If there is a way to delete this thread go for it ~~ sorry

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.