unable to run hello world on ARM920T processor
hi, i have ARM920T/linux 2.4.18 running. does anybody successfully running java over ARM9/Linux? i downloaded java runtime environment (j2re-1.3.1-RC1-linux-arm.tar.bz2) from balckdown ftp site. i installed it on ARM. java is not running. i have binutils-2.9.5.0.22 gcc-2.95.2 glibc-2.1.2 when i run java i get following messages: ./java java -> .java_wrapper: applet not found : applet not found unset: not found head: invalid option -- 1 BusyBox v0.60.2 (2002.06.19-08:58+) multi-call binary Usage: head [OPTION] [FILE]... Could not create the Java virtual machine. what could be the problem? i need help regarding this cheers HarryDo You Yahoo!? Yahoo! Autos - Get free new car price quotes
Re: unable to run hello world on ARM920T processor
On Tue, Jul 16, 2002 at 05:45:50AM -0700, Hari v wrote: > > hi, > > i have ARM920T/linux 2.4.18 running. > > does anybody successfully running java over ARM9/Linux? > > i downloaded java runtime environment (j2re-1.3.1-RC1-linux-arm.tar.bz2) from > > balckdown ftp site. i installed it on ARM. java is not running. > > i have binutils-2.9.5.0.22 > > gcc-2.95.2 > > glibc-2.1.2 > > when i run java i get following messages: > > ./java > > java -> .java_wrapper: applet not found > > : applet not found > > unset: not found > > head: invalid option -- 1 It looks like you're running in a constrained environment (embedded, perhaps?), with the "BusyBox" utility that provides compact replacements for many standard utilities. Your shell apparently doesn't know how to manage environment variables (it doesn't understand the "unset" command), and the BusyBox version of the "head" utility doesn't understand the option to specify the number of lines. I have no idea where the "applet not found" message is coming from. Unfortunately, the .java_wrapper launch script expects to find and use certain standard POSIX utilities and behaviors, and it looks like your system isn't providing them. If your environment is really as constrained as I suspect, it's unlikely you can run a J2RE without totally overwhelming your resources. But, if you want to try, the first step is to rewrite the .java_wrapper script to work with the non-standard versions of shells and tools you're using in your environment. Nathan Meyers [EMAIL PROTECTED] > BusyBox v0.60.2 (2002.06.19-08:58+) multi-call binary > > Usage: head [OPTION] [FILE]... > > Could not create the Java virtual machine. > > what could be the problem? > > i need help regarding this > > cheers > > Harry > > > > - > Do You Yahoo!? > Yahoo! Autos - Get free new car price quotes -- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
a build for gcc3.1.x?
Many Gentoo Linux users, including myself, have chosen to build their systems with gcc3.1. Everything works great except for Java JNI interfaces (eg. the plugin and Mozilla). These expect to be linked against gcc2.x libs. It looks like this: LoadPlugin: failed to initialize shared library /opt/blackdown-jdk-1.3.1/jre/plugin/i386/mozilla/javaplugin_oji.so [/opt/blackdown-jdk-1.3.1/jre/plugin/i386/mozilla/javaplugin_oji.so: undefined symbol: __vt_17nsGetServiceByCID] What I think is required, is a build of the jdk on gcc3.1. This is bug #4694590 (http://developer.java.sun.com/developer/bugParade/bugs/4694590.html -- you have to sign in to view it). Is there any chance of providing gcc2 and gcc3 builds of the next/current release of the jdk/jre/java3d etc.? Matt -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
re: a build for gcc3.1.x?
I hate to have to tell you but it will get even worse now. The gcc maintainers just decided to change the c++ abi yet again. They are releasing gcc 3.1.1 next week to be followed soon by a gcc 3.2 release with all the remaining abi changes. The gcc 3.1.x trunk will be considered orphaned at that point and all development will be aimed at gcc 3.2.1. So we will need 3 builds of jdk soon. Jack -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: unable to run hello world on ARM920T processor
hi ,
thanks. yes i enabled the features in Config.h. Now the earlier messages like unset is missing. But how to remove head:invalid option -- 1
really i need help in this. what could be the reason for not creating virtual machine.
Now the output when i run java is:
-
bash-2.04# ./java
head: invalid option -- 1
BusyBox v0.60.2 (2002.07.17-04:35+) multi-call binary
Usage: head [OPTION] [FILE]...
Could not create the Java virtual machine.
bash-2.04#
--
my busybox config file looks like this:
/* vi: set sw=4 ts=4: */// This file defines the feature set to be compiled into busybox.// When you turn things off here, they won't be compiled in at all.// This file is parsed by sed. You MUST use single line comments.// i.e., //#define BB_BLAH// BusyBox Applications#define BB_ADJTIMEX#define BB_AR#define BB_ASH#define BB_BASENAME#define BB_CAT#define BB_CHGRP#define BB_CHMOD#define BB_CHOWN#define BB_CHROOT#define BB_CHVT#define BB_CLEAR#define BB_CMP#define BB_CP#define BB_CPIO#define BB_CUT#define BB_DATE#define BB_DC#define BB_DD#define BB_DEALLOCVT#define BB_DF#define BB_DIRNAME#define BB_DMESG#define BB_DOS2UNIX#define BB_DPKG#define BB_DPKG_DEB#define BB_DUTMP#define BB_DU#define BB_DUMPKMAP#define BB_ECHO#define BB_ENV#define BB_EXPR#define BB_FBSET#def!
ine BB_FDFLUSH#define BB_FIND#define BB_FREE#define BB_FREERAMDISK#define BB_FSCK_MINIX#define BB_GETOPT#define BB_GREP#define BB_GUNZIP#define BB_GZIP#define BB_HALT#define BB_HEAD#define BB_HOSTID#define BB_HOSTNAME#define BB_HUSH#define BB_ID#define BB_IFCONFIG#define BB_INIT#define BB_INSMOD#define BB_KILL#define BB_KILLALL#define BB_KLOGD#define BB_LASH#define BB_LENGTH#define BB_LN#define BB_LOADACM#define BB_LOADFONT#define BB_LOADKMAP#define BB_LOGGER#define BB_LOGNAME#define BB_LS#define BB_LSMOD#define BB_MAKEDEVS#define BB_MD5SUM#define BB_MKDIR#define BB_MKFIFO#define BB_MKFS_MINIX#define BB_MKNOD#define BB_MKSWAP#define BB_MKTEMP#define BB_MODPROBE#define BB_MORE#define BB_MOUNT#define BB_MSH#define BB_MT#define BB_MV#define BB_NC#define BB_NSLOOKUP#define BB_PIDOF#define B!
B_PING#define BB_PIVOT_ROOT#define BB_POWEROFF#define BB_PRINTF#define BB_PS#define BB_PWD#define BB_RDATE#define BB_READLINK#define BB_REBOOT#define BB_RENICE#define BB_RESET#define BB_RM#define BB_RMDIR#define BB_RMMOD#define BB_ROUTE#define BB_RPM2CPIO#define BB_SED#define BB_SETKEYCODES#define BB_SLEEP#define BB_SORT#define BB_STTY#define BB_SWAPONOFF#define BB_SYNC#define BB_SYSLOGD#define BB_TAIL#define BB_TAR#define BB_TEE#define BB_TEST#define BB_TELNET#define BB_TFTP#define BB_TOUCH#define BB_TR#define BB_TRACEROUTE#define BB_TRUE_FALSE#define BB_TTY#define BB_UNIX2DOS#define BB_UUENCODE#define BB_UUDECODE#define BB_UMOUNT#define BB_UNIQ#define BB_UNAME#define BB_UPDATE#define BB_UPTIME#define BB_USLEEP#define BB_VI#define BB_WATCHDOG#define BB_WC#define BB_WGET#define BB_WHICH!
#define BB_WHOAMI#define BB_XARGS#define BB_YES// End of Applications List -// This is where feature definitions go. Generally speaking,// turning this stuff off makes things a bit smaller (and less // pretty/useful).// If you enabled one or more of the shells, you may select which one// should be run when sh is invoked:#define BB_FEATURE_SH_IS_ASH//#define BB_FEATURE_SH_IS_HUSH//#define BB_FEATURE_SH_IS_LASH//#define BB_FEATURE_SH_IS_MSH BusyBox will, by default, malloc space for its buffers. This costs code// size for the call to xmalloc. You can use the following feature to have// them put on the stack. For some very small machines with limited stack// space, this can be deadly. For most folks, this works just fine...//#define BB_FEATURE_BUFFERS_GO_ON_STACK// The third !
alternative for buffer allocation is to use BSS. This works// beautifully for computers with a real MMU (and OS support), but wastes// runtime RAM for uCLinux. This behavior was the only one available for// BusyBox versions 0.48 and earlier.//#define BB_FEATURE_BUFFERS_GO_IN_BSS Turn this on to use Erik's very cool devps, and devmtab kernel drivers,// thereby eliminating the need for the /proc filesystem and thereby saving// lots and lots memory for more important things. NOTE: If you enable this// feature, you _must_ have patched the kernel to include the devps patch that// is included in the busybox/kernel-patches directory. You will also need to// create some device special files in /dev on your embedded system:// mknod /dev/mtab c 10 22// mknod /dev/ps c 10 21// I emailed Linus and this patch will no!
t be going into the stock kernel.//#define BB_FEATURE_USE_DEVPS_PATCH show verbose usage messages//#define BB_FEATURE_VERBOSE_USAGE Use termios to manipulate the screen ('more' is prettier with this on)#define BB_FEATURE_USE_TERMIOS calculate terminal & column widths (for more and ls)#define BB_FEATURE_AUTOWIDTH/
Re: [PATCH] Fix busybox head, tail to take old -n argument (was: Re: unable to run hello world on ARM920T processor) : hello world working
hi
really thanks for your help. Its working!!!. i changed the "head -1" to head -n 1 in .java_wrapper file.
Now i am able run hello world!!!
I hope the problem is solved!!!. or is it required to apply patch to busybox.
once again thanks
cheers
Hari
[EMAIL PROTECTED] wrote:
Hari v <[EMAIL PROTECTED]>wrote:> thanks. yes i enabled the features in Config.h. > Now the earlier messages like unset is missing. > But how to remove head:invalid option -- 1 Apply the following patch, perhaps? That shouldlet the Java startup script do its head -1 successfully.- Dan--- busybox-0.60.2/tail.c.orig Tue Jul 16 22:32:00 2002+++ busybox-0.60.2/tail.c Tue Jul 16 22:46:19 2002@@ -22,6 +22,7 @@*/+#include #include #include #include @@ -67,6 +68,13 @@int *fds, nfiles = 0, status = EXIT_SUCCESS, nread, nwrite, seen = 0;char *s, *start, *end, buf[BUFSIZ];int i, opt;++ /* Support traditional -%d option if first; needed by many scripts */+ if ((argc > 1) && (argv[1][0] == '-') && isdigit(argv[1][1])) {+ count = atoi(argv[1]!
+1);+ argc--;+ argv++;+ }while ((opt = getopt(argc, argv, "c:fhn:q:s:v")) > 0) {switch (opt) {--- busybox-0.60.2/head.c.orig Tue Jul 16 22:49:23 2002+++ busybox-0.60.2/head.c Tue Jul 16 22:50:07 2002@@ -21,6 +21,7 @@**/+#include #include #include #include @@ -46,6 +47,13 @@{FILE *fp;int need_headers, opt, len = 10, status = EXIT_SUCCESS;++ /* Support traditional -%d option if first; needed by many scripts */+ if ((argc > 1) && (argv[1][0] == '-') && isdigit(argv[1][1])) {+ len = atoi(argv[1]+1);+ argc--;+ argv++;+ }/* parse argv[] */while ((opt = getopt(argc, argv, "n:")) > 0) {Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
