Advanced Installer Community - Search

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Search found 3 matches

Go to advanced search

by popesko
Wed Mar 30, 2011 4:22 pm
Forum: Common Problems
Topic: .jar as windows Service, use config file
Replies: 4
Views: 5133
 
Jump to post

Re: .jar as windows Service, use config file

Hi Karol, thnks for reply.

check plse part of the java code i am using in the main method:

String aFile="./U-MADDesktopConnector.properties";
if(args.length > 0){
try{
port = Integer.parseInt(args[0]);
if(port < 1024 || port >= 0x10000)
{
System.out.println("Port must between 1024 and ...
by popesko
Wed Mar 30, 2011 9:13 am
Forum: Common Problems
Topic: .jar as windows Service, use config file
Replies: 4
Views: 5133
 
Jump to post

Re: .jar as windows Service, use config file

Hi again,

I confirm that the JAR file as a service, if not using the '.config' file, is working fine. But if in the JAR java code, i want read info from file (even installing the config file automatically using the .msi) the service cannot start as it should.
Note that in i run only the JAR ...
by popesko
Tue Mar 29, 2011 10:12 pm
Forum: Common Problems
Topic: .jar as windows Service, use config file
Replies: 4
Views: 5133
 
Jump to post

.jar as windows Service, use config file

Hi all,

I have a java project, compiled and packed as .jar file.
I am using the app ok with the .config file where i have stored some info. If running in command prompt using the java -jar command, it uses correctly the .config file.
Testing as a service, i have done some tests on intalation, and ...

Go to advanced search