cancel
Showing results for 
Search instead for 
Did you mean: 

Java Executable

german
Champ on-the-rise
Champ on-the-rise
Hi all.
Use as a development environment Eclipse3.3.2 on Alfresco2.1R1, AlfrescoSDK2.1R1.

- I created a project (simple upload files to remote with Alfresco Java API)

- Project articulated in a folder with 2 package:
  One Contains a project file (. Java), the other
  contains the file Webserviceclient.properties.

- From Properties of the project-> Java Buil Path:
  I added under Project SDK AlfrescoRemote,
  under Libraries I added my libraries.

- Compiled and executed perfectly.

- Export the project in an executable file .jar

- Executed the jar, the project starts but Alfresco's function are not avaiable.

With the Eclipse project works with Alfresco perfectly, while from the outside no.

I would like to know how I can create an executable (a jar is fine) to be able to distribute.

Thanks.

Bye.

Germano.
1 REPLY 1

german
Champ on-the-rise
Champ on-the-rise
Hi all.

I resolved in this way (at least for executions locally).

- I've created a jar files with eclipse by the export project.

- I have taken all libraries to the requirement (.jar) and I unpack in a folder.

- For each element(libFile) of the folder libraries I performed an update of jar files created with eclipse with the following command line:

jar uf jarFile.jar libFile

In this way the jar files work correctly.

Bye.

Germano.