Android Question [SOLVED] B4A v13.0 BETA - error -> "The filename or extension is too long."

scsjc

Well-Known Member
Licensed User
Longtime User
I just followed steps https://www.b4x.com/android/forum/t...is-available-for-download.162136/#post-994570,
And I'm getting an error saying "The filename or extension is too long."
I'm not sure which name it is referring to. Any help?

1721302219577.png
 

scsjc

Well-Known Member
Licensed User
Longtime User
I've uploaded beta #4. The compilation window should include the javac input. Please run your project (from the IDE) and post the full text.


result:

B4X:
D:\f1>B4ABuilder -Task=Build -obfuscate=False -BaseFolder=d:\f1 -Project=facturaone.b4a -ShowWarnings=TRUE
B4ABuilder v13.00 BETA #4
Global Java version: 19
BaseFolder: d:\f1
ProjectFile: facturaone.b4a
BuildConfiguration: Default,com.oficinadirecta
Parsing code.
Java Version: 19
Compiling code.
Compiling layouts code.
Organizing libraries.
(AndroidX SDK)
Compiling resources
Linking resources
link  --auto-add-overlay --no-version-vectors --manifest AndroidManifest.xml -I "C:\a4\platforms\android-34\android.jar" bin\extra\compiled_resources\com.oficinadirecta.zip -R bin\extra\compiled_resources\ResourceViewAnimations.zip  -R bin\extra\compiled_resources\anywheresoftware.b4a.objects.zip  --extra-packages anywheresoftware.b4a.objects  -R bin\extra\compiled_resources\anywheresoftware.b4a.objects.zip  --extra-packages anywheresoftware.b4a.objects  -R bin\extra\compiled_resources\androidx.appcompat.zip  --extra-packages androidx.appcompat  -R bin\extra\compiled_resources\androidx.appcompat.resources.zip  --extra-packages androidx.appcompat.resources  -R bin\extra\compiled_resources\androidx.core.zip  --extra-packages androidx.core  -R bin\extra\compiled_resources\androidx.core.ktx.zip  --extra-packages androidx.core.ktx  -R bin\extra\compiled_resources\androidx.core.testing.zip  --extra-packages androidx.core.testing  -R bin\extra\compiled_resources\androidx.annotation.experimental.zip  --extra-packages androidx.annotation.experimental  -R moji2-bundled-1.4.0\assets" -o bin\temp.ap_ --java gen
build tools: 34.0.0, android jar: android-34
Compiling generated Java code.
System.ComponentModel.Win32Exception (0x80004005): El nombre del archivo o la extensión es demasiado largo
   en System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   en f7.a(Process A_0, Boolean A_1, DataReceivedEventHandler A_2, DataReceivedEventHandler A_3, String A_4)
   en f7.d.g()
   en im.a(a A_0)
   en in.j(String[] A_0)
   en in.m(String[] A_0)
El nombre del archivo o la extensión es demasiado largo

D:\f1>
 
Last edited:
Upvote 0

asales

Expert
Licensed User
Longtime User
Same result here:
B4X:
build tools: 34.0.0, android jar: android-34
Compiling generated Java code.
System.ComponentModel.Win32Exception (0x80004005): O nome do arquivo ou a extensão é muito grande
   em System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   em f7.a(Process A_0, Boolean A_1, DataReceivedEventHandler A_2, DataReceivedEventHandler A_3, String A_4)
   em f7.d.g()
   em im.a(a A_0)
   em in.j(String[] A_0)
   em in.m(String[] A_0)
O nome do arquivo ou a extensão é muito grande
 
Upvote 0

scsjc

Well-Known Member
Licensed User
Longtime User
Finally, I have moved parts of the code that were using DesignSupport (to new code), which I already knew was very incompatible.

By directly removing the DesignSupport library, everything works fine now
(I suppose the string length is significantly reduced, preventing the "System.ComponentModel.Win32Exception (0x80004005)" error).
 
Upvote 0

scsjc

Well-Known Member
Licensed User
Longtime User
Uploaded beta #5. It should now list the arguments when the error happens. Please run it in the IDE and post the output.


The line that is marked between ************* I haven't been able to copy entirely from the MS-DOS console, and I've put in the parts I could (some parts are missing).

1724136083791.png



B4X:
Error: System.ComponentModel.Win32Exception (0x80004005): El nombre del archivo o la extensión es demasiado largo
   en System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   en f7.a(Process A_0, Boolean A_1, DataReceivedEventHandler A_2, DataReceivedEventHandler A_3, String A_4)
   en f7.d.g()
Arguments: -J-Xmx2048m -d bin\classes  -bootclasspath "C:\android\platforms\android-34\android.jar" -Xmaxerrs 1 -nowarn -Xlint:none  -target 8 -source 8 -version -encoding UTF-8 -cp "C:\Program Files\Anywhere Software\B4A\libraries\b4ashared.jar";"c:\android\tools\..\extras\b4a_local\unpacked-appcompat.androidx-63701724022000\jars\classes.jar";"c:\android\tools\..\extras\b4a_remote\androidx\appcompat\appcompat\1.7.0\unpacked-appcompat-1.7.0\jars\classes.jar";"c:\android\tools\..\extras\b4a_local\unpacked-designsupport.androidx-63697574748265\jars\classes.jar";"c:\android\tools\..\extras\b4a_remote\androidx\appcompat\appcompat-resources\1.7.0\unpacked-appcompat-resources-1.7.0\jars\classes.jar";"c:\android\tools\..\extras\b4a_remote\androidx\core\core\1.13.1\unpacked-core-1.13.1\jars\classes.jar";"c:\android\tools\..\extras\b4a_remote\androidx\core\core-ktx\1.13.1\unpacked-core-ktx-1.13.1\jars\classes.jar";"c:\android\tools\..\extras\b4a_remote\androidx\core\core-testing\1.13.1\unpacked-core-testing-1.13.1\jars\classes.jar";"c:\android\tools\..\extras\b4a_remote\androidx\annotation\annotation-experimental\1.4.1\unpacked-annotation-experimental-1.4.1\jars\classes.jar";"c:\android\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-livedata\2.8.3\unpacked-lifecycle-livedata-2.8.3\jars\classes.jar";"c:\android\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-livedata-core\2.8.3\unpacked-lifecycle-livedata-core-2.8.3\jars\classes.jar";"c:\android\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-livedata-core-ktx\2.8.3\unpacked-lifecycle-livedata-core-ktx-2.8.3\jars\classes.jar";"c:\android\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-livedata-ktx\2.8.3\unpacked-lifecycle-livedata-ktx-2.8.3\jars\classes.jar";"c:\android\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-process\2.8.3\unpacked-lifecycle-process-2.8.3\jars\classes.jar";"c:\android\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-reactivestreams\2.8.3\unpacked-lifecycle-reactivestreams-2.8.3\jars\classes.jar";"c:\android\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-reactivestreams-ktx\2.8.3\unpacked-lifecycle-reactivestreams-ktx-2.8.3\jars\classes.jar";"c:\android\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-runtime-testing\2.8.3\unpacked-lifecycle-runtime-testing-2.8.3\jars\classes.jar";"c:\android\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-service\2.8.3\unpacked-lifecycle-service-2.8.3\jars\classes.jar";"c:\android\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-viewmodel-ktx\2.8.3\unpacked-lifecycle-viewmodel-ktx-2.8.3\jars\classes.jar";"c:\android\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-viewmodel-savedstate\2.8.3\unpacked-lifecycle-viewmodel-savedstate-2.8.3\jars\classes.jar";"c:\android\tools\..\extras\b4a_remote\androidx\savedstate\savedstate\1.2.1\unpacked-savedstate-1.2.1\jars\classes.jar";"c:\android\tools\..\extras\b4a_remote\androidx\savedstate\savedstate-ktx\1.2.1\
 
Last edited:
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
Just out of interest was the command line changed to use @afile.txt for the classpath?
 
Upvote 0

Scantech

Well-Known Member
Licensed User
Longtime User
B4A Version: 13.00 BETA #6
Parsing code. (0.00s)
Java Version: 19
Building folders structure. (0.01s)
Compiling code. (0.02s)
Compiling layouts code. Error
The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

Not sure if its related to this thread. This error with beta #6. is this normal?

D:\B4A Projects\B4A Examples and Libraries\B4a Libraries Downloaded from 2024\Transfer to B4A used to built IPTV\Addo Media3 Files\addoMedia3-V-1.7\addoMedia3-V-1.7\Examples\TextureView_Example

SHould i set project in shorter path?
 
Last edited:
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
Your path is 193 characters long - when you add /objects/src/ then your.package.name then add the src file names, you probably exceed the limits.
 
Upvote 0
Top