digitalrinaldo
Posts: 88
Joined: Sun Jan 13, 2013 2:51 am

Java Installer 10.2 is not finding deploy.jar ...

I need to use deploy.jar javaws.jar and plugin.jar. How can I find them so I don't have to include them in the download?
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Java Installer 10.2 is not finding deploy.jar ...

Hello,

I'm not sure why you encountered this behavior.

Can you please go in the “Virtual Machine” tab and select from the “Source” comboBox the “Favor JDK” option and see if the behavior persists?

Let us know if that helped otherwise give us more details.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
digitalrinaldo
Posts: 88
Joined: Sun Jan 13, 2013 2:51 am

Re: Java Installer 10.2 is not finding deploy.jar ...

Is there some option to see what the command line used to run the application is.

I tried to set the stream standard out and stream standard error to [APPDIR]/output.log and [APPDIR]/error.log and there is never any output in those two files.
digitalrinaldo
Posts: 88
Joined: Sun Jan 13, 2013 2:51 am

Re: Java Installer 10.2 is not finding deploy.jar ...

The following link runs the installer

https://dev-client.redplum.com/Advanced ... xe/P@H.exe


This link runs the .pah action and runs the application which will print a test coupon in English

https://dev-client.redplum.com/P@H.pah


It locks up and the exception is not displayed and I have set send output to stream. I am sure it is a missing library issue. That is why I asked how is it started. How do I see the invocation of the jar.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Java Installer 10.2 is not finding deploy.jar ...

Hello,

Can you please send us the .AIP (project file) to support at advancedinstaller dot com so we can investigate it?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
digitalrinaldo
Posts: 88
Joined: Sun Jan 13, 2013 2:51 am

Re: Java Installer 10.2 is not finding deploy.jar ...

I will send it without the signing key. I assume your application doesn't actually import the signing key correct.

I have spent over 30 hours on this issue and what I have discovered is that the deploy.dll file is not being downloaded after the jar file is included. That is clearly my issue and it works but I have to ship the deploy.jar file. Is there a way to find the directory that has the jar file and add it to the path so that it is included. When I run the application standalone and point to the directory with the deploy.jar it works. When I run the same code in the advanced installer it doesn't find the jar files so I have to ship them and that is really poor practice.

How is the application started by advancedInstaller -- can I see the string that is used to launch everything.

IN previous posts I commented on the fact that output.log and error.log are not getting any content. Not aware of any runtime debugging support.
digitalrinaldo
Posts: 88
Joined: Sun Jan 13, 2013 2:51 am

Re: Java Installer 10.2 is not finding deploy.jar ...

Any update on this issue

I had to add the load of the deploy.dll ok, but why aren't the jars in the directory being added. This is why I need to see what the invocation line. Seems like a simple request how is my app launched? java .....
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Java Installer 10.2 is not finding deploy.jar ...

Hello,

Unfortunately, I can not run your application because I encounter an error.

Code: Select all

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at com.redplum.secureprint.ApplicationPrint.main(ApplicationPrint.java:102)
I added the lib in the class path but I still have this error. Is there a new version of your application?

Can you please give us more details?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
digitalrinaldo
Posts: 88
Joined: Sun Jan 13, 2013 2:51 am

Re: Java Installer 10.2 is not finding deploy.jar ...

https://dev-client.redplum.com/Advanced ... xe/P@H.exe


IS the installer



https://dev-client.redplum.com/P@H.pah

Is the link to run the application. The remaining issue is that I have to include the three jar files plugin.jar, deploy.jar and javaws.jar even though those jars are present.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Java Installer 10.2 is not finding deploy.jar ...

Hello,

The link provided for the installer is not working.
The webpage at https://dev-client.redplum.com/Advanced ... xe/P@H.exe is currently unavailable. It may be overloaded or down for maintenance.
Here are some suggestions:
Reload this webpage later.
HTTP Error 503 (Service Unavailable): The server is currently unable to handle the request. This code indicates this is a temporary condition, and the server will be up again after a delay.
Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
digitalrinaldo
Posts: 88
Joined: Sun Jan 13, 2013 2:51 am

Re: Java Installer 10.2 is not finding deploy.jar ...

This server goes on and offline often. can you provide guidance on how I can see the command that is used to start the VM and what environment variables are available at command invocation time that indicate that the command is being run.
digitalrinaldo
Posts: 88
Joined: Sun Jan 13, 2013 2:51 am

Re: Java Installer 10.2 is not finding deploy.jar ...

digitalrinaldo wrote:This server goes on and offline often. can you provide guidance on how I can see the command that is used to start the VM and what environment variables are available at command invocation time that indicate that the command is being run.
Can I get the location of the advanced installer view of what jdk/jre it is using. I am pretty sure there is an issue with it picking the jdk when it should pick the jre.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Java Installer 10.2 is not finding deploy.jar ...

Hello,

Can you please upload the .aip, the built installation package and your Java application on a Dropbox or Google Drive account and send us a download link to support at advancedinstaller dot com in order to test and investigate them?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
digitalrinaldo
Posts: 88
Joined: Sun Jan 13, 2013 2:51 am

Re: Java Installer 10.2 is not finding deploy.jar ...

I added properties here and then used them on classpath dialog for the JVM
I added properties here and then used them on classpath dialog for the JVM
jvm-classpath.PNG (64.39 KiB) Viewed 19441 times
When I stared I was using 10.2, since then I have upgraded to 10.3. I need to the add the following files to the java classpath for my application
  • lib\deploy.jar
    lib\javaws.jar
    lib\plugin.jar

I have tried to find the java home that is being used and add it to the classpath. I must be missing something. This has to be a common request. I have attached an attempt to add them using %AI_JAVA_HOME%
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Java Installer 10.2 is not finding deploy.jar ...

Hello,

First of all I apologize for my delayed reply. We are quite busy at the moment.

There's no need to create properties containing the related JARs paths. In order to achieve what you want you can simply add the related paths using the [ *.jar... ] button -> "Custom..." option from your "Java Product Settings" tab.

Here are the steps to proceed:
- go to "Java Products" page and select your java product
- from "Settings" tab choose [ *.jar... ] button -> "Custom..." option
- in the "Add Classpath Files" dialog add a path like this:

Code: Select all

%AI_JVM_HOME%\lib\deploy.jar
- repeat the above step for the remaining JARs paths
- build and run your project

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”