aspose file tools*
The moose likes Beginning Java and the fly likes Running java applications Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Running java applications" Watch "Running java applications" New topic
Author

Running java applications

Fran Costigan
Greenhorn

Joined: Feb 06, 2006
Posts: 8
how do you run an application properly when using your H drive?

I know it's kinda like this:

H:\directoryname\filename>javac Example_1_1.java
H:\directoryname\filename>java Example_1_1

like for example if i was to call my directory Java and my file name Example_1_1 would it look something like this:

H:\Java\Example_1_1>javac Example_1_1.java
H:\Java\Example_1_1>java Example_1_1

oh and do i need to change directory at the start in order to work from my H drive?
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
That looks like a good start. You need to make your "current directory" the parent of a set of directories that match your package statements. If you didn't specify a package then your current directory contains the source files. I think that's what you're up to.

See if this tutorial makes this clearer.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
luc comeau
Ranch Hand

Joined: Jan 20, 2005
Posts: 97
surprised stan didn't bust down on your fun name, never heard of anyone named "Fishy" before, although gwen paltro named her kid "Apple" and Frank zappa named his kid "Moon Unit"..so i guess nothing would surpirse me nowadays.


National Research Council<br />Internet Logic Department
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14430
    
  23

Right... :roll:

"Fishy Cakes", have you read the JavaRanch policy on forum names? Please change your name.

All JavaRanch users are asked to use a real name as their display name, with a first and last name, and maybe more, separated by spaces. Obviously fictitious names may be locked out. By "real name", we mean either your own actual, personal name, or a name that at least looks like it could belong to a real person. No names of celebrities or fictional characters. No cute nicknames like "javarulz" or "Hacker King". No joke names like "Adam Baum" (atom bomb) or "Justin Case" (just in case). No names with embedded numbers or other unorthodox punctuation like "Mike505" or "John_Smith". No names of companies - just people.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Running java applications