Solved

how to build GNU Classpath and JamVM

Posted on 2009-04-15
8
1,166 Views
Last Modified: 2013-12-05

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.

However, I need a java compiler (ecj) which is in .jar format itself. I can't run it without a working JVM (which I'm currently building).

I use slax and it doesn't provide a binary package for ecj. What should I do?
0
Comment
Question by:MicheleMarcon
  • 4
  • 4
8 Comments
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
>>I use slax and it doesn't provide a binary package for ecj. What should I do?

I didn't know slax used packages - thought it was tarballs. You could get a deb or rpm and unpack it maybe?
0
 
LVL 13

Author Comment

by:MicheleMarcon
Comment Utility
Unfortunately, it's not so easy. ecj depends on, basically, a JRE, GTK, Cairo and a lot of stuff. Downloading and unpacking everything will most probably lead to system corruption.
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
Comment Utility
No, i realise you could get dependency problems, but i don't think it should depend on any windowing environment. These are the deps on my system:
goose@hpbrio:/tmp$ debfoster -d ecj-bootstrap

Package ecj-bootstrap depends on:

  ecj-bootstrap-gcj fastjar gcc-4.1-base gcj-4.1-base gij-4.1 java-common

  java-gcj-compat libasound2 libc6 libgcc1 libgcj-bc libgcj-common libgcj7-0

  libgcj7-jar tzdata zlib1g

Open in new window

0
 
LVL 13

Author Comment

by:MicheleMarcon
Comment Utility
I've tryed unpacking rpm and deb for a lot of distribution. I managed to run gij but gij didn't run ecj.

So no luck with deb and rpm.

I even found the .tgz files for jamvm and gnu classpath. But even then, they don't work! There was a symlink wrong, I adjusted it but still don't work...

0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
What is the script meant to do that you got? What *did* it do?
0
 
LVL 13

Author Comment

by:MicheleMarcon
Comment Utility
Sorry, I don't understand. Which "script" are you talking about? I've taken a few routes for my solution:

a) I used JDK for building classpath. JDK can't find VMStackTrace classes (classpath classes)
b) I run ecj.jar with script ecj-bootstrap and other, still using JDK. Didn't work.
c) I downloaded the source of gcj, only to find that I need to rebuild gcc (can't do that, too long to explain)
d) I downloaded and installed debs and rpms of gcj, ecj. I managed to run gij which in turn should run ecj-bootstrap. I only get "Aborted" as output.
e) I downloaded binaries classpath-0.98-1.pkg.tar.gz and jamvm-1.5.1.tgz. Guess what? They still didn't work. I tryed to link this classpath with my own built jamvm but still didn't work.

Switching to other JVM won't help, as the problem is building classpath. I think I'll try to download the oldest classpath available, and hope that it builds with JDK. If it works, I'll use it to build newer classpaths...

Other suggestion?
0
 
LVL 13

Author Comment

by:MicheleMarcon
Comment Utility
Found it! Look at this forum thread:

http://sourceforge.net/forum/message.php?msg_id=7193290
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
>>Which "script" are you talking about?

I meant 'script ecj-bootstrap' actually. Glad you got it fixed ;-)

0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now