How to make Java application portable

734
4
Jump to solution
01-18-2013 02:43 AM
Highlighted
New Contributor
Hi,

I have a Java + Arcobjects application running in eclipse.

I want to make it independent of eclipse. I tried creating a JAR but strangely arcobjects.jar is not responding inside my JAR.

After checking I found out that execution stops at EngineInitializer.initializeVisualBeans()!  Is this a license issue?

Is there any way around it?

Thanks,
Avishek
Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
4 Replies
Highlighted
Regular Contributor
Reply
0 Kudos
Highlighted
New Contributor
Hey Thanks,

But please bear with a bit more: My Manifest looks like this

Manifest-Version: 1.0
Rsrc-Class-Path: ./ arcobjects.jar
Class-Path: .
Rsrc-Main-Class: custom.spatialanalyst.watershed.Main
Main-Class: org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader

I simply exported my project as JAR from eclipse. PLUS: I have the bootstrapArcobjectJar() method as my entry point. I commented out the method but still no result.

Please help.
Avishek
Reply
0 Kudos
Highlighted
Highlighted
New Contributor
Thanks Leo,

Just Deleting the arcobjects.jar which eclipse was providing for my jar, did the trick!
Boot strapping did the rest!
Reply
0 Kudos