Hello,
I would make a full setup for my java application but I have no idea how can i make it, and I would make a class installer like in .net because I want some tasks running during the installation.
Thanks for your help.
alaad
0
Newbie Poster
Recommended Answers
Jump to PostTypically, you'd just have a method in the main class that does that stuff, or in a class where you launch it from the main class. A single entry in a properties file can then be used to determine whether that initialisation method runs or not.
Jump to Post@alaad
Aha, I think I get your question now. You want your app not to be a setup app but "the entire app" so you have a method you want to run once.I have apps that on startup do checking to see if it's all good to go like …
Jump to PostIf you get that information from the user then you have to store that in a configuration file (or equivalent) somewhere so you can find it next time the program is run.
So your startup code can look something like:p s v main(etc) { get config …
All 9 Replies
rproffitt
2,580
"Nothing to see here."
Moderator
alaad
0
Newbie Poster
rproffitt
2,580
"Nothing to see here."
Moderator
jwenting
1,889
duckman
Team Colleague
alaad
0
Newbie Poster
rproffitt
2,580
"Nothing to see here."
Moderator
alaad
0
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
alaad
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.