This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Problem with custom panes and jar packing
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 15, 2008
09:47 AM
Problem with custom panes and jar packing
Hi
I am new to writing custom code panels to IntallAnywhere. So I downloaded some examples from acressos site, namely ChooseInstallDrive.
http://www.acresso.com/webdocuments/Downloads/ChooseInstallDrive.zip
I got it up and running in no time no problems whatsoever. However when I made some modifications to .ChooseInstall
Drive.java file, then things got a bit more difficult. I was able to compile it easily with javac
C:\Documents and Settings\jyr\Desktop\InstallAnywhereSamples>javac ChooseInstallDrive.java
Note: ChooseInstallDrive.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
It did give some warnings but it did compile. I got my class file. Next I created a jar file.
C:\Documents and Settings\jyr\Desktop\InstallAnywhereSamples>jar -cvfM ChooseInstallDrive.jar "C:\Documents and Settings\jyr\Desktop\InstallAnywhereSamples\ChooseInstallDrive.class"
adding: C:/Documents and Settings/jyr/Desktop/InstallAnywhereSamples/ChooseInsta
llDrive.class(in = 4062) (out= 2189)(deflated 46%)
Ok I got the jar file but the panel does not work with this jar-file anymore. I even tried to compile the exact original ChooseInstallDrive.java but with same results. Installer just skips whole custom code panel. I might have forgotten to add some files to that jar package but what?
Thanks in advance
I am new to writing custom code panels to IntallAnywhere. So I downloaded some examples from acressos site, namely ChooseInstallDrive.
http://www.acresso.com/webdocuments/Downloads/ChooseInstallDrive.zip
I got it up and running in no time no problems whatsoever. However when I made some modifications to .ChooseInstall
Drive.java file, then things got a bit more difficult. I was able to compile it easily with javac
C:\Documents and Settings\jyr\Desktop\InstallAnywhereSamples>javac ChooseInstallDrive.java
Note: ChooseInstallDrive.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
It did give some warnings but it did compile. I got my class file. Next I created a jar file.
C:\Documents and Settings\jyr\Desktop\InstallAnywhereSamples>jar -cvfM ChooseInstallDrive.jar "C:\Documents and Settings\jyr\Desktop\InstallAnywhereSamples\ChooseInstallDrive.class"
adding: C:/Documents and Settings/jyr/Desktop/InstallAnywhereSamples/ChooseInsta
llDrive.class(in = 4062) (out= 2189)(deflated 46%)
Ok I got the jar file but the panel does not work with this jar-file anymore. I even tried to compile the exact original ChooseInstallDrive.java but with same results. Installer just skips whole custom code panel. I might have forgotten to add some files to that jar package but what?
Thanks in advance
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 16, 2008
04:25 PM
If the version you've compiled your custom code does not match the version you bundle in your installer (for example: if you compiled it with Java 1.6 but you bundle Java 1.5 then the custom code cannot be executed because of the generated bytecode incompatibilities).
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 17, 2008
01:30 AM
Hi
I downgraded my java compiler to JRE 1.6.0_02 but no luck. Same results. Could someone post a brief instructions and sample code how to compile and add custom panels to projects please
I downgraded my java compiler to JRE 1.6.0_02 but no luck. Same results. Could someone post a brief instructions and sample code how to compile and add custom panels to projects please
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 17, 2008
04:11 AM
Have you check the relevant section of the manual, there is a whole chapter that covers custom code!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 18, 2008
08:13 AM
Hi
Thanks. I got it finally working. Thank you. This might have been a issue with java packing I needed to pack the directory structure as well.
This structure was not included in the zip file directly however it was included in the jar-file.
Thanks. I got it finally working. Thank you. This might have been a issue with java packing I needed to pack the directory structure as well.
This structure was not included in the zip file directly however it was included in the jar-file.