Java Question Creating B4A Java Library using Eclipse: Error Message

rwblinn

Well-Known Member
Licensed User
Longtime User
Dear All,

while creating a B4A Java Library using Eclipse, receive an error message after creating the JAR File:

Using following steps to create the JAR File:
-File > Export > select JAR file >
-Select the resources to export (the package and src): RLDIalogs and src
-Select Export Destination: e:\Daten\b4a\MyLibs\RLDialogs\RLDialogs.jar
-Press finish.
-Receive message to overwrite the file e:\Daten\b4a\MyLibs\RLDialogs\RLDialogs.jar

Error Message:
JAR Export - Java creation failed:
JAR creation failed. See details for additional information.
JAR creation failed. See details for additional information.
Resource is out of sync with the file system: '/RLDialogs/RLDialogs.jar'.
Resource is out of sync with the file system: '/RLDialogs/RLDialogs.xml'.

BUT the jar file is created. When using in B4A it works fine.

BTW: the xml file is created properly.

Questions:
What has to be changed to avoid getting this error message?
Is there an easier way in Eclipse to build at one both XML and JAR file.


Appreciated,
Rob
 

warwound

Expert
Licensed User
Longtime User
Eclipse watches all files in a project - a project in your workspace.
If you modify any files in the project from outside of Eclipse then you'll see that 'out of sync' error.

Select you project in Eclipse and press F5 and Eclipse will refresh and all files will now be in sync - you'll need to refresh the Eclipse project each time you modify any files in it from outside of the Eclipse IDE.

As far as i know there's no 'easier' way to generate the jar and xml files.

Martin.
 

rwblinn

Well-Known Member
Licensed User
Longtime User
Solved the problem

Thanks for the F5 hint, BUT it did not solve the problem.

Finally found the cause :sign0060::
In the eclipse package explorer, a package with the same name did exist. After renaming the other package, the problem was solved.

[Good to know - as would have expected, that Eclipse at least issues a hint]

Regards,
Rob
 
Top