Home arrow static arrow Java Programming [Archive] - installing my java app that requires javax.comm
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - installing my java app that requires javax.comm
This topic has 4 replies on 1 page.

Posts:2
Registered: 7/16/98
installing my java app that requires javax.comm  
Aug 3, 2004 6:14 PM



 

I have an app that I provide in a jar file. It now requires javax.comm.jar which requires win32com.dll and the javax.comm.properties file. To run properly, it seems that the win32com.dll needs to be in the <jre>\bin directory and the properties file needs to be in the <jre>\lib directory.

When installing (using installshield), how can I determine where the user's jre is installed?
 

Posts:13
Registered: 8/3/04
Re: installing my java app that requires javax.comm  
Aug 4, 2004 1:46 AM (reply 1 of 4)



 
Usually the JAVA_HOME environment variable contains the path to the JRE. If this is not the case, you'll have to prompt the user...
 

Posts:2
Registered: 7/16/98
Re: installing my java app that requires javax.comm  
Aug 4, 2004 12:31 PM (reply 2 of 4)



 
I thought I was going to be able to rely on something like JAVA_HOME but I checked 2 PC's (running WIN2000) that had JRE 1.4 installed. In both instances, I didn't have a JAVA_HOME environment variable. But on both PCs, java and jar file types were set up to be open by the JRE 1.4 tools.

Logically, I figure I could "look up" the program used to open a jar file and, assuming there is an associated program, parse the path to determine the correct installation directory. But I was hoping there might be a more direct approach.
 

Posts:14,142
Registered: 99-04-02
Re: installing my java app that requires javax.comm  
Aug 4, 2004 1:20 PM (reply 3 of 4)



 
Ask the user for it.
 

Posts:31,095
Registered: 4/30/99
Re: installing my java app that requires javax.comm  
Aug 4, 2004 1:47 PM (reply 4 of 4)



 
When I do this, I just install a JRE that will be used by the application and by nothing else. That way I know exactly where to install the java-comm paraphernalia.
 
This topic has 4 replies on 1 page.