开发者

Open-source operating systems in Java [closed]

开发者 https://www.devze.com 2023-03-14 00:25 出处:网络
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines guidelines. It is not currently accepting answers.
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 7 ye开发者_JAVA百科ars ago.

Improve this question

I want to download and try an Open-Source OS (Emulation) written in Java. So, I searched and download the, arguably, most famous one I found, which was NACHOS 5.0j.

I have just installed a fresh Ubuntu 10.04 LTS and installed the open-JDK 1.6 through apt-get and then installed eclipse in a similar manner.

After following the readme in NACHOS, I fired terminal, and used gmake (make), and got a bunch of errors and warnings. The one that's bothering me the most is:

as of release 1.4, 'assert' is a keyword, and may not be used as an identifier 
(use -source 1.3 or lower to use 'assert' as an identifier)
Debug.assert(isReadyForApply);

Problem is, I tried downloading another open-source OS called JX, and had a similar problem.

Any help in this issue is appreciated! Any other ideas on where to start learning about operating systems and Java is even more appreciated! (But something practical.)


I think you need to add a argument -source 1.3 while compiling or running that OS


I found following information from web, basically, you should use java 1.3.1. it is open source, and you can modify the source code to make it run under JDK1.6 if you like.

The Java version of Nachos only supports Java 1.3.1, as the security manager and set of reserved keywords has changed in later versions. Instructional machines already have 1.3.1 installed. For remote users, you can download 1.3.1 here: http://java.sun.com/j2se/1.3/download.html . If you are curious to see what version of java you are using you can run the following command "java -version". We cannot stress strongly enough that you should not use java 1.4 or java 1.5. You might run into transient errors that will not show up as warnings or errors during compile time.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号