Skip to main content

JavaSE Embedded ./java - java not found - why?

2 replies [Last post]
yantux
Offline
Joined: 2009-01-31
Points: 0

Hello
I was download JavaSE Embedded for Linux ARM5

Ihad unpack archiv, set PATH:=nepath:$PATH , but aftr that I can't start java:

# ./java
-sh: ./java: not found
# ls -lt
-rwxr-xr-x 1 root root 56780 Mar 27 2008 keytool
-rwxr-xr-x 1 root root 60756 Mar 27 2008 java
#
#
# pwd
/mnt/ej2re1.4.2_16/bin
#

Why java not found?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
miqipucca
Offline
Joined: 2009-02-20
Points: 0

Hi,
I also download JavaSE Embedded for Linux ARM5
# file java -version
file-4.12
magic data from /etc/magic:/usr/share/file/magic
[u]Does it mean java can run?[/u]
# file java HelloWorld
java: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.4.3, dynamically linked (uses shared libs), stripped
HelloWorld: ERROR: cannot open `HelloWorld' (No such file or directory)
[u]why HelloWorld.class cannot run?[/u]

Thank you very much!

sfitzjava
Offline
Joined: 2003-06-15
Points: 0

How did you get it onto the device? FTP?
Did you change to binary mode when you transferred?

You might try the command "file" on it... as in:
>file ./java
and see if it is a binary elf-arm5 type file.... or what ever is correct for your device.
You might try doing "file" on an exec file that you know runs on it to see what to expect.

-Shawn