Results 1 to 12 of 12
- 02-07-2010, 01:16 AM #1
Member
- Join Date
- Jan 2010
- Posts
- 44
- Rep Power
- 0
- 02-07-2010, 01:25 AM #2
Senior Member
- Join Date
- Oct 2009
- Location
- California,US
- Posts
- 201
- Rep Power
- 12
what do you mean. If i understood it correct
Just cut and paste it from C drive to other drive , It shldnt be a problem at compiling as
compilation and execution of java programs will be based on the Class Path.
- 02-07-2010, 01:33 AM #3
Senior Member
- Join Date
- Feb 2010
- Posts
- 128
- Rep Power
- 0
If you try to run your java code through cmd, locate to the folder where the file is stored using "cd" option. Do you get any error messages?
Measuring programming progress by lines of code is like measuring aircraft building progress by weight.
- 02-07-2010, 01:44 AM #4
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,716
- Rep Power
- 19
Now, I have to save all Java programs in C drive.
Why do you have to do this?
You haven't said what you are doing (to run programs located on other drives) or what happens when you do that: to put it bluntly, you haven't said what your problem is.
- 02-07-2010, 04:22 AM #5
Senior Member
- Join Date
- Oct 2009
- Location
- California,US
- Posts
- 201
- Rep Power
- 12
- 02-08-2010, 12:41 AM #6
Member
- Join Date
- Jan 2010
- Posts
- 44
- Rep Power
- 0
Thank you all!
My problem is that I am running Java on MS-DOS. Through MS-DOS, I cannot even change to D drive by typing cd D: because everything must be done on C drive!
- 02-08-2010, 12:59 AM #7
Senior Member
- Join Date
- Oct 2009
- Location
- California,US
- Posts
- 201
- Rep Power
- 12
in msdos you cant change the drive with cd D:
instead do this
cd D:\
- 02-08-2010, 01:03 AM #8
Member
- Join Date
- Jan 2010
- Posts
- 44
- Rep Power
- 0
Hi RaIdEn,
It does not work. I have tried.
Thanks for your help!
- 02-08-2010, 01:06 AM #9
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,716
- Rep Power
- 19
Does the d: drive exist? If so use
Java Code:D:\
The cd command is different: it changes the current directory. (Each drive has a "current directory" that can be changed.)
- 02-08-2010, 01:08 AM #10
Senior Member
- Join Date
- Oct 2009
- Location
- California,US
- Posts
- 201
- Rep Power
- 12
sry..i seem to mistyped my answer ,
Try this instead..
Java Code:D:
- 02-08-2010, 01:14 AM #11
Member
- Join Date
- Jan 2010
- Posts
- 44
- Rep Power
- 0
Thank you so much! It works finally!
- 02-08-2010, 01:15 AM #12
Senior Member
- Join Date
- Oct 2009
- Location
- California,US
- Posts
- 201
- Rep Power
- 12
Similar Threads
-
Jcreator Compile/Execute option
By airjohn6 in forum New To JavaReplies: 7Last Post: 01-12-2010, 01:59 AM -
Best way to format a drive/thumb drive in java...
By vandyke in forum Advanced JavaReplies: 1Last Post: 12-09-2009, 02:32 AM -
Compile/Execute code in Java app
By Doctor Cactus in forum New To JavaReplies: 5Last Post: 12-16-2008, 10:58 AM -
How to execute an External Program through Java program
By Java Tip in forum java.ioReplies: 0Last Post: 04-04-2008, 03:40 PM -
How to execute an External Program through Java program
By JavaBean in forum Java TipReplies: 0Last Post: 10-04-2007, 10:33 PM
Bookmarks