60 likes | 185 Vues
This guide provides a comprehensive walkthrough for setting up Control System Studio (CSS) in Eclipse, featuring essential steps such as importing source code, ensuring the correct Java version is installed, and managing your workspace efficiently. It discusses the necessary configurations for Java, how to import projects into your workspace, and tips to avoid confusion by keeping source code and workspaces separate. Follow these instructions to get CSS running smoothly from source code for effective development and training purposes.
E N D
Control System Studio Training-Development Setup Kay Kasemir ORNL/SNS kasemirk@ornl.gov 2012, April at SLAC
Getting CSS to run from source code • Get Java, Eclipse, CSS Sources • Start Eclipse • “Import”Sources into Workspace • Open CSS *.product file, Launch
Java, Eclipse • Check: Is java available? java -version Need Sun/Oracle Java 1.6, 1.7;Not GCJ, OpenJDK • Start Eclipse eclipse/eclipse “Workspace”:use CSS/Workspace in your home directory • Suggest to check Preferences: • Java, Installed JREs: Is it the one you want? • Usage Data Collector: Disable capture?
Source Code vs. Eclipse Workspace • Source Code: • Where the sources are • Workspace:Directory with“.metadata”subdir. • Tracks currentlyopen window, … To avoid confusion: Keep Separate! • Example: Use CSS/Sources, CSS/Workspace
Eclipse Workspace “Import” Sourcesinto Workspace: • File/Import…,General,Existing Projectsinto Workspace • Select “root” directory,import all projects found • Do not“Copy projects into Workspace” Note: Need to “Import” even if sources are already located in workspace directory
Run Product Open org.csstudio.basic.epics.product/*.product Press • Synchronize • Launch an Eclipse application • Later, re-run via the Run button in toolbar