this is my first try at building a library for b4a. it is a little code snippet that's suppose to set the volume of speakers to max.
when i tried to compile, it gave me an error about a symbol like in filippo's case here. so i made a package and now i get this massage:
what am i doing wrong?
maybe it has something to do with the way i build the jar file. basically what i do is "jar cf bgaudio.jar bgaudio.java".
i've attached the library sources.
thanks.
EDIT: i was right. it was the way i build my jar file. what i did to fix it was to manually edit the file with the correct folders and files.
what is the right way to build a jar file? it is not described in the tutorial.
when i tried to compile, it gave me an error about a symbol like in filippo's case here. so i made a package and now i get this massage:
B4X:
javac 1.6.0_21
src\com\SC2M\BennyG\main.java:193: package com.BennyG.BGaudio does not exist
public static com.BennyG.BGaudio.BGAudio _bgaudio = null;
^
1 error
maybe it has something to do with the way i build the jar file. basically what i do is "jar cf bgaudio.jar bgaudio.java".
i've attached the library sources.
thanks.
EDIT: i was right. it was the way i build my jar file. what i did to fix it was to manually edit the file with the correct folders and files.
what is the right way to build a jar file? it is not described in the tutorial.
Last edited: