Page 1 of 1
How to include bat file when running a .class?
Posted: Mon Mar 01, 2004 8:25 pm
by koolkid
when i run from command line, first i use a bat file to change my codepage for msdos;
how can i "program" that in textpad so that i can achieve the same effect?
thanks in advance
Posted: Mon Mar 01, 2004 8:42 pm
by talleyrand
A trivial way of doing it, is to replace the TP java tool with a call to a batch file. It'd look something like
Code: Select all
c:\j2sdk1.4.1_01\bin\java.exe -myParamsToSetDOSPage %1
Posted: Mon Mar 01, 2004 9:05 pm
by koolkid
thanks for your answer
i'm quite new to all this, so i coudnt get what you wrote
you say that in textpad, in tools, where i've params, i writte exactly what?
my bat file is called a.bat, located in same folder as my classes.
i made this:
a.bat%1$BaseName
and got this error msg from msdos:
Exception in thread "main" java.lang.NoClassDefFoundError: a/batPrincipal
can you pls help me?