You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, February 22nd 2010, 4:31pm

App.Path error?

Hi there,

I am getting some error when I am trying to use App.Path function.

Please give me some advice!
:S



Best regards,
Viktor

I think it will be a good replacement for VB6 after a little improvements and minor bug fixes... :rolleyes:

A1880

Intermediate

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

2

Monday, February 22nd 2010, 6:11pm

Hi Viktor,
you seem to re-discover many of the pitfalls which have been discovered before.
Please use the search facility of this forum.

Manuel is aware of these shortcomings, but his to-do list is too long to get them resolved over night.

App.Path works for *.exe binaries but fails for *.jar and for IDE program executions.

Greetings

A1880

3

Tuesday, February 23rd 2010, 9:15am

Hi A1880,
you seem to re-discover many of the pitfalls which have been discovered before.
I did not aware of that! :rolleyes:

Quoted

Please use the search facility of this forum.
I searched for App.Path but nothing shows up! :S

Quoted

App.Path works for *.exe binaries but fails for *.jar and for IDE program executions.
And this is a good explanation, thanks! :thumbup:

Best regards,
Viktor

I think it will be a good replacement for VB6 after a little improvements and minor bug fixes... :rolleyes:

OlimilO

Intermediate

  • "OlimilO" is male

Posts: 277

Date of registration: Jan 18th 2009

Location: Germany

Occupation: software engineer

  • Send private message

4

Wednesday, February 24th 2010, 1:47pm

App.Path = System.getProperty("user.dir")

Hi,

System.getProperty("user.dir")

delivers the path where the exe or jar resides. (with JDK: 1.6.0_18 now always and for ever I hope)

JDK: 1.6.0_18

Quoted

I searched for App.Path but nothing shows up

try: AppPath

(w/o ".")


regards

OlimilO

5

Thursday, February 25th 2010, 12:49pm

Hi OlimilO,
try: AppPath

(w/o ".")
Thanks for the tip and for the rest! 8)

Best regards,
Viktor

I think it will be a good replacement for VB6 after a little improvements and minor bug fixes... :rolleyes:

Rate this thread
WoltLab Burning Board