User Tools

Site Tools


eclipse_setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
eclipse_setup [2016/08/26 17:19]
waruna [Eclipse Setup Using Plugins] updated the latest plugin URLs
eclipse_setup [2021/02/09 06:54]
lnarmour
Line 1: Line 1:
 AlphaZ has been only tested on Linux 64 bits and MacOs. AlphaZ has been only tested on Linux 64 bits and MacOs.
  
-=====Eclipse Setup Using Plugins=====+There are several options to get a working eclipse instance with AlphaZ installed.
  
-For the newcomers (for others some of these steps are redundant): +===== Option 1 - Eclipse Setup on CS Department Machines ===== 
-  - AlphaZ requires at least Java 7 (Java 8 is also supported). If Java 7 is not installed on your machine, install Java 7 from http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html.  +You must be a CSU student with access to the CS machines to do this. The eclipse environment with all necessary plug-ins is available in the AlphaZ project directory. The following script will start the eclipse with AlphaZ installed.\\
-  - Download Eclipse (Neon - 4.6) at http://www.eclipse.org/downloads/ (Eclipse Classic for your platform) +
-  - Launch Eclipse +
-  - Go to Help -> Install New Software +
-  - In "Work with" form, copy/paste the following URL: https://www.cs.colostate.edu/AlphaZ/update-sites/neon/site.xml (Neon - 4.6 is the current version of Eclipse. For older versions of Eclipse use URL: https://www.cs.colostate.edu/AlphaZ/update-sites/<target>/site.xml where <target> is code name of the Eclipse distribution). +
-  - You should see several items including "AlphaZ environment"+
-  - Install "AlphaZ Bundle" (inside the "AlphaZ environment" category). +
-  - Hit next until Eclipse start installing the bundle. +
-  - Restart Eclipse. +
-  - To be able to check out project through svn with eclipse, please install the corresponding subeclipse plugins. All links that correspond to different versions of subeclipse is available on webpage http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuA. Go to Help->Install New Software, and copy the corresponding URL in the "Work with" form, and install all the plugins.  +
- +
-Since AlphaZ is still in very active development, we have activated automatic update of AlphaZ bundle.If you met some problems while using AlphaZ, please refer to the common pitfall section. We described some common problems that users met, and provided possible solutions.\\ +
-=====Eclipse Setup for External Environment ===== +
- +
-Bundles for other environments are available under ''http://www.cs.colostate.edu/AlphaZ/bundles/''. \\ +
-Simply download the archive for your OS/architecture and extract its content.\\ +
-AlphaZ bundle will be also automatically updated. +
- +
- +
-=====Eclipse Setup for CSU students ===== +
-The eclipse environment with all necessary plug-ins is available in the AlphaZ project directory. The following script will start the eclipse with AlphaZ installed.\\+
 <code bash> <code bash>
 #!/bin/bash #!/bin/bash
Line 34: Line 14:
 export PATH=${JAVA_HOME}:${PATH} export PATH=${JAVA_HOME}:${PATH}
  
-${ECLIPSE_HOME}/eclipse $* -vmargs -d64 -Xms256m -Xmx1024m &+${ECLIPSE_HOME}/eclipse $* -configuration ~/.eclipse_alphaz_config -vmargs -d64 -Xms256m -Xmx1024m &
 </code> </code>
-Save the above script as ''eclipse.custom'' on your home directory (~/eclipse.custom)\\ +Save the above script as ''eclipse.custom'' on your home directory (say as ~/eclipse.custom) and run it (don't forget to give execute permission to the script). 
-Don't forget to give execute permission to the script.+ 
 + 
 +===== Option 2 - Eclipse Setup using Docker ===== 
 +If you don't have access to the CSU machines or would rather run eclipse locally on your own machine, then you can use the following docker container: \\ 
 +https://hub.docker.com/repository/docker/narmour/alphaz-user-image 
 + 
 +See the following for additional information if you want to use this option: \\ 
 +https://github.com/lnarmour/alphaz-user-image 
 + 
 +===== Option 3 - Eclipse Setup Using Local Install ===== 
 +If you don't want to use docker, then you can use this option to install eclipse on your own machine and manually install the AlphaZ plugins directly. 
 + 
 +  - AlphaZ requires Java 8 or later and a Unix system (Linux or Mac OSX). If Java 8 is not installed on your machine, install Java from http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html.  
 +  - Download Eclipse (2019-03 Release) from https://www.eclipse.org/downloads/packages/release 
 +  - Launch Eclipse 
 +  - Go to Help -> Install New Software 
 +  - In "Work with" text box, copy/paste the following URL: https://www.cs.colostate.edu/AlphaZ/update-sites/2019_03-master/site.xml. 
 +  - You should see several items including "AlphaZ Environment" and "AlphaZ Features"
 +  - Alphaz Environment has all the features required for AlphaZ 
 +  - AlphaZ Features only have the features developed at CSU 
 +  - Install "AlphaZ Environment"
 +  - Hit next until Eclipse start installing the bundle. 
 +  - Restart Eclipse. 
 +  - To be able to check out project through svn with eclipse, please install the corresponding subeclipse plugins using update-site  https://dl.bintray.com/subclipse/releases/subclipse/latest/. /*All links that correspond to different versions of subeclipse is available on webpage http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuA. Go to Help->Install New Software, and copy the corresponding URL in the "Work with" form, and install all the plugins. */
  
 +If you met some problems while using AlphaZ, please refer to the common pitfall section. We described some common problems that users met, and provided possible solutions.\\
  
 =====Checking out Sample Project====== =====Checking out Sample Project======
Line 65: Line 69:
  
 You may have some error connecting to the repository through eclipse You may have some error connecting to the repository through eclipse
 +  * When you run a *.cs file, if you see an error containing "com.google.common" then try again after removing "com.google.guava_21.0.0.v20170206-1425.jar" file from Eclipse/plugins directory.
   * When your connection gets lost while trying to connect:   * When your connection gets lost while trying to connect:
      * Go to ''"Preferences→Team→SVN"'' and change the SVN interface to ''"SVNKit(Pure Java)"'' and try again.      * Go to ''"Preferences→Team→SVN"'' and change the SVN interface to ''"SVNKit(Pure Java)"'' and try again.
Line 70: Line 75:
  
 Check the following if something does not work Check the following if something does not work
-  * AlphaZ requires JRE1.7. Please make sure you have the Java installed on your machine, and it is the default java version used by eclipse. Otherwise, the plugins installed will not be activated. To be sure that your eclipse is using Java 7, you can start your eclipse with explicitly specified Java path. For example: ./eclipse -vm /home/yun/yun_temp/jdk1.7.0/bin/java .  +  * AlphaZ requires JRE1.8. Please make sure you have the Java installed on your machine, and it is the default java version used by eclipse. Otherwise, the plugins installed will not be activated. 
-  * AlphaZ is updated frequently, if you are using it on an external machine, run the update script+
   * Most of the machines in the department is 64bit linux, but some are 32bit. You won't be able to start eclipse in those machines.   * Most of the machines in the department is 64bit linux, but some are 32bit. You won't be able to start eclipse in those machines.
-  * Eclipse may not reflect some changes try+  * If Eclipse does not reflect the changes you made, try
     * Cleaning the project     * Cleaning the project
     * Starting eclipse with -clean option so that plug-ins are refreshed     * Starting eclipse with -clean option so that plug-ins are refreshed
eclipse_setup.txt · Last modified: 2023/06/01 17:01 by lnarmour