Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Being to organized

 
Dustin Eldridge
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 50225
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

Everybody makes that mistake from time to time.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic