Differences between revisions 2 and 3
Revision 2 as of 2015-01-12 22:04:36
Size: 639
Editor: 192
Comment:
Revision 3 as of 2015-01-12 23:10:09
Size: 1971
Editor: 192
Comment:
Deletions are marked like this. Additions are marked like this.
Line 18: Line 18:

<<BR>>
<<BR>>
<<BR>>
<<BR>>
<<BR>>

When Maven finishes building the app, you will see the ''Build success'' message in the Console tab, located at the bottom-center of Eclipse.

{{attachment:build-success.png}}

=== 2. Install the app ===

Once the build finishes, open the ''target'' folder that's located directly above the ''pom.xml'' file. Inside you'll see the file ''sample-create-network-view-1.0.jar''. This jar file is your newly built app.

To install the app, first open the ''!CytoscapeConfiguration'' folder.

/!\ You will need to have run Cytoscape at least once beforehand.

||'''If you're on a...'''||'''Do this to open !CytoscapeConfiguration'''||
||Mac||Go to the Finder, then in the ''Go'' menu choose ''Home''. You will find the ''!CytoscapeConfiguration'' folder inside your home folder.||
||Windows||In Windows Explorer, go to `C:\Users\Your-User-Name`. You will find the ''!CytoscapeConfiguration'' directory inside there.||
||Linux GNOME 3||In the GNOME Files application, click on the ''Home'' tab on the left. You will find ''!CytoscapeConfiguration'' inside there.||

Now that you have the ''!CytoscapeConfiguration'' folder open, go to ''3'' > ''apps'' > ''installed''. Copy your jar file to the ''installed'' folder by dragging it from Eclipse.

{{attachment:copy-app.png}}

Build and run a sample app in Eclipse

Overview

Now that you have a collection of sample apps in Eclipse, here you'll learn how to build one of the sample apps called sample-create-network-view and run it in Cytoscape.

Process

1. Build a sample app

  1. In the Package Explorer panel on the top-left, click to expand the cytoscape-samples folder.

  2. Click to expand the sample-create-network-view folder.

  3. Right-click (or control-click if you're on a Mac) on the pom.xml file.

  4. Select Run As.

  5. Then select Maven install.

run-mvn-install.png






When Maven finishes building the app, you will see the Build success message in the Console tab, located at the bottom-center of Eclipse.

build-success.png

2. Install the app

Once the build finishes, open the target folder that's located directly above the pom.xml file. Inside you'll see the file sample-create-network-view-1.0.jar. This jar file is your newly built app.

To install the app, first open the CytoscapeConfiguration folder.

/!\ You will need to have run Cytoscape at least once beforehand.

If you're on a...

Do this to open CytoscapeConfiguration

Mac

Go to the Finder, then in the Go menu choose Home. You will find the CytoscapeConfiguration folder inside your home folder.

Windows

In Windows Explorer, go to C:\Users\Your-User-Name. You will find the CytoscapeConfiguration directory inside there.

Linux GNOME 3

In the GNOME Files application, click on the Home tab on the left. You will find CytoscapeConfiguration inside there.

Now that you have the CytoscapeConfiguration folder open, go to 3 > apps > installed. Copy your jar file to the installed folder by dragging it from Eclipse.

copy-app.png

Cytoscape_3/AppDeveloper/Cytoscape_App_Ladder/BuildAndRunSampleApp (last edited 2015-07-28 21:00:23 by 192)

Funding for Cytoscape is provided by a federal grant from the U.S. National Institute of General Medical Sciences (NIGMS) of the Na tional Institutes of Health (NIH) under award number GM070743-01. Corporate funding is provided through a contract from Unilever PLC.

MoinMoin Appliance - Powered by TurnKey Linux