🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #737

Jar's path at the runtime

#737
From: Alexei Akimov
Date: Wed, 04 Dec 2002 10:45
12 lines
1499 bytes
Dear expert,

I have a following question: Let we have a java application packed into jar
file or native executable (using JBuilder). Can the application determine
jar or exe file path at the runtime? Is there an analogue of Win32
GetModuleName in java? When I work with Delphi I store ini (or properties)
files in the same folder where the exe file is stored. I can not pack the
properties files into jar as a resourse because the application needs change
it while running (for example it saves there UI preferences).

Thanks in advance,
Alexei Akimov.
Technical Details
Message-ID: <3deddcdc@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!news.boerde.de!nntp.cs.uni-magdeburg.de!PeerFeed.KWeb.on.ca!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,734864463187f08,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-12-04 02:52:42 PST
From: "Alexei Akimov" <a_p_akimov@mtu-net.ru>
Newsgroups: borland.public.jbuilder.java.api
Subject: Jar's path at the runtime
Date: Wed, 4 Dec 2002 13:45:04 +0300
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 212.188.100.111
Message-ID: <3deddcdc@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1038998748 212.188.100.111 (4 Dec 2002 02:45:48 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!news.boerde.de!nntp.cs.uni-magdeburg.de!PeerFeed.KWeb.on.ca!newsgroups.borland.com!not-for-mail