Differences between revisions 22 and 24 (spanning 2 versions)
Revision 22 as of 2007-05-21 17:25:12
Size: 3462
Editor: KarlPinc
Comment: Fix VPN link to be a wiki link. Other links need fixing too.
Revision 24 as of 2007-08-11 04:31:36
Size: 3736
Editor: JunYang
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
The New Ranker Program for Babase was designed by Dr Jun Yang of Duke's Computer Science Department and Tyler Brock, Senior at Duke University as his graduation project. The new Ranker program for Babase was developed by ["JunYang"] and ["TylerBrock"] from Fall 2006 to Spring 2007. It was Tyler's Graduation with Distinction project when he graduated from Duke University in 2007.

== Prerequisites to Running the Ranker ==
 * If your computer is not on the same trusted network as papio (e.g., your computer is outside the biology.duke.edu domain), you must have VPN access to papio. See ["BabaseVPN"] for details on how to set up VPN on your computer.
 * You must have a Babase PostgreSQL account on papio.
 * Your computer must have Sun's Java Platform, Standard Edition 5 or later.
Line 5: Line 10:
This section describes how to run the ranker normally without the need to make changes to or see the code.  * If your computer is not on the same trusted network as papio, first establish a VPN connection to papio. See ["BabaseVPN"] for detailed instructions.
 * Point your browser to [https://papio.biology.duke.edu/ranker/ranker.jnlp]; this will launch the Ranker program.
 * You may get a warning about the application's digital signature; you need to choose "Run" to proceed.
Line 7: Line 14:
Go to https://papio.biology.duke.edu and click on the ranker.jnlp, the program should launch
 * Make sure you say that you trust the certificate if asked.
 * You will be required to have an installed Sun Java JDK greater than version 5.0.
 * You will also need a connection to the [:BabaseVPN:Babase VPN] if you are outside of the trusted Duke network.
== Software Development for Ranker ==
'''''This section is currently under development.'''''
Line 12: Line 17:
== Making Changes and Running the Program ==

=== Install Software ===
==== Development Environment ====
Line 20: Line 23:
 * Obtain the following third-party libraries:
  * PostgeSQL JDBC Driver, at http://jdbc.postgresql.org/
  * TableLayout manager, at http://java.sun.com/products/jfc/tsc/articles/tablelayout/apps/TableLayout.jar
Line 21: Line 27:
=== Import Project === ==== Import Project ====
Line 24: Line 30:

=== Make Changes ===
==== Make Changes ====
Line 28: Line 33:
=== Compile and Run Program With Changes === ==== Compile and Run Program With Changes ====
Line 31: Line 36:
== Updating the Ranker Program ==
=== Exporting the JAR files ===
==== Exporting the JAR files ====
Line 35: Line 39:
=== Get the libraries ===
You can find the libraries in the lib folder within the archive of the code.

If you can't, you can find them here:
 * PostgeSQL JDBC Driver[http://jdbc.postgresql.org/]
 * TableLayout alternate layout manager[http://java.sun.com/products/jfc/tsc/articles/tablelayout/apps/TableLayout.jar]

=== Put it in the right spot ===
 * Make sure the ranker.jar and the library JARs in the same folder.

=== Create the Keys ===
==== Create the Keys ====
Line 49: Line 43:
 {{{keytool -genkey -alias babase -keyStore babasestore.ks}}}
 .
{{{keytool -genkey -alias babase -keyStore babasestore.ks}}}
Line 52: Line 47:
Line 55: Line 51:
Line 58: Line 55:
Line 60: Line 58:
=== Sign the JARs === ==== Sign the JARs ====
Line 64: Line 62:
 {{{jarsigner -keystore babasestore.ks -storepass babase jarname.jar babase}}}
Line 66: Line 63:
The JAR file is now signed and can be uploaded to the webserver.  . {{{jarsigner -keystore babasestore.ks -storepass babase jarname.jar babase}}}

The JAR file is now signed and can be uploaded to the webserver. Make sure the ranker.jar and the library JARs in the same folder as ranker.jnlp.

Ranker

The new Ranker program for Babase was developed by ["JunYang"] and ["TylerBrock"] from Fall 2006 to Spring 2007. It was Tyler's Graduation with Distinction project when he graduated from Duke University in 2007.

Prerequisites to Running the Ranker

  • If your computer is not on the same trusted network as papio (e.g., your computer is outside the biology.duke.edu domain), you must have VPN access to papio. See ["BabaseVPN"] for details on how to set up VPN on your computer.
  • You must have a Babase PostgreSQL account on papio.
  • Your computer must have Sun's Java Platform, Standard Edition 5 or later.

Running the Ranker

  • If your computer is not on the same trusted network as papio, first establish a VPN connection to papio. See ["BabaseVPN"] for detailed instructions.
  • Point your browser to [https://papio.biology.duke.edu/ranker/ranker.jnlp]; this will launch the Ranker program.

  • You may get a warning about the application's digital signature; you need to choose "Run" to proceed.

Software Development for Ranker

This section is currently under development.

Development Environment

You will need the following environment in order to be able to make changes to the ranker code:

Import Project

Once the JDK and Eclipse are installed you can unzip the code for the project and open eclipse. Then, if you import->general->existing project into workspace and select the project file within the extracted folder, the project should appear within your eclipse workspace.

Make Changes

After the project is open one can make changes to the code within the eclipse environment, most of which is within the babase.ranker package.

Compile and Run Program With Changes

To run the program, make sure you are connected to the VPN bring the ranker.java file to the focus of the editor and click on the run menu. From there, select to run as a Java application. Before the program runs, the changes are compiled.

Exporting the JAR files

Export the project choosing Java->Jar File as the type of exported file.

Create the Keys

From the command line in Mac OS X this can be accomplished by doing the following:

Typing the following into the terminal

  • keytool -genkey -alias babase -keyStore babasestore.ks

It will ask you for a password

  • Type babase as the password

Then it will ask for information regarding the certificate

  • Fill out the information.

When asked "Enter key password for <babase> (RETURN if same as keystore password):"

  • Simply hit enter and the keystore will be generated.

Sign the JARs

From the command line in Mac OS X this can be accomplished by doing the following:

Change directories to the folder containing both the JARs and the keystore file babasestore.ks and type the following for each JAR file to sign that particular JAR. (All of them must be signed)

  • jarsigner -keystore babasestore.ks -storepass babase jarname.jar babase

The JAR file is now signed and can be uploaded to the webserver. Make sure the ranker.jar and the library JARs in the same folder as ranker.jnlp.

RankerProgram (last edited 2025-09-03 21:15:28 by JakeGordon)

Wiki content based upon work supported by the National Science Foundation under Grant Nos. 0323553 and 0323596. Any opinions, findings, conclusions or recommendations expressed in this material are those of the wiki contributor(s) and do not necessarily reflect the views of the National Science Foundation.