This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Being to organized" Watch "Being to organized" New topic

Being to organized

Dustin Eldridge

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.

Dustin Eldridge

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

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

Joined: Oct 13, 2005
Posts: 45277
Welcome to the Ranch.

Everybody makes that mistake from time to time.
I agree. Here's the link:
subject: Being to organized
It's not a secret anymore!