You are not logged in.

yogiyang

Beginner

  • "yogiyang" started this thread

Posts: 8

Date of registration: Nov 12th 2013

  • Send private message

1

Monday, June 23rd 2014, 6:35am

App.Path returns wrong values

Hi,

I am experimenting with Jabaco and have run into a problem.

The call to App.Path returns wrong path.

The actual path of my project is: c:\Job\Junk\Jabaco

But the App.Path returned is: C:\Users\Admin\AppData\Local\Temp\Jabaco3148396

Why this happens?

TIA

Yogi Yang

yogiyang

Beginner

  • "yogiyang" started this thread

Posts: 8

Date of registration: Nov 12th 2013

  • Send private message

2

Monday, June 23rd 2014, 6:46am

An update:
If I compile/make the project to EXE and run it then it returns: C:\Users\Admin\AppData\Local\Temp

theuserbl

Intermediate

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

3

Monday, June 23rd 2014, 10:32am


I am experimenting with Jabaco and have run into a problem.

The call to App.Path returns wrong path.
It's the right path.

Quoted

The actual path of my project is: c:\Job\Junk\Jabaco
And it will be given out with

Jabaco Source

1
MsgBox (CurDir)


Quoted

But the App.Path returned is: C:\Users\Admin\AppData\Local\Temp\Jabaco3148396
Right. Thats where your class-files are in. Have you looked in that directory? The class files are compiled to that directory.

Quoted

An update:
If I compile/make the project to EXE and run it then it returns: C:\Users\Admin\AppData\Local\Temp
Right. Because the exe-file (for example "Program.exe" creates a jar-file (for example Program.exe.jar) in C:\Users\Admin\AppData\Local\Temp. And that jar file is then started by the JavaVM.

Greatings
theuserbl

spysonic

Trainee

  • "spysonic" is male

Posts: 88

Date of registration: Jul 11th 2014

About me: A beginner programmer.

Location: ...Jabaco Academy

Occupation: i have some but still not enough...

Hobbies: Jabaco

  • Send private message

4

Friday, July 25th 2014, 2:22am

A:

Do we just have to refer to CurDir to get the location of our proj?

thanx theuserbl... 'm gonna try it now ...


experiment ... experiment ....experiment
.
.
Spare me, im new to Programming

This post has been edited 1 times, last edit by "spysonic" (Jul 25th 2014, 2:30am)


spysonic

Trainee

  • "spysonic" is male

Posts: 88

Date of registration: Jul 11th 2014

About me: A beginner programmer.

Location: ...Jabaco Academy

Occupation: i have some but still not enough...

Hobbies: Jabaco

  • Send private message

5

Friday, July 25th 2014, 2:37am

Source code

1
dbFile = CurDir & "/Res/main.db"


now its working again... :D just replace the "App.path" with CurDir
.
.
Spare me, im new to Programming

Rate this thread
WoltLab Burning Board