Zum Inhalt springen

java/lang/NoClassDefFoundError: java/lang/Thread


Asgar13

Empfohlene Beiträge

Hallo,

ich habe eine Javamaschine Jamvm auf den Asus router rt-n16.

Ich gehe mit einen Linux Debian Betriebssystem auf den Router über telnet drauf.

Ich habe Jamvm 1.5.0

classpath 0.98.

Dabei ist das eigentliche Problem, dass ich die jamvm starten will die bootclasspath fehlt diese ergänze ich mit:

jamvm -Xbootclasspath/c:/jffs/usr/share/jamvm/classes.zip:/jffs/opt/share/classpath/glibj.zip -Dgnu.classpath.boot.libarary.path=/jffs/opt/lib/classpath -jar /jffs/Test.jar

Als Ausgabe gibt er mir:

java/lang/NoClassDefFoundError: java/lang/Thread

Unter

/jffs/usr/share/jamvm/java/lang/

gibt es diese Datei:

VMThread.class

und glibj.zip kann ich nicht entpacken

Ich weiß, dass er mir sagt, dass er java/lang/Thread nicht findet, deshalb meine Fragen.

1. Kann die Datei VMThread.class die gesuchte Datei sein?

2. Wenn ja, wie kann man den Pfad ändern, dass er auf diese Datei weißt?

3. Wenn nein, wie kann ich das Problem dann beheben?

4. Kann es sein, dass sich meine classpath 0.98 und die jamvm 1.5.0 stören?

Link zu diesem Kommentar
Auf anderen Seiten teilen

Hier ist eine genauere Beschreibung durch strace:

root@DD-WRT:~# strace jamvm -Xbootclasspath:/jffs/usr/share/jamvm/classes.zip:/jffs/opt/share/classpath/glibj.zip -Dgnu.classpath.boot.library.path=/jffs/opt/lib/classpath/ -jar test.jar

execve("/jffs/usr/bin/jamvm", ["jamvm", "-Xbootclasspath:/jffs/usr/share/"..., "-Dgnu.classpath.boot.library.pat"..., "-jar"..., "test.jar"...], [/* 11 vars */]) = 0

svr4_syscall() = -1 ERRNO_4090 (Unknown error 4090)

stat("/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=2253, ...}) = 0

open("/etc/ld.so.cache", O_RDONLY) = 3

old_mmap(NULL, 2253, PROT_READ, MAP_SHARED, 3, 0) = 0x2aaae000

close(3) = 0

open("/home/agb/openwrt/brcm47xx/staging_dir/mipsel/usr/lib/libffi.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)

open("/lib/libffi.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)

open("/usr/lib/libffi.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)

open("/jffs/lib/libffi.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)

open("/jffs/usr/lib/libffi.so.4", O_RDONLY) = 3

fstat(3, {st_mode=S_IFREG|0755, st_size=10442, ...}) = 0

old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaaf000

read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\240\r\0\0004\0\0\0"..., 4096) = 4096

old_mmap(NULL, 274432, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaed000

old_mmap(0x2aaed000, 9348, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2aaed000

old_mmap(0x2ab2f000, 2250, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2000) = 0x2ab2f000

close(3) = 0

munmap(0x2aaaf000, 4096) = 0

open("/home/agb/openwrt/brcm47xx/staging_dir/mipsel/usr/lib/libz.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)

open("/lib/libz.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)

open("/usr/lib/libz.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)

open("/jffs/lib/libz.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)

open("/jffs/usr/lib/libz.so.1", O_RDONLY) = 3

fstat(3, {st_mode=S_IFREG|0755, st_size=68310, ...}) = 0

old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaaf000

read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0`\24\0\0004\0\0\0"..., 4096) = 4096

old_mmap(NULL, 331776, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ab30000

old_mmap(0x2ab30000, 67780, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2ab30000

old_mmap(0x2ab80000, 2774, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x10000) = 0x2ab80000

close(3) = 0

munmap(0x2aaaf000, 4096) = 0

open("/home/agb/openwrt/brcm47xx/staging_dir/mipsel/usr/lib/libdl.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)

open("/lib/libdl.so.0", O_RDONLY) = 3

fstat(3, {st_mode=S_IFREG|0755, st_size=6558, ...}) = 0

old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaaf000

read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0P\10\0\0004\0\0\0"..., 4096) = 4096

old_mmap(NULL, 270336, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ab81000

old_mmap(0x2ab81000, 6384, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2ab81000

old_mmap(0x2abc2000, 2462, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1000) = 0x2abc2000

close(3) = 0

munmap(0x2aaaf000, 4096) = 0

open("/home/agb/openwrt/brcm47xx/staging_dir/mipsel/usr/lib/libm.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)

open("/lib/libm.so.0", O_RDONLY) = 3

fstat(3, {st_mode=S_IFREG|0755, st_size=25906, ...}) = 0

old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaaf000

read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0000\f\0\0004\0\0\0"..., 4096) = 4096

old_mmap(NULL, 290816, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2abc3000

old_mmap(0x2abc3000, 25732, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2abc3000

old_mmap(0x2ac09000, 1330, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x6000) = 0x2ac09000

close(3) = 0

munmap(0x2aaaf000, 4096) = 0

open("/home/agb/openwrt/brcm47xx/staging_dir/mipsel/usr/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)

open("/lib/libpthread.so.0", O_RDONLY) = 3

fstat(3, {st_mode=S_IFREG|0755, st_size=68214, ...}) = 0

old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaaf000

read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\3604\0\0004\0\0\0"..., 4096) = 4096

old_mmap(NULL, 339968, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ac0a000

old_mmap(0x2ac0a000, 50104, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2ac0a000

old_mmap(0x2ac56000, 19062, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xc000) = 0x2ac56000

old_mmap(0x2ac5b000, 7536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2ac5b000

close(3) = 0

munmap(0x2aaaf000, 4096) = 0

open("/home/agb/openwrt/brcm47xx/staging_dir/mipsel/usr/lib/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)

open("/lib/libgcc_s.so.1", O_RDONLY) = 3

fstat(3, {st_mode=S_IFREG|0755, st_size=60758, ...}) = 0

old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaaf000

read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\200\31\0\0004\0\0\0"..., 4096) = 4096

old_mmap(NULL, 323584, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ac5d000

old_mmap(0x2ac5d000, 58652, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2ac5d000

old_mmap(0x2acab000, 3414, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xe000) = 0x2acab000

close(3) = 0

munmap(0x2aaaf000, 4096) = 0

open("/home/agb/openwrt/brcm47xx/staging_dir/mipsel/usr/lib/libc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)

open("/lib/libc.so.0", O_RDONLY) = 3

fstat(3, {st_mode=S_IFREG|0755, st_size=389963, ...}) = 0

old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaaf000

read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\200\272\0\0004\0\0\0"..., 4096) = 4096

old_mmap(NULL, 671744, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2acac000

old_mmap(0x2acac000, 385364, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2acac000

old_mmap(0x2ad4a000, 4939, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x5e000) = 0x2ad4a000

old_mmap(0x2ad4c000, 16104, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2ad4c000

close(3) = 0

munmap(0x2aaaf000, 4096) = 0

open("/lib/libgcc_s.so.1", O_RDONLY) = 3

fstat(3, {st_mode=S_IFREG|0755, st_size=60758, ...}) = 0

close(3) = 0

open("/lib/libc.so.0", O_RDONLY) = 3

fstat(3, {st_mode=S_IFREG|0755, st_size=389963, ...}) = 0

close(3) = 0

open("/lib/libc.so.0", O_RDONLY) = 3

fstat(3, {st_mode=S_IFREG|0755, st_size=389963, ...}) = 0

close(3) = 0

open("/lib/libgcc_s.so.1", O_RDONLY) = 3

fstat(3, {st_mode=S_IFREG|0755, st_size=60758, ...}) = 0

close(3) = 0

open("/lib/libc.so.0", O_RDONLY) = 3

fstat(3, {st_mode=S_IFREG|0755, st_size=389963, ...}) = 0

close(3) = 0

open("/lib/libc.so.0", O_RDONLY) = 3

fstat(3, {st_mode=S_IFREG|0755, st_size=389963, ...}) = 0

close(3) = 0

open("/lib/libc.so.0", O_RDONLY) = 3

fstat(3, {st_mode=S_IFREG|0755, st_size=389963, ...}) = 0

close(3) = 0

open("/lib/libc.so.0", O_RDONLY) = 3

fstat(3, {st_mode=S_IFREG|0755, st_size=389963, ...}) = 0

close(3) = 0

munmap(0x2aaae000, 2253) = 0

ioctl(0, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0

ioctl(1, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0

getpid() = 6092

getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0

setrlimit(RLIMIT_STACK, {rlim_cur=2040*1024, rlim_max=1073741823}) = 0

rt_sigaction(SIGRT_0, {SIG_DFL}, NULL, 16) = 0

rt_sigaction(SIGRT_1, {SIG_DFL}, NULL, 16) = 0

rt_sigaction(SIGRT_2, {SIG_DFL}, NULL, 16) = 0

rt_sigprocmask(SIG_BLOCK, [RT_0], NULL, 16) = 0

rt_sigprocmask(SIG_UNBLOCK, [RT_1], NULL, 16) = 0

brk(0) = 0x471000

brk(0x472000) = 0x472000

old_mmap(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ad50000

brk(0x47a000) = 0x47a000

stat("/usr/share/jamvm/endorsed", 0x7f8ae8d8) = -1 ENOENT (No such file or directory)

stat("/jffs/usr/share/jamvm/classes.zip", {st_mode=S_IFREG|0644, st_size=21311, ...}) = 0

open("/jffs/usr/share/jamvm/classes.zip", O_RDONLY) = 3

read(3, "PK\3\4", 4) = 4

lseek(3, 0, SEEK_END) = 21311

old_mmap(NULL, 21311, PROT_READ|PROT_WRITE, MAP_PRIVATE, 3, 0) = 0x2aaae000

old_mmap(NULL, 2052, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aab4000

stat("/jffs/opt/share/classpath/glibj.zip", {st_mode=S_IFREG|0644, st_size=4417536, ...}) = 0

open("/jffs/opt/share/classpath/glibj.zip", O_RDONLY) = 4

read(4, "PK\3\4", 4) = 4

lseek(4, 0, SEEK_END) = 4417536

old_mmap(NULL, 4417536, PROT_READ|PROT_WRITE, MAP_PRIVATE, 4, 0) = 0x2b550000

munmap(0x2b550000, 4417536) = 0

close(4) = 0

old_mmap(NULL, 2052, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aab5000

old_mmap(NULL, 132, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aab6000

old_mmap(NULL, 8196, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aab7000

old_mmap(NULL, 260, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaba000

old_mmap(NULL, 132, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aabb000

brk(0x48a000) = 0x48a000

write(2, "Exception occurred while VM init"..., 42Exception occurred while VM initialising.

) = 42

write(2, "java/lang/NoClassDefFoundError", 30java/lang/NoClassDefFoundError) = 30

write(2, ": ", 2: ) = 2

write(2, "java/lang/Thread", 16java/lang/Thread) = 16

write(2, "\n", 1

) = 1

exit(1) = ?

Link zu diesem Kommentar
Auf anderen Seiten teilen

Dein Kommentar

Du kannst jetzt schreiben und Dich später registrieren. Wenn Du ein Konto hast, melde Dich jetzt an, um unter Deinem Benutzernamen zu schreiben.

Gast
Auf dieses Thema antworten...

×   Du hast formatierten Text eingefügt.   Formatierung wiederherstellen

  Nur 75 Emojis sind erlaubt.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Editor leeren

×   Du kannst Bilder nicht direkt einfügen. Lade Bilder hoch oder lade sie von einer URL.

Fachinformatiker.de, 2024 by SE Internet Services

fidelogo_small.png

Schicke uns eine Nachricht!

Fachinformatiker.de ist die größte IT-Community
rund um Ausbildung, Job, Weiterbildung für IT-Fachkräfte.

Fachinformatiker.de App

Download on the App Store
Get it on Google Play

Kontakt

Hier werben?
Oder sende eine E-Mail an

Social media u. feeds

Jobboard für Fachinformatiker und IT-Fachkräfte

×
×
  • Neu erstellen...