Porting JVM to MINX


 
Thread Tools Search this Thread
Top Forums Programming Porting JVM to MINX
# 1  
Old 12-14-2012
Porting JVM to MINIX

Hi,
As you may see from the title, for some reason I need to make running .class files on Minix possible (a compiler is not necessary). So could somebody point me in any direction, suggest some literature or give some advice? Generally, how would you do it?
Also how big is this project? I guess I should port openJDK and make some kind of interpreter. But I never did something similar. (I'm CS student on second year)

I have also read Tanenbaum's "operating systems design and implementation". It gave me a lot of insight of minix internals.


Thanks in advance

Last edited by John117; 12-14-2012 at 09:43 AM..
# 2  
Old 12-14-2012
Go to the oracle site and see if there is java for your architecture. It won't do any good to write java code without a Java Virtual Machine. This is actually the system-specific piece you need. It may be part of a JDK for your box. I do not know.

If it exists, then everything is a simple install.

The only word of caution is that some releases of the jvm have had issues in UNIX.
Check out via reviews what you are getting before you install it.
# 3  
Old 12-15-2012
there is java for my architecture its x86.. I found jamVM, does anybody have any tips for porting it to unix?
# 4  
Old 12-15-2012
JamVM is probably the best option for your task assuming you are prepared to port/write some assembly code.
Another issue is JamVM relies on Posix threads but Minix doesn't implement them. You might have a look to JAmiga (A port of JamVM to Amiga) which managed to overcome that issue.
# 5  
Old 12-15-2012
thank you for JAmiga hope it will help, but isn't Minix a POSIX standard os?

EDIT: could I strip JamVM of any threads? I don't need java threads, lets say ill use just single threaded apps. Could JVM be just one process without taking care of threads inside? Its a college project if I manage to execute one System.out it would be miracle Smilie . No really is it possible to strip the jvm threads?

Last edited by John117; 12-15-2012 at 04:01 PM..
# 6  
Old 12-17-2012
Quote:
Originally Posted by John117
thank you for JAmiga hope it will help, but isn't Minix a POSIX standard os?
It might be but POSIX Threads is an optional feature.
Quote:
could I strip JamVM of any threads? I don't need java threads, lets say ill use just single threaded apps. Could JVM be just one process without taking care of threads inside? Its a college project if I manage to execute one System.out it would be miracle Smilie . No really is it possible to strip the jvm threads?
Not really. Java is inherently multi-threaded, even if your application is not.
# 7  
Old 12-18-2012
Thanks again, sorry for bothering you but do you think that is possible to port openJDK to minix?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

JVM Process Name

Hi - In AIX, how do I find the Java Virtual Machine Process Name running on a particular machine? I tried ps -ef | grep java but it does not return a process name. Please help. (4 Replies)
Discussion started by: ocbit
4 Replies

2. UNIX for Dummies Questions & Answers

Default JVM Memory

Hi , Whenever I am starting JVM it is getting started with Xms as 256MB, which is 1/64 of the Memory available and by default this should happen. But I want to change and start the every JVM with 128MB. Is there any way to do or I have to manually specify Xms tag while starting JVM. Thanks (1 Reply)
Discussion started by: Raj999
1 Replies

3. UNIX for Dummies Questions & Answers

JVM Memory

Hi all, I am starting a JVM in unix and when I use ps command on the pid of process starting JVM the output is something like this :- java -Xms32M -Xmx64M -Xmx128M I need to know what would be the value of Xmx in this case. And how to check that this value be picked while starting JVM... (3 Replies)
Discussion started by: Raj999
3 Replies

4. Shell Programming and Scripting

What's my JVM bitness?

/apps/wls/bea10/jdk160_05/bin/java -d64 -version execve(): No such file or directory Error trying to exec /apps/wls/bea10/jdk160_05/bin/sparcv9/java. Check if file exists and permissions are set correctly. Failed to start a 64-bit JVM process from a 32-bit JVM. Verify all necessary J2SE... (8 Replies)
Discussion started by: mohtashims
8 Replies

5. Solaris

jvm memory settings

When i changed jvm memory settings from 3048 to 3548, appsserver could not start. if no change , it was normal. How do we change .otherwise i had a out of swap space error appeared after 3hrs period when do the monitoring of java application. (1 Reply)
Discussion started by: vijill
1 Replies

6. Web Development

need help about jvm

hi all i want to install apache and tomcat in unix solaris 10 so i need to konw about heap and jvm memory architecture in jdk version 4 and 5 and 6 i want one help me i searched alot and i can't find something helo me (1 Reply)
Discussion started by: maxim42
1 Replies

7. AIX

AIX JVM -32 or 64?

Friends, Can any one tell me what command should be used to check whether the JVM in AIX is 32 bit or 64 bit? Thanks, Govindh (2 Replies)
Discussion started by: Govindh.v
2 Replies

8. AIX

JVM Setting

What should be the idle JVM setting for the LPAR having 16 GB of memory? Currently the JVM setting is set to -Xms1024M -Xmx10240M (1 Reply)
Discussion started by: aajmani
1 Replies

9. UNIX for Advanced & Expert Users

inside the JVM

Hi, does anyone know how to find out what's happening inside a JVM on a unix system? Like what processes are running, which ports, memory usage etc. I'm using AIX 5.2 (1 Reply)
Discussion started by: rein
1 Replies

10. UNIX for Dummies Questions & Answers

Instaling JVM

Hi Everyone I`ve just started with unix can some please help me execute this command via webmin on avirtual server or how do you execute such .bin file this is the error ./j2sdk-1_3_1_15-linux-i586.bin: not found > ls -l total 69124 -rw------- 1 root wheel 8380 May 15 18:01... (2 Replies)
Discussion started by: J.Carlos MC05
2 Replies
Login or Register to Ask a Question