Results 1 to 4 of 4
Thread: getting paths and directories
- 08-09-2007, 09:42 PM #1
Member
- Join Date
- Jul 2007
- Posts
- 23
- Rep Power
- 0
getting paths and directories
hey i am working on a massive RPG i want to put online, and right now i have to run it on the applet (on my desktop) with the entire filepath, and i have a variable there
private final String FILEPATH = "C:\\Documents and Settings\\Desktop\\RPG\\";
now if it goes online i would have to change the filepath to "www.w/e the site will be.com\\" and recompile which would be a total pain!!!
is there anyway that i could make the FILEPATH variable just get the current directory it is in?
- 08-09-2007, 10:18 PM #2levent Guest
I think you can put the files in that path into a jar and load from the jar in the same way.
- 08-09-2007, 10:22 PM #3
Member
- Join Date
- Jul 2007
- Posts
- 23
- Rep Power
- 0
nah coz if i want to update the graphics and the pics and the scripts being imported i dont wanna go thru opening the jar lol
- 11-25-2007, 07:28 AM #4
Member
- Join Date
- Nov 2007
- Posts
- 1
- Rep Power
- 0
Similar Threads
-
JSP – getting list of directories
By Java Tip in forum Java TipReplies: 0Last Post: 01-31-2008, 12:51 PM -
Creating and checking directories with java code
By tim in forum New To JavaReplies: 8Last Post: 01-07-2008, 05:41 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks