0

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

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by Statoeo
0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.