Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > Launching a rich client in XP

Launching a rich client in XP

Forum Windows XP : Windows XP General Discussion - Launching a rich client in XP

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: comp.lang.java.advocacy,microsoft.public.windowsxp.general (More info?)

 

I wrote a rich client that accesses a web service, using Eclipse.

The start up command and it's associated libraries is >2k characters, so
I cannot fit it into an XP shortcut.

I wrote a .BAT file, but if I run that way, it leaves a DOS window open.


Is there anyway in Windows to shell a command into the background ( like
the & in linux ) ?

Is there a way in java to embed some of the libraries into a startup
*.cfg (config) file of some sort so the startup line doesn't have to be
so long?


Here's my command:

C:\Sun\AppServer\jdk\bin\javaw.exe
-Djava.library.path=c:/eclipse/plugins/org.eclipse.swt.win32_3.1.0/os/win32/x86
-classpath "C:\Documents and
Settings\jbailo\workspace\MatchCode20\WebContent\WEB-INF\classes;C:\Program
Files\Apache Group\Tomcat 4.1\common\lib\activation.jar;C:\Program
Files\Apache Group\Tomcat 4.1\common\lib\ant-launcher.jar;C:\Program
Files\Apache Group\Tomcat 4.1\common\lib\ant.jar;C:\Program Files\Apache
Group\Tomcat 4.1\common\lib\commons-collections.jar;C:\Program
Files\Apache Group\Tomcat 4.1\common\lib\commons-dbcp-1.1.jar;C:\Program
Files\Apache Group\Tomcat
4.1\common\lib\commons-logging-api.jar;C:\Program Files\Apache
Group\Tomcat 4.1\common\lib\commons-pool-1.1.jar;C:\Program Files\Apache
Group\Tomcat 4.1\common\lib\jasper-compiler.jar;C:\Program Files\Apache
Group\Tomcat 4.1\common\lib\jasper-runtime.jar;C:\Program Files\Apache
Group\Tomcat 4.1\common\lib\jdbc2_0-stdext.jar;C:\Program Files\Apache
Group\Tomcat 4.1\common\lib\jndi.jar;C:\Program Files\Apache
Group\Tomcat 4.1\common\lib\jta.jar;C:\Program Files\Apache Group\Tomcat
4.1\common\lib\mail.jar;C:\Program Files\Apache Group\Tomcat
4.1\common\lib\naming-common.jar;C:\Program Files\Apache Group\Tomcat
4.1\common\lib\naming-factory.jar;C:\Program Files\Apache Group\Tomcat
4.1\common\lib\naming-resources.jar;C:\Program Files\Apache Group\Tomcat
4.1\common\lib\servlet.jar;C:\Program Files\Apache Group\Tomcat
4.1\common\lib\tools.jar;C:\Program Files\Apache Group\Tomcat
4.1\common\endorsed\xercesImpl.jar;C:\Program Files\Apache Group\Tomcat
4.1\common\endorsed\xmlParserAPIs.jar;C:\Documents and
Settings\jbailo\workspace\MatchCode20\WebContent\WEB-INF\lib\axis.jar;C:\Documents
and
Settings\jbailo\workspace\MatchCode20\WebContent\WEB-INF\lib\saaj.jar;C:\Documents
and
Settings\jbailo\workspace\MatchCode20\WebContent\WEB-INF\lib\commons-logging.jar;C:\Documents
and
Settings\jbailo\workspace\MatchCode20\WebContent\WEB-INF\lib\wsdl4j.jar;C:\Documents
and
Settings\jbailo\workspace\MatchCode20\WebContent\WEB-INF\lib\jaxrpc.jar;C:\Documents
and
Settings\jbailo\workspace\MatchCode20\WebContent\WEB-INF\lib\log4j-1.2.8.jar;C:\Documents
and
Settings\jbailo\workspace\MatchCode20\WebContent\WEB-INF\lib\commons-discovery.jar;C:\Documents
and
Settings\jbailo\workspace\MatchCode20\WebContent\WEB-INF\lib\webserviceutils.jar;C:\eclipse\plugins\org.eclipse.swt.win32_3.1.0\ws\win32\swt.jar"
org.tempuri.MatchCode20Client

Sponsored Links
Register or log in to remove.

Archived from groups: comp.lang.java.advocacy,microsoft.public.windowsxp.general (More info?)

 

"John Bailo" <jabailo@texeme.com> wrote in message
news:mK-dnXKls8lUnbreRVn-iQ@speakeasy.net...
>
> I wrote a rich client that accesses a web service, using Eclipse.
>
> The start up command and it's associated libraries is >2k characters, so I
> cannot fit it into an XP shortcut.
>
> I wrote a .BAT file, but if I run that way, it leaves a DOS window open.

Have you looked into WindowsShell scripting?

- Oliver

Reply to Anonymous

Archived from groups: comp.lang.java.advocacy,microsoft.public.windowsxp.general (More info?)

 

On Tue, 13 Sep 2005 09:39:38 -0700, John Bailo <jabailo@texeme.com>
wrote or quoted :

>Here's my command:
>
>C:\Sun\AppServer\jdk\bin\javaw.exe
>-Djava.library.path=c:/eclipse/plugins/org.eclipse.swt.win32_3.1.0/os/win32/x86
>-classpath "C:\Documents and
>Settings\jbailo\workspace\MatchCode20\WebContent\WEB-INF\classes;C:\Program

You could write a "kicker" a small C program that does nothing but
launch your program. You don't then have a command interpreter lying
around or a DOS window.

If you have a lot of this sort of thing, you could write a program to
write kickers, that takes a shell executable written in C or MASM and
inserts the data into it without having to compile them.

Your kicker can embed such things as set environment, system
properties, command line, classpath. Alternatively your kicker could
read such info from a properties file whose name is embedded in the
kicker. The idea is you don't need to specify anything but the
kicker.exe's name The kickers go on the path or are added to the
virtual path in the registry.

see http://mindprod.com/projects/kicker.html

See http://mindprod.com/jgloss/registry.html

--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.

Reply to Anonymous

Archived from groups: comp.lang.java.advocacy,microsoft.public.windowsxp.general (More info?)

 

John Bailo wrote:
> I wrote a rich client that accesses a web service, using Eclipse.
>
> The start up command and it's associated libraries is >2k characters,
> so I cannot fit it into an XP shortcut.
>
> I wrote a .BAT file, but if I run that way, it leaves a DOS window
> open.
>
>
> Is there anyway in Windows to shell a command into the background (
> like the & in linux ) ?
>
> Is there a way in java to embed some of the libraries into a startup
> *.cfg (config) file of some sort so the startup line doesn't have to
> be so long?
>
>
> Here's my command:
>
> C:\Sun\AppServer\jdk\bin\javaw.exe
> -Djava.library.path=c:/eclipse/plugins/org.eclipse.swt.win32_3.1.0/os/win3
2/x86
> -classpath "C:\Documents and
>
Settings\jbailo\workspace\MatchCode20\WebContent\WEB-INF\classes;C:\Program
> Files\Apache Group\Tomcat 4.1\common\lib\activation.jar;C:\Program
> Files\Apache Group\Tomcat 4.1\common\lib\ant-launcher.jar;C:\Program
> Files\Apache Group\Tomcat 4.1\common\lib\ant.jar;C:\Program
> Files\Apache Group\Tomcat
> 4.1\common\lib\commons-collections.jar;C:\Program Files\Apache
> Group\Tomcat 4.1\common\lib\commons-dbcp-1.1.jar;C:\Program
> Files\Apache Group\Tomcat
> 4.1\common\lib\commons-logging-api.jar;C:\Program Files\Apache
> Group\Tomcat 4.1\common\lib\commons-pool-1.1.jar;C:\Program
> Files\Apache Group\Tomcat
> 4.1\common\lib\jasper-compiler.jar;C:\Program Files\Apache
> Group\Tomcat 4.1\common\lib\jasper-runtime.jar;C:\Program
> Files\Apache Group\Tomcat
> 4.1\common\lib\jdbc2_0-stdext.jar;C:\Program Files\Apache
> Group\Tomcat 4.1\common\lib\jndi.jar;C:\Program Files\Apache
> Group\Tomcat 4.1\common\lib\jta.jar;C:\Program Files\Apache
> Group\Tomcat
> 4.1\common\lib\mail.jar;C:\Program Files\Apache Group\Tomcat
> 4.1\common\lib\naming-common.jar;C:\Program Files\Apache Group\Tomcat
> 4.1\common\lib\naming-factory.jar;C:\Program Files\Apache Group\Tomcat
> 4.1\common\lib\naming-resources.jar;C:\Program Files\Apache
> Group\Tomcat
> 4.1\common\lib\servlet.jar;C:\Program Files\Apache Group\Tomcat
> 4.1\common\lib\tools.jar;C:\Program Files\Apache Group\Tomcat
> 4.1\common\endorsed\xercesImpl.jar;C:\Program Files\Apache
> Group\Tomcat
> 4.1\common\endorsed\xmlParserAPIs.jar;C:\Documents and
>
Settings\jbailo\workspace\MatchCode20\WebContent\WEB-INF\lib\axis.jar;C:\Doc
uments
> and
>
Settings\jbailo\workspace\MatchCode20\WebContent\WEB-INF\lib\saaj.jar;C:\Doc
uments
> and
>
Settings\jbailo\workspace\MatchCode20\WebContent\WEB-INF\lib\commons-logging
..jar;C:\Documents
> and
>
Settings\jbailo\workspace\MatchCode20\WebContent\WEB-INF\lib\wsdl4j.jar;C:\D
ocuments
> and
>
Settings\jbailo\workspace\MatchCode20\WebContent\WEB-INF\lib\jaxrpc.jar;C:\D
ocuments
> and
>
Settings\jbailo\workspace\MatchCode20\WebContent\WEB-INF\lib\log4j-1.2.8.jar
;C:\Documents
> and
>
Settings\jbailo\workspace\MatchCode20\WebContent\WEB-INF\lib\commons-discove
ry.jar;C:\Documents
> and
>
Settings\jbailo\workspace\MatchCode20\WebContent\WEB-INF\lib\webserviceutils
..jar;C:\eclipse\plugins\org.eclipse.swt.win32_3.1.0\ws\win32\swt.jar"
> org.tempuri.MatchCode20Client

Put all those jar files in the extension directory and then remove them from
your shortcut command.

--
Virgil

Reply to Anonymous

Archived from groups: comp.lang.java.advocacy,microsoft.public.windowsxp.general (More info?)

 

Why not use an executable jar file? Any computer with a 1.4+ vm can run
them simply by double clicking the jar file.

I've distributed utilities internally for both PC and Mac.

-mike

Reply to Anonymous

Archived from groups: comp.lang.java.advocacy,microsoft.public.windowsxp.general (More info?)

 

On Wed, 14 Sep 2005 03:48:51 -0400, "Michael N. Christoff"
<mchristoff@sympatico.caREMOVETHIS> wrote or quoted :

>Why not use an executable jar file? Any computer with a 1.4+ vm can run
>them simply by double clicking the jar file.

great idea. You can put the class-path inside the jar file.

I don't think you can put command line options in the jar though or
the set environment.

I wonder if any of the exe wrappers can. See
http://mindprod.com/jgloss/nativecompiler.html

--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.

Reply to Anonymous
Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > Launching a rich client in XP
Go to:

There are 561 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them