Jump to content
Excelsior Forums
Sign in to follow this  
david1234

Different length of .exe as compiled and as installed? Compiled ok, pack nok

Recommended Posts

Hi,

I am facing following problem:

the compiled application works as compiled (just double clicking on the executable created by Excelsior JET), but when I pack it using JetPackII the length of the executable changes slightly (~1kb more):

77.5 MB (81,320,960 bytes) JETPack version

77.5 MB (81,319,936 bytes) JET Compiled version

most of the app works as it supposed to, but when I try calling a web service through JAX-RPC, the packed version fails (no display of the JPanel) and the compiled version works. There is no error message generated by the Jet packed version.

All the libs that are in the 'Step 3 ' of the compiler are marked as 'packed into exe' in the step 2 of Jetpack

I am using JET 6.5 professional under WinXP SP3.

Any ideas what I can try?

Thanks

David

Share this post


Link to post
Share on other sites
I pack it using JetPackII the length of the executable changes slightly

That's normal behavior of JetPackII that makes so called binding to hard-wire settings such as Java system properties and relative paths to the executable. As a result, the executable becomes clickable and does not require any additional settings on the target system such as PATH.

The size difference does not relate to the problem you reported.

most of the app works as it supposed to, but when I try calling a web service through JAX-RPC, the packed version fails

Please list the jar files included in your application. If, for some reasons, you would not like to paste the list here, contact Excelsior Support (java at excelsior-usa.com)

Share this post


Link to post
Share on other sites

Thanks for the quick reply, here is the list which I copied out of the .prj file.

The part that behaves strangely, without generating any error code is a web service call using the JAX-RPC library and Netbeans feature to generate code from a WSDL file, so towares the end of the classpath.

Thanks for looking into this,

David


%%Excelsior JET v6.5 project file

-compilewithfixedheap+
-genstackalloc+
-genstacktrace-
-global+
-gui+
-ignoreclassduplication+
-ignorememberabsence+
-inline+
-jetcpenablemanualsettings+
-splashcloseonawtwindow-
-splashcloseonclick-
-splashgetfrommanifest-

-apptype=Plain
-classabsence=HANDLE
-compilerheap=1191182336
-...
-heaplimit=0
-inlinelimit=100
-inlinetolimit=1000
-jetcplastpage:=PageClasspath
-jetrt=Desktop
-jetvmprop=-Djet.gc.defragment:true -Dsun.java2d.noddraw:true -Djet.jit.fast -Djet.jit.disable.resolution -Djet.gc.heaplimit:0 -Djet.gc.ratio:50 -Djet.stack.trace
-jpiiproject=C:\....jpn
-main=...
-outputdir=.
...
-stacklimit=900000
...

!classpathentry C:/...netbeans/build/classes
  -pack=none
  -protect=all
  -optimize=all
!end
!classpathentry C:/.../resources
  -pack=none
  -protect=all
  -optimize=all
!end
!classpathentry C:/.../bsf-2.4.0.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/.../bsh-1.3.0.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/.../exist-modules.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/.../exist-optional.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/.../exist.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/.../httpunit.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/.../itext-1.5.2.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/.../jcommon-serializer-0.3.0.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/.../js-1.6R5.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/.../junit-3.8.1.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/.../libdocbundle-0.1.0.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/.../libformat-0.1.0.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/.../libloader-0.4.0.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/.../librepository-0.2.0.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/.../libxml-0.99.0.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/.../mail-1.4.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/.../nekohtml-0.9.5.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/.../pentaho-reporting-engine-classic-0.8.10.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/.../poi-3.0.1-jdk122-final-20071014.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/.../servlet-api-2.4.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/.../various-stuff.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/.../jtidy-4aug2000r7-dev.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/Program Files/NetBeans 6.7/java2/modules/ext/AbsoluteLayout.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/Program Files/NetBeans 6.7/platform10/modules/ext/swing-layout-1.0.3.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/Documents and Settings/root/.netbeans/6.7/modules/ext/jaxrpc16/FastInfoset.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/Documents and Settings/root/.netbeans/6.7/modules/ext/jaxrpc16/jaxrpc-api.jar
  -pack=all
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/Documents and Settings/root/.netbeans/6.7/modules/ext/jaxrpc16/jaxrpc-impl.jar
  -pack=all
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/Documents and Settings/root/.netbeans/6.7/modules/ext/jaxrpc16/jaxrpc-spi.jar
  -pack=all
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/Documents and Settings/root/.netbeans/6.7/modules/ext/jaxrpc16/saaj-impl.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/Documents and Settings/root/.netbeans/6.7/modules/ext/jaxrpc16/relaxngDatatype.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/Documents and Settings/root/.netbeans/6.7/modules/ext/jaxrpc16/xsdlib.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/gensearch/jar/jars-for-3.6/commons-logging.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end
!classpathentry C:/gensearch/jar/jars-for-3.6/xercesImpl291.jar
  -pack=noncompiled
  -protect=nomatter
  -optimize=all
!end

Share this post


Link to post
Share on other sites

Dear support,

I found the problem, which had nothing to do with JET Pack and JET compiler, there was a slight difference in configuration files of my software, one was used by the packed version and the other one by the compiler in 'directly run' mode.

Sorry for the trouble  :-[

David

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
Sign in to follow this  

×