/* Copyright (c) 2000,2001 Sinby.com
   All Rights Reserved

   This project is covered by the GNU General Public License. */

/* $Id: md.c,v 1.11 2002/05/17 07:29:52 ryos Exp $ */

#include <stdio.h>
#include <stdlib.h>
#include <cyg/kernel/kapi.h>
#include <cyg/hal/hal_arch.h>

extern char **environ;

void 
kaffe_ecos_main(int *pargc, char ***pargv)
{
	static char *ecos_argv[] = {
		"Kaffe",
		"-Dkaffe.embedded=true",
		"-Duser.dir=/",
		"com.sinby.kaffe_ecos.Application",
		//"jp.or.atom_tc.test.HelloWorld",
		//"jp.or.atom_tc.test.Server",
		//"jp.or.atom_tc.test.ThreadTest",
		NULL
	};

		/* "KAFFELIBRARYPATH=/lib", */
	static char *env[] = {
		"KAFFELIBRARYPATH=/lib",
		"CLASSPATH=/java/Klasses.jar:/java/sinby.jar:/java/atom_tc.jar",
		NULL
	};
	environ = env;

	*pargv = &ecos_argv;
	*pargc = sizeof(ecos_argv)/sizeof(char *) - 1;
}
