B4J Question How to configure the Comment link arguments to build b4xlib?

rtek1000

Active Member
Licensed User
Longtime User
Hello,

I'm trying to modify a b4xlib library,

I tried to use these command lines, but I was unsuccessful:

B4X:
'Click to build b4xlib: ide://run?file=%JAVA_HOME%\bin\jar.exe&c:\b4j=..&Args=-cMf&Args=newLib.b4xlib&&Args=..&Args=*.bas&Args=manifest.txt

'Click to build b4xlib: ide://run?file=%JAVA_HOME%\bin\jar.exe&c:\b4j\newLib=..&Args=-cMf&Args=newLib.b4xlib&&Args=..&Args=*.bas&Args=manifest.txt

The IDE shows:
*.bas : no such file or directory
manifest.txt : no such file or directory
Completed. Exit code: 1

The .bas and .txt file is located in the folder:
C:\b4j\newLib

Even though this error appears, I found a b4xlib file in a project folder:
..\Project\Objects

But it's smaller than the original file, so it obviously doesn't work.

This is based on the new comment link feature. It will work with B4A, B4i and B4J versions to be released next week (July 8, 2020). It will not work with current betas.
B4X:
'Click to build b4xlib: ide://run?file=%JAVABIN%\jar.exe&WorkingDirectory=..&Args=-cMf&Args=LibraryNameHere.b4xlib&&Args=..&Args=*.bas&Args=manifest.txt


I found these other posts about this, but there are no more detailed explanations on how to compile a library:

https://www.b4x.com/android/forum/threads/b4x-comment-link-to-build-b4xlib.119934/#content

https://www.b4x.com/android/forum/threads/b4x-comment-links.119897/#content

Thank you.
 

rtek1000

Active Member
Licensed User
Longtime User
OK, I got it.

The folder path must go before these dots:

%JAVABIN%\jar.exe&WorkingDirectory=..&Args

%JAVABIN%\jar.exe&WorkingDirectory=C:\b4j\newLib..&Args


B4X:
'Click to build b4xlib: ide://run?file=%JAVABIN%\jar.exe&WorkingDirectory=..&Args=-cMf&Args=LibraryNameHere.b4xlib&&Args=..&Args=*.bas&Args=manifest.txt

https://www.b4x.com/android/forum/threads/b4x-comment-link-to-build-b4xlib.119934/#content

And the destination file must be in the same folder as the .bas and .txt files
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…