-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
developing the java component #123
Comments
The Studio depends on PycroManagerJava.jar, which includes both So if you want to develop the Java side, that's correct, you need to include the source of these packages. In addition many of the features used by Pycromanager live in seperate repositories. Specifically NDViewer, the image display window, NDTiffStorage, the disk storage, and AcqEngJ, the acquisition engine. PycroManagerJava depends on all of these. So depending on what you're trying to do you might want to add the source for these as well. Here is how I set everything up in IntelliJ. Under File-project structure I have a module for each one. Also shown are Magellan, which is not necessary and micromanager, which contains the studio source code and is also not necessary (i.e. you could just use MMJ_.jar instead). Sources and dependencies are set up for pycromanager as shown: mmLibraries contains all the Jars within the NDTiffStorage and AcqEngJ are set up similarly. Their only dependency is MMCoreJ. NDViewer has an extra dependency, and has a resources folder as shown: Lastly, you need to setup a run configuration. Here the working directory is the root of your micro-manager install: |
I got everything set up as above, but launching the pycromanager or micromanager configuration does not run micro-manager (but does open ImageJ). I've done the "command-drag-to-desktop" trick to get around OSX security, but MM still won't launch. |
I would guess this a problem with either your working directory in the run configuration or the MMJ_.jar library or micro-manager studio source as added to the project. Do you see Micro-Manager in the IamgeJ plugins menu? |
Ok I solved it. My micro-manager project-structure-modules did not include Thanks for all the help! Looking forward to contributing. |
Great! |
Simple question that might be useful for others:
Because pycro-manager and micro-manager are separate repositories, how does one develop and test pycro-manager on the java side?
The Java component appears to have modules (remote and internal.zmq) that are added to the Studio. So I assume that running micro-manager from IDE (IntelliJ) in debug mode needs to include files from both repos during compilation of the Studio.
I can add both sources to the project, but run into the following error:
The text was updated successfully, but these errors were encountered: