| Author |
Being to organized
|
Dustin Eldridge
Greenhorn
Joined: Feb 04, 2008
Posts: 20
|
|
I wanted to keep all my learning files on a USB drive and then just transport them between my Mac at home and my work PC at the office. But I am having trouble compiling on the Mac "I have not even tried from the PC yet" is this because the files are on the USB drive and the javac file is on my HD. Thanks Dustin
|
 |
Dustin Eldridge
Greenhorn
Joined: Feb 04, 2008
Posts: 20
|
|
I made a new folder on my HD and that seemed to work but is it possible to put all the lesson files on the USB like that. Maybe I need to put the javac on the usb also. Next why doesnt this work. public class MyFirstApp { public static void main (String [] args) { System.out.println ("I Rule!"); System.out.println ("The World"); } }
|
 |
Dustin Eldridge
Greenhorn
Joined: Feb 04, 2008
Posts: 20
|
|
Ok forget it again I get frustrated and type in a question but I was typing java MyFirstApp.class but when I typed: java MyFirstApp it worked great.
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32651
|
|
Welcome to the Ranch. Everybody makes that mistake from time to time.
|
 |
 |
|
|
subject: Being to organized
|
|
|