Solved

how to build GNU Classpath and JamVM

Posted on 2009-04-15
8
1,257 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 24148302
>>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
ID: 24148430
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
ID: 24148516
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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
LVL 13

Author Comment

by:MicheleMarcon
ID: 24157394
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
 
LVL 86

Expert Comment

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

Author Comment

by:MicheleMarcon
ID: 24165175
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
ID: 24165434
Found it! Look at this forum thread:

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

Expert Comment

by:CEHJ
ID: 24166139
>>Which "script" are you talking about?

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

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

696 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