How to make Java application portable

1087
4
Jump to solution
01-18-2013 02:43 AM
AvishekDutta
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
0 Kudos
1 Solution
4 Replies
LeoDonahue
Occasional Contributor III
0 Kudos
AvishekDutta
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
0 Kudos
AvishekDutta
New Contributor
Thanks Leo,

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