my dog learned polymorphism*
The moose likes Beginning Java and the fly likes Being to organized Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Being to organized" Watch "Being to organized" New topic
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: 38007
    
  22
Welcome to the Ranch.

Everybody makes that mistake from time to time.
 
wood burning stoves
 
subject: Being to organized
 
Similar Threads
USB shock hazard!?
Mounting and Dismounting (USB Drive) Volumes
usb drive
external USB drive borked up
identify usb port