Page 1 of 1

How to vompile or use java app inside PB???

Posted: Tue May 31, 2005 3:04 am
by kane
Ok I'm making this launcher and I currently use this batch.bat

Code: Select all

@echo off
:: Find the directory of this script
pushd %~dp0
:: Open Java
javaw -classpath "%CD%\irc.jar;%CD%\pixx.jar" irc.IRCApplication -f "%CD%\pjirc.cfg"
:: Return them to where they were.
popd
People like why not use prog$ way well when I launch .bat file one problems is the dos window does not close not even with exit at the end also thought be nice was more built in if possible..

Maybe someone has a good idea how get this work inside PB or even get so batch window closes once java opened..

Posted: Tue May 31, 2005 4:26 pm
by kane
bumper

Posted: Tue May 31, 2005 5:46 pm
by Trond
1) It's compile, not vompile! (made my day!!! :lol: )

Why not:

Code: Select all

RunProgram("javaw -classpath "%CD%\irc.jar;%CD%\pixx.jar" irc.IRCApplication -f "%CD%\pjirc.cfg"")
Except you have to use chr(asci) to get your double quotes working.

Posted: Tue May 31, 2005 8:59 pm
by kane
not sound n00b looks good but can't run im guessing cuz this

"Except you have to use chr(asci) to get your double quotes working."

whats that mean hehe I'm total n00b I'm supprised I'm abl;e make small programs hehe

Posted: Wed Jun 01, 2005 9:04 am
by Trond
It means you have to substitute all the double quotes inside the string with

" + chr(34) + "

something like this:

Code: Select all

RunProgram("javaw -classpath " + chr(34) + "%CD%\irc.jar;%CD%\pixx.jar" + chr(34) + " irc.IRCApplication -f " + chr(34) + "%CD%\pjirc.cfg" + chr(34))

Posted: Wed Jun 01, 2005 11:42 am
by NoahPhense
Trond wrote:1) It's compile, not vompile! (made my day!!! :lol: )
Maybe he lives in Transylvania.. :lol:

- np