The Artima Developer Community
Sponsored Link

Java Answers Forum
java 2 exe

3 replies on 1 page. Most recent reply: Sep 23, 2005 4:24 AM by Kondwani Mkandawire

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
Matthias Neumair

Posts: 660
Nickname: neumi
Registered: Sep, 2003

java 2 exe Posted: Sep 23, 2005 2:51 AM
Reply to this message Reply
Advertisement
At the moment I'm testing exe4j from ej-technologies to create a launcher for my application.
This tool is really great for a local installation and it comes at a low cost.
But it lacks one feature:
My program is designed to have certain files including the launcher on a local hard disc, but the jar files should be on a server.
Therefore the launcher must know the location of the jar files. I don't want to do this using system variables, I want the launcher to read the position of the jar files from a configuration file.
Does anyone know a exe-creator wich can do this?

Or is there a way to change the classpath during runtime (without launching a new java application)?


Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Re: java 2 exe Posted: Sep 23, 2005 3:42 AM
Reply to this message Reply
Just confused a bit Mat. Why do you want an
executable, if you define a Manifest with the
proper main file, etc - you can execute a Jar
file pretty much as you would an exe file.
In short jar file are executable in that same
manner exe's are.

Especially in Win XP, I have a few desktop
apps I have developed and Jarred and simply
require a double click - on my laptop
after some tweaking around. Or is there
another reason you would like it to be an
exe file? - PATH vars, ClassLoaders, etc
end up doing it for me.

Matthias Neumair

Posts: 660
Nickname: neumi
Registered: Sep, 2003

Re: java 2 exe Posted: Sep 23, 2005 3:48 AM
Reply to this message Reply
The local installation is simple. Everything is in a subdir of the program folder.

The network installation is more complex.

to make update easier, the jar files (and some other stuff) should lay on server, but other components of the program lay on the local disc.

Point is, that we sell this program.
The customers don't all have the same environment (so I can't just write the path to the jar's in the manifest), so it must be flexible.

A config File with the path to the server is necessary.

And since I don't know how to change classpath during rutime it must be read before the Java application starts, so this mut be done by the launcher.

Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Re: java 2 exe Posted: Sep 23, 2005 4:24 AM
Reply to this message Reply
Sounds way past me man... Good luck with the solution
though...

Flat View: This topic has 3 replies on 1 page
Topic: Where do you get new projects as IT freelancer? Previous Topic   Next Topic Topic: thanks!

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use