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

Just starting out? Need help? Post your questions and find answers here.
kane
User
User
Posts: 23
Joined: Sun May 15, 2005 9:28 pm

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

Post 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..
kane
User
User
Posts: 23
Joined: Sun May 15, 2005 9:28 pm

Post by kane »

bumper
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post 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.
kane
User
User
Posts: 23
Joined: Sun May 15, 2005 9:28 pm

Post 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
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post 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))
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Post by NoahPhense »

Trond wrote:1) It's compile, not vompile! (made my day!!! :lol: )
Maybe he lives in Transylvania.. :lol:

- np
Post Reply