Econify
asked on
Comman JRE for all OS
Hi experts
i have an client application made using java swings
while deployment on user machines (some are windows and some are linux)
i copy the whole jdk inside the app folder and avoid using
JRE installed on thatmachine.another reason for this is my app requires jdk bcos
jasper reports need the java compiler for compiling the report files at runtime
and JRE does not contain javac compiler
/myapp/jdk1.4.2
/myapp/conf
/myapp/reports
/myapp/images
/myapp/myapp.jar the executable file
etc......
now the issue is on linux i have different jdk folder(containing shell scripts) and
on windows i have diffent jdk folder(containing exe's
this is make my life miserable as i have to maintain 2 copies of source and 2 separate
folders for differnt users so that they are not confused
and when i upgrade my version of app the user takes the backup of whole app folder
which is consuming disk(redundant files for images and other folders)
is there a way i can create a single installation folder for both OS
pls help
i have an client application made using java swings
while deployment on user machines (some are windows and some are linux)
i copy the whole jdk inside the app folder and avoid using
JRE installed on thatmachine.another reason for this is my app requires jdk bcos
jasper reports need the java compiler for compiling the report files at runtime
and JRE does not contain javac compiler
/myapp/jdk1.4.2
/myapp/conf
/myapp/reports
/myapp/images
/myapp/myapp.jar the executable file
etc......
now the issue is on linux i have different jdk folder(containing shell scripts) and
on windows i have diffent jdk folder(containing exe's
this is make my life miserable as i have to maintain 2 copies of source and 2 separate
folders for differnt users so that they are not confused
and when i upgrade my version of app the user takes the backup of whole app folder
which is consuming disk(redundant files for images and other folders)
is there a way i can create a single installation folder for both OS
pls help
Well, the JRE is different for different machines, if you understand the concept of JVM and why Java is platform independent, why source files are compiled into class-files or byte-code and why they are interpreted by the JVMs specific to the platforms.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
And the JDK for each platform is different too :)
>> different for different machines
I meant different platforms.
I meant different platforms.
Better verify that the client-machine has a JDK or automate the downloading and installation of the proper JDK.
;JOOP!
;JOOP!
ASKER
hey mayank
i dont know much about JVM,s ,byte-code and platforms as much u know
i think are quite a expert
so instead of writing why...why...why
try to explain the issue
well i guess there a solution....not sure
if i merge the two jdk 1.4 folder then the bin folder will have
the exe's for windows and the scripts for linux
this way windows clients will pick what it requires and linux will get what it wants for running the app
how bout that
any ideas.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yes, Mac, and how about Motorola, VAX, Solaris, HP-PA .... all other versions with another JDK needed.
......... and if new JAVA versions are released?
Take care that the client or customer installs the right JDK,
rather than that you carry everything with your software.
;JOOP!
......... and if new JAVA versions are released?
Take care that the client or customer installs the right JDK,
rather than that you carry everything with your software.
;JOOP!
Exactly, you should put JDK as a requirement (pre-requisite) for your application to run. Then depending upon the SLA (service-level agreement), it is either the client's technical group's job to install them on each system where the application is to be deployed, or yours.
The JDK also needs to be 'installed' over the OS, so simply copying the files into a directory will not help.
:<)