Questions tagged [jamvm]

JamVM is an open source, small, clearly written, interpreter-only Java virtual machine, ported to a wide variety of different platforms.

This machine has been written by Robert Lougher and used to be a popular tool for developing alternative Java system libraries, at the time when it was required. The compiled binary is comparatively very small (around 200 K executable only). It supports the full specification, including object finalization, Soft/Weak/Phantom References, class-unloading, JNI and reflections. When porting to the new platform, IO and similar features are provided through JNI.

The code is available under GPL. More can be found here.

28 questions
10
votes
3 answers

JamVM on Motorola FX9500 Problems - what should I do?

I am using a Motorola FX9500 RFID reader, which runs Linux with the jamvm version 1.5.0 on it (I can only deploy applications to it - I cannot change the Java VM or anything so my options are limited) - here's what I see when I check the…
kmp
  • 10,535
  • 11
  • 75
  • 125
5
votes
4 answers

how to build GNU Classpath and JamVM

I'm trying to build GNU Classpath 0.98 and JamVM 1.5.2. Following the JamVM readme, I did 'configure; make; make install' on the jamVM, and it worked. I then added jamvm and Sun javac to the path. Then with GNU Classpath I did this: ./configure…
michelemarcon
  • 23,277
  • 17
  • 52
  • 68
5
votes
2 answers

How to force Java/awt to use a specific toolkit (qt)?

I am working on an embedded Linux device that has only qt. For some reason, Java decides to use gnu.java.awt.peer.gtk.GtkToolkit. How can I force it to use gnu.java.awt.peer.qt.QtToolkit instead (or change the default behavior)?
bgw
  • 2,036
  • 1
  • 19
  • 28
3
votes
2 answers

C/Posix Questions

I have been working for two weeks on JamVM, a small but powerful Java Virtual Machine. Now I am trying to figure how the memory is implemented and I am stuck on two C stupid problems: char *mem = (char*)mmap(0, args->max_heap,…
2
votes
1 answer

Building jamvm 1.5.4 on OS X Lion

I have Xcode installed and the commandline tools are working. Macports fails to build jamvm 1.5.0 correctly so I'm trying to build the latest version (1.5.4) manually. ./configure doesn't complain about anything. make fails with the following…
Tomas Andrle
  • 13,132
  • 15
  • 75
  • 92
2
votes
2 answers

buildroot with jamvm 2.0 for java 8

I have a fat jar which uses java 8 features.I would like to use it with buildroot. But as I am reading on it for a couple of days, the jamvm version 2.0 supports java 8 and because of GNUClasspath limitations it we can't use any java 8.0 complaint…
g0c00l.g33k
  • 2,458
  • 2
  • 31
  • 41
2
votes
0 answers

JamVM classes outside core java on iPhone

So I have an old iPhone (first generation) laying around, and I thought I could use it to do some fun stuff. I jailbroke it, and installed the Java package off cydia. However, whenever I try to use any classes that are outside of core java (anything…
2
votes
1 answer

Cross compiling JamVM for ARM linux using UBUNTU and arm-linux-gnueabi-gcc - zlib missing

I'm trying to build JamVM for FriendlyARM mini 2440!(http://www.friendlyarm.net/products/mini2440) I installed ARM GCC using this command: sudo apt-get install gcc-arm-linux-gnueabi Next I did: export…
ehsun7b
  • 4,796
  • 14
  • 59
  • 98
1
vote
1 answer

java.io.IOException: Permission denied with Wake on Lan

I've written this code for implementing Wake On Lan: InetAddress address = InetAddress.getByAddress( new byte[]{(byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff}); DatagramPacket packet = new DatagramPacket(bytes, bytes.length, address,…
michelemarcon
  • 23,277
  • 17
  • 52
  • 68
1
vote
1 answer

Drools: Compiling rules (or loading compiled rules) fails with obscure exceptions in JamVM

I'm developing a framework that, as one of its features, enables robots to use a rule based system. We began with Jess as the RBS, and now wanted to implement drools (using Drools 5.2.0 final), which works on our development machines running on…
Silly Freak
  • 4,061
  • 1
  • 36
  • 58
1
vote
0 answers

Suspend JamVM and Restart It?

I am working on JamVM, a popular small Java VM, and I would like to stop it (suspend all the threads), execute a function within the VM (a C function) and then restart all the threads. I tried to handle a signal (Ctrl-C), execute my function, but…
1
vote
1 answer

Safely long running java process in background

I have three jar files that should run forever in background in a embedded system. I am actually do this with jamvm -jar program.jar & over a ssh-session. But the jar file exits after one day running in background and have a unpredictable…
Sadik Hasan
  • 173
  • 3
  • 18
1
vote
1 answer

How to do Remote Debugging in JamVM?

I've got jamvm version 1.5.4 (java version 1.5.0) and I don't have any choice about upgrading or changing it (actually, I think that is the latest version anyway). I would dearly love to attach a remote debugger to some ropey old code I wrote so…
kmp
  • 10,535
  • 11
  • 75
  • 125
1
vote
1 answer

JVM- how to find and compare which JVM is better for linux? JAMVM vs OPENJDK.

Is there any tool to compare memory footprint of different JVMs. currently running on JAMVM. I want to know, how to compare JVM. and what are the deciding factors.
Ankur Loriya
  • 3,276
  • 8
  • 31
  • 58
1
vote
1 answer

Does groovy run on jamvm?

I wanted to run groovy on jamvm in an embedded hardware. The following is what I have tried, but nothing works. 1) $GROOVY_HOME/bin/groovy ... It complains that JAVA_HOME is not set. Since JamVm is a standalone executable, how, if possible, to set…
lqu
  • 606
  • 9
  • 14
1
2