|
#1
| |||
| |||
|
I am using the terminal to execute java code. Here is something similar to what I would type. java -jar mycode.jar http://mysite.com/1.1.1/myothercode.jar The stuff after mycode.jar is an argument that is sent into the main() function of my code. This is standard java practice. My problem is that Java on OSX or OSX itself is changing the .'s to /'s so that I get this.. java -jar mycode.jar http://mysite.com/1/1/1/myothercode/jar It may also be apache running on my osx box doing it. Anyone have any ideas?? This line works just fine on a redhat linux box btw. Thanks for any help. |
|
#2
| |||
| |||
|
There must be more going on against the args given to main; the following Code: public class jtest
{
public static void main( String args[] )
{
System.out.println( "args[ 0 ] is " + args[ 0 ] );
System.exit(0);
}
}
Code: $ java jtest http://mysite.com/1.1.1/myothercode.jar Code: args[ 0 ] is http://mysite.com/1.1.1/myothercode.jar |
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [FAQ] - Setting the UNIX shell prompt | michaelsanford | HOWTO & FAQs | 4 | March 27th, 2003 02:25 PM |
| [HOWTO] - Use niutil | gatorparrots | HOWTO & FAQs | 6 | December 10th, 2002 04:24 PM |
| changing shell resulting in ftp problem? | i_m_nuts | Mac OS X System & Mac Software | 4 | April 17th, 2002 08:16 PM |
| Poll: What UNIX shell do you use? | vikingshelmut | Mac OS X System & Mac Software | 17 | December 21st, 2001 11:37 AM |