Results 1 to 2 of 2
- 04-07-2011, 12:12 AM #1
Member
- Join Date
- Apr 2011
- Posts
- 1
- Rep Power
- 0
Finding path to my command line tools from Java
I have several command line tools that I'm wrapping with Java.Swing as GUI. I'm thinking I'll probably create a .jar (or wrap .jar into a .exe for Windows) and put my command line tools in the same folder as the Jar (or as a sub-folder). But how do I get the absolute path for my command line tools? Maybe I can detect the path of the Jar file and take a relative path. How do I get the path of the Jar file? I'm pretty new to Java, so I'm open to other suggestions as well.
- 04-07-2011, 02:34 AM #2
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,608
- Rep Power
- 5
Similar Threads
-
Command line args for your java app!
By aadem in forum New To JavaReplies: 2Last Post: 03-04-2011, 09:05 PM -
Formatting java command line output - Multi line string
By dricco in forum New To JavaReplies: 2Last Post: 07-02-2010, 02:20 PM -
javac on the Windows command line--whitespace in path name?
By mslate in forum New To JavaReplies: 2Last Post: 03-31-2010, 12:26 AM -
Java command line
By agouzoul in forum New To JavaReplies: 2Last Post: 04-02-2008, 12:12 PM -
Unable to execute command line command in java
By LordSM in forum New To JavaReplies: 1Last Post: 08-08-2007, 12:23 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks