Skip to content
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

Run JChemPaint from .Net how to handover a File? #183

Open
Christoph1972 opened this issue Jun 13, 2015 · 1 comment
Open

Run JChemPaint from .Net how to handover a File? #183

Christoph1972 opened this issue Jun 13, 2015 · 1 comment

Comments

@Christoph1972
Copy link

Hello,
is there a way to start JChemPaint in a .Net application with handover a mol file?

I tryed this:
string jcpfolder = System.AppDomain.CurrentDomain.BaseDirectory + @"\JChemPaint";
string application = "jchempaint-3.3-1210.jar";
string app = System.IO.Path.Combine(jcpfolder, application);
Process.Start(app, @"c:\Test\Test.mol");

Unfortunatly JChemPaint will not start by handover a parameter. It runs only withaout parameter.

Has anybody an advice to handle this concern?

Kind reguards
Christoph

@johnmay
Copy link
Contributor

johnmay commented Apr 18, 2016

Are you getting a NPE? If so the bug is still present in the current dev:

https://github.com/JChemPaint/jchempaint/blob/master/core/src/main/java/org/openscience/jchempaint/application/JChemPaint.java#L195

One (or both) of those nulls should not be null, that method expects a JChemPaintPanel instance to passed to depict. That's easier said then done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants