Jump to content
Excelsior Forums
Zealous

Excelsior JET with DJNativeSwing

Recommended Posts

I am using DJNativeSwing in my Java application.

You have to call the NativeInterface.open() method in your applications main(String[] args) function.

However whenever I try to run my application in Excelsior Jet's Test Run, 3 new project windows popup

that are trying to create projects for the DJNativeSwing part. I don't really understand why this

happens. And if I close those new project windows, I get this error:

Exception in thread "main" java.lang.IllegalStateException: Failed to connect to spawned VM!
at chrriis.dj.nativeswing.swtimpl.core.SWTNativeInterface$OutProcess.createOutProcessMessagingInterface(Unknown Source)
at chrriis.dj.nativeswing.swtimpl.core.SWTNativeInterface$OutProcess.createOutProcessCommunicationChannel(Unknown Source)
at chrriis.dj.nativeswing.swtimpl.core.SWTNativeInterface.open_(Unknown Source)
at chrriis.dj.nativeswing.swtimpl.NativeInterface.open(Unknown Source)
at main.Main.<init>(Unknown Source)
at main.Main.main(Unknown Source)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
... 6 more

This post at Sourceforge might help.

Any help would be appreciated.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×